Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureAccessToken ¶ added in v0.6.2
type AzureAccessToken struct {
Token string `json:"access_token"`
}
type AzureAppRole ¶ added in v0.6.2
type AzureAppRoleAssignment ¶ added in v0.6.2
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 ¶ added in v0.6.2
type AzureAppRoleAssignments struct {
List []AzureAppRoleAssignment `json:"value"`
}
type AzureClient ¶ added in v0.6.2
type AzureClient interface { GetAzureApplications(key []byte) ([]AzureWebApp, error) GetWebApplications(key []byte) ([]policyprovider.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 ¶ added in v0.6.2
func NewAzureClient(httpClient azurecommon.HTTPClient) AzureClient
type AzureServicePrincipals ¶ added in v0.6.2
type AzureServicePrincipals struct {
List []azureServicePrincipal `json:"value"`
}
type AzureUsers ¶ added in v0.6.2
type AzureUsers struct {
List []AzureUser `json:"value"`
}
Click to show internal directories.
Click to hide internal directories.