Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type Credential interface {
Token(ctx context.Context, options ...TokenOption) (Token, error)
}
Credential is the interface that wraps around method Token.
type Scope ¶ added in v0.10.0
type Scope string
Scope represents a scope for a token.
const ( // ScopeResourceManager is the scope needed for tokens to be used with Azure Resource Manager. ScopeResourceManager Scope = "https://management.azure.com/.default" // ScopeKeyVault is the scope needed for tokens to be used with Azure Key Vault. ScopeKeyVault Scope = "https://vault.azure.net/.default" // ScopeAppConfig is the scope needed for tokens to be used with Azure App Config. ScopeAppConfig Scope = "https://azconfig.io/.default" )
type TokenOption ¶ added in v0.10.0
type TokenOption func(o *TokenOptions)
TokenOption is a function that sets options for a token request.
func WithScope ¶ added in v0.10.0
func WithScope(scope Scope) TokenOption
WithScope sets the scope of the token request.
type TokenOptions ¶ added in v0.10.0
type TokenOptions struct {
Scope Scope
}
TokenOptions contains options for a token request.
Click to show internal directories.
Click to hide internal directories.