Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientSetup ¶
type ClientSetup struct { *autorest.BearerAuthorizer File BaseURI string }
ClientSetup includes authentication details and cloud specific parameters for ARM clients
func GetClientSetup ¶
func GetClientSetup(baseURI string) (auth ClientSetup, err error)
GetClientSetup provides an authorizer, base URI, subscriptionID and tenantID parameters from an Azure CLI auth file
type File ¶
type File struct { ClientID string `json:"clientId,omitempty"` ClientSecret string `json:"clientSecret,omitempty"` SubscriptionID string `json:"subscriptionId,omitempty"` TenantID string `json:"tenantId,omitempty"` ActiveDirectoryEndpoint string `json:"activeDirectoryEndpointUrl,omitempty"` ResourceManagerEndpoint string `json:"resourceManagerEndpointUrl,omitempty"` GraphResourceID string `json:"activeDirectoryGraphResourceId,omitempty"` SQLManagementEndpoint string `json:"sqlManagementEndpointUrl,omitempty"` GalleryEndpoint string `json:"galleryEndpointUrl,omitempty"` ManagementEndpoint string `json:"managementEndpointUrl,omitempty"` }
File represents the authentication file
Click to show internal directories.
Click to hide internal directories.