-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance: Add ListGrants and ListGrant RBAC methods (#743)
Resolves #744 Two methods: ``` // ListGrant lists a grant info for the role and the specific object ListGrant(ctx context.Context, role string, object string, objectName string, dbName string) ([]entity.RoleGrants, error) // ListGrants lists all assigned privileges and objects for the role. ListGrants(ctx context.Context, role string, dbName string) ([]entity.RoleGrants, error) ``` And a structure: ``` type RoleGrants struct { Object string ObjectName string RoleName string GrantorName string PrivilegeName string DbName string } ``` PyMilvus's implementation (and signatures, names) of such methods was taken as an inspiration here. Thanks! Signed-off-by: punkerpunker <[email protected]> Co-authored-by: punkerpunker <[email protected]>
- Loading branch information
1 parent
8309bdf
commit be3ac4b
Showing
4 changed files
with
231 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters