mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-02-02 01:06:41 +08:00
fix: Add forceDrop option to DropRole client API (#47071)
issue: #46887 Signed-off-by: xiaofanluan <xiaofan.luan@zilliz.com>
This commit is contained in:
parent
f166dd817a
commit
70377ea765
@ -220,12 +220,14 @@ type DropRoleOption interface {
|
||||
}
|
||||
|
||||
type dropDropRoleOption struct {
|
||||
roleName string
|
||||
roleName string
|
||||
forceDrop bool
|
||||
}
|
||||
|
||||
func (opt *dropDropRoleOption) Request() *milvuspb.DropRoleRequest {
|
||||
return &milvuspb.DropRoleRequest{
|
||||
RoleName: opt.roleName,
|
||||
RoleName: opt.roleName,
|
||||
ForceDrop: opt.forceDrop,
|
||||
}
|
||||
}
|
||||
|
||||
@ -235,6 +237,11 @@ func NewDropRoleOption(roleName string) *dropDropRoleOption {
|
||||
}
|
||||
}
|
||||
|
||||
func (opt *dropDropRoleOption) WithForce(force bool) *dropDropRoleOption {
|
||||
opt.forceDrop = force
|
||||
return opt
|
||||
}
|
||||
|
||||
type DescribeRoleOption interface {
|
||||
SelectRoleRequest() *milvuspb.SelectRoleRequest
|
||||
Request() *milvuspb.SelectGrantRequest
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user