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
Click to show internal directories.
Click to hide internal directories.