graphrbac

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*azurex.Client
	// contains filtered or unexported fields
}

Client is the RBAC client definition

func New

func New(p *azurex.Client) *Client

New returns the RBAC client

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

func (c Client) DeleteRoleAssignment(ctx context.Context, id string) error

DeleteRoleAssignment deletes the role assingnment

func (Client) DeleteRoleDefinition

func (c Client) DeleteRoleDefinition(ctx context.Context, scope, id string) error

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

Jump to

Keyboard shortcuts

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