Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureAccessToken ¶
type AzureAccessToken struct {
Token string `json:"access_token"`
}
type AzureAppRole ¶
type AzureAppRoleAssignment ¶
type AzureAppRoleAssignment struct { ID string `json:"id"` AppRoleId string `json:"appRoleId" validate:"required"` PrincipalDisplayName string `json:"principalDisplayName"` PrincipalId string `json:"principalId"` PrincipalType string `json:"principalType"` ResourceDisplayName string `json:"resourceDisplayName"` ResourceId string `json:"resourceId" validate:"required"` }
type AzureAppRoleAssignments ¶
type AzureAppRoleAssignments struct {
List []AzureAppRoleAssignment `json:"value"`
}
type AzureClient ¶
type AzureClient interface { GetAzureApplications(key []byte) ([]AzureWebApp, error) GetWebApplications(key []byte) ([]orchestrator.ApplicationInfo, error) GetServicePrincipals(key []byte, appId string) (AzureServicePrincipals, error) GetUserInfoFromPrincipalId(key []byte, principalId string) (AzureUser, error) GetPrincipalIdFromEmail(key []byte, email string) (string, error) GetAppRoleAssignedTo(key []byte, servicePrincipalId string) (AzureAppRoleAssignments, error) SetAppRoleAssignedTo(key []byte, servicePrincipalId string, assignments []AzureAppRoleAssignment) error }
func NewAzureClient ¶
func NewAzureClient(httpClient azurecommon.HTTPClient) AzureClient
type AzureServicePrincipals ¶
type AzureServicePrincipals struct {
List []azureServicePrincipal `json:"value"`
}
type AzureUsers ¶
type AzureUsers struct {
List []AzureUser `json:"value"`
}
Click to show internal directories.
Click to hide internal directories.