Documentation ¶
Index ¶
- type Client
- func (c Client) CreateOrUpdateRoleDefinition(ctx context.Context, id string, scope string, ...) error
- func (c Client) CreateRoleAssignment(ctx context.Context, id string, principalID, roleDefinitionID, scope string) (string, error)
- func (c Client) DeleteRoleAssignment(ctx context.Context, id string) error
- func (c Client) DeleteRoleDefinition(ctx context.Context, scope, id string) error
- func (c Client) GetRoleDefintionIDFromName(ctx context.Context, name string, scope string) (string, error)
- func (c Client) ListRoleAssignments(ctx context.Context, principalID string) ([]*authorization.RoleAssignment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the RBAC client definition
func (Client) CreateOrUpdateRoleDefinition ¶
func (c Client) CreateOrUpdateRoleDefinition(ctx context.Context, id string, scope string, prop authorization.RoleDefinitionProperties) error
CreateOrUpdateRoleDefinition creates or updates the role definition
func (Client) CreateRoleAssignment ¶
func (c Client) CreateRoleAssignment(ctx context.Context, id string, principalID, roleDefinitionID, scope string) (string, error)
CreateRoleAssignment creates role assignment
func (Client) DeleteRoleAssignment ¶
DeleteRoleAssignment deletes the role assingnment
func (Client) DeleteRoleDefinition ¶
DeleteRoleDefinition deletes role definition
func (Client) GetRoleDefintionIDFromName ¶
func (c Client) GetRoleDefintionIDFromName(ctx context.Context, name string, scope string) (string, error)
GetRoleDefintionIDFromName gets the role definition ID from the role name
func (Client) ListRoleAssignments ¶
func (c Client) ListRoleAssignments(ctx context.Context, principalID string) ([]*authorization.RoleAssignment, error)
ListRoleAssignments gets all role assignments for the principal
Click to show internal directories.
Click to hide internal directories.