Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
circle-ci feedback / gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
croeck committed May 13, 2018
1 parent 463e203 commit fdc8338
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/armhelpers/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ func (az *AzureClient) CreateRoleAssignment(scope string, roleAssignmentName str
return az.authorizationClient.Create(scope, roleAssignmentName, parameters)
}

// DeleteRoleAssignmentByID deletes a roleAssignment via its unique identifier
func (az *AzureClient) DeleteRoleAssignmentByID(roleAssignmentID string) (authorization.RoleAssignment, error) {
return az.authorizationClient.DeleteByID(roleAssignmentID)
}

// List all role assignments for a principal (e.g. a VM) via the scope and the unique identifier of the principal
func (az *AzureClient) ListRoleAssignmentsForPrincipal(scope string, principalID string) (authorization.RoleAssignmentListResult, error) {
filter := fmt.Sprintf("principalId eq '%s'", principalID)
return az.authorizationClient.ListForScope(scope, filter)
Expand Down
2 changes: 2 additions & 0 deletions pkg/armhelpers/mockclients.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,12 @@ func (mc *MockACSEngineClient) ListDeploymentOperationsNextResults(lastResults r
return resources.DeploymentOperationsListResult{}, nil
}

// DeleteRoleAssignmentByID deletes a roleAssignment via its unique identifier
func (mc *MockACSEngineClient) DeleteRoleAssignmentByID(roleAssignmentID string) (authorization.RoleAssignment, error) {
return authorization.RoleAssignment{}, nil
}

// List all role assignments for a principal (e.g. a VM) via the scope and the unique identifier of the principal
func (mc *MockACSEngineClient) ListRoleAssignmentsForPrincipal(scope string, principalID string) (authorization.RoleAssignmentListResult, error) {
roleAssignments := []authorization.RoleAssignment{}
return authorization.RoleAssignmentListResult{
Expand Down

0 comments on commit fdc8338

Please sign in to comment.