跳到主要内容
版本:v2.5.x

RestoreRBAC()

This operation restores your RBAC settings from a backup.

Go
func (c *Client) RestoreRBAC(ctx context.Context, option RestoreRBACOption, callOptions ...grpc.CallOption) error

Request Parameters​

Parameter

Description

Type

ctx

Context for the current call to work.

context.Context

opt

Optional parameters of the methods.

RestoreRBACOption

callOpts

Optional parameters for calling the methods.

grpc.CallOption

RestoreRBACOption​

This is an interface type. You can use NewRestoreRBACOption() to get its concrete implementation

Go
func NewRestoreRBACOption(meta *entity.RBACMeta) RestoreRBACOption

Parameter

Description

Type

meta

The RBAC settings to restore.

*entity.RBACMeta

Return​

Null

Example​