メインコンテンツまでスキップ

RemovePrivilegesFromGroup()

This operation removes the specified privileges from a privilege group.

func (c *Client) RemovePrivilegesFromGroup(ctx context.Context, option RemovePrivilegeFromGroupOption, callOptions ...grpc.CallOption) error

Request Parameters

Parameter

Description

Type

ctx

Context for the current call to work.

context.Context

option

Optional parameters of the methods.

RemovePrivilegeFromGroupOption

callOptions

Optional parameters for calling the methods.

grpc.CallOption

RemovePrivilegeFromGroupOption

This is an interface type. The removePrivilegeFromGroupOption struct type implements this interface. You can use NewRemovePrivilegeFromGroupOption() to get its concrete implementation.

func NewRemovePrivilegesFromGroupOption(groupName string, privileges ...string) *removePrivilegeFromGroupOption

Parameter

Description

Type

groupName

The name of the target privilege group.

string

privileges

The privileges to add into the above group.

For details, refer to .

...string

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