Skip to main content

RestoreRBAC()

This operation restores your RBAC settings from a backup.

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

func NewRestoreRBACOption(meta *entity.RBACMeta) RestoreRBACOption

Parameter

Description

Type

meta

The RBAC settings to restore.

*entity.RBACMeta

Return

Null

Example