authorization

package
v0.0.0-...-80e37aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignRole

func AssignRole(ctx context.Context, principalID, roleDefID string) (role authorization.RoleAssignment, err error)

AssignRole assigns a role to the named principal at the scope of the current group.

func AssignRoleWithSubscriptionScope

func AssignRoleWithSubscriptionScope(ctx context.Context, principalID, roleDefID string) (role authorization.RoleAssignment, err error)

AssignRoleWithSubscriptionScope assigns a role to the named principal at the subscription scope.

func DeleteRoleAssignment

func DeleteRoleAssignment(ctx context.Context, id string) (authorization.RoleAssignment, error)

DeleteRoleAssignment deletes a roleassignment

func ListRoleDefinitions

func ListRoleDefinitions(ctx context.Context, filter string) (list authorization.RoleDefinitionListResultPage, err error)

ListRoleDefinitions gets the role definitions in the used resource group

func RoleAssignmentsListByScope

func RoleAssignmentsListByScope(ctx context.Context, scope string) (roleAssignments authorization.RoleAssignmentListResultPage, err error)

RoleAssignmentsListByScope - Get list of role assignments for scope

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL