Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cloud ¶
type Cloud string
func (Cloud) ActiveDirectoryEndpoint ¶
func (Cloud) ResourceManagerEndpoint ¶
type Credential ¶
type Credential struct {
ClientID string
ClientSecret string
TenantID string
SubscriptionID string
Cloud Cloud
}
Credential is the provider-local Azure credential shape used by the lightweight ARM client. SubscriptionID is optional; when empty the provider enumerates all visible subscriptions first.
func FromOptions ¶
func FromOptions(options schema.Options) (Credential, error)
func New ¶
func New(clientID, clientSecret, tenantID, subscriptionID string, cloud Cloud) Credential
func (Credential) Validate ¶
func (c Credential) Validate() error
type TokenSource ¶
type TokenSource struct {
// contains filtered or unexported fields
}
TokenSource fetches and caches OAuth2 client credentials tokens.
func NewTokenSource ¶
func NewTokenSource(cred Credential, httpClient *http.Client) *TokenSource
Click to show internal directories.
Click to hide internal directories.