authorization

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleAssignmentsAPI

type RoleAssignmentsAPI interface {
	CreateRoleAssignment(ctx context.Context, sp, vnetSubnetID, name string) (result *authorizationmgmt.RoleAssignment, err error)
	DeleteRoleAssignment(ctx context.Context, vnetSubnetID, name string) error
}

RoleAssignmentsAPI defines methods available to a Role Assignments client

type RoleAssignmentsClient

type RoleAssignmentsClient struct {
	// contains filtered or unexported fields
}

A RoleAssignmentsClient handles CRUD operations for Azure Role Assignments.

func NewRoleAssignmentsClient

func NewRoleAssignmentsClient(c *azure.Client) (*RoleAssignmentsClient, error)

NewRoleAssignmentsClient returns a new Azure Role Assignments client.

func (*RoleAssignmentsClient) CreateRoleAssignment

func (r *RoleAssignmentsClient) CreateRoleAssignment(ctx context.Context, sp, vnetSubnetID, name string) (*authorizationmgmt.RoleAssignment, error)

CreateRoleAssignment creates an Azure network contributor role assignment for a service principal

func (*RoleAssignmentsClient) DeleteRoleAssignment

func (r *RoleAssignmentsClient) DeleteRoleAssignment(ctx context.Context, vnetSubnetID, name string) error

DeleteRoleAssignment will delete the given role assignemt

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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