AddPrivilegesToGroup()
This operation adds privileges to the specified privilege group.
func (c *Client) AddPrivilegesToGroup(ctx context.Context, option AddPrivilegeToGroupOption, callOptions ...grpc.CallOption) error
Request Parameters
Parameter | Description | Type |
---|---|---|
| Context for the current call to work. |
|
| Optional parameters of the methods. |
|
| Optional parameters for calling the methods. |
|
AddPrivilegeToGroupOption
This is an interface type. The addPrivilegesToGroupOption
struct type implements this interface type. You can use NewAddPrivilegesToGroupOption
to get the concrete implementation.
NewAddPrivilegesToGroupOption
The signature of the NewAddPrivilegesToGroupOption
is as follows:
func NewAddPrivilegesToGroupOption(groupName string, privileges ...string) *addPrivilegeToGroupOption
Parameter | Description | Type |
---|---|---|
| The name of the target privilege group. |
|
| The privileges to add into the above group. For details, refer to . |
|
grpc.CallOption
This interface provided by the gRPC Go library allows you to specify additional options or configurations when making requests. For possible implementations of this interface, refer to this file.
Return
Null
Example