Documentation
¶
Index ¶
- Constants
- func ClearCache(profileName string) error
- func GetCachedAuthenticationRecord(profileName string) (azidentity.AuthenticationRecord, error)
- type Credential
- type CredentialMethod
- func (m *CredentialMethod) CobraCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func (m *CredentialMethod) HelpText() string
- func (m *CredentialMethod) Set(v string) error
- func (m *CredentialMethod) String() string
- func (m *CredentialMethod) Type() string
Constants ¶
View Source
const ( MicrosoftGraphScope = "https://graph.microsoft.com/.default" AzureResourceManagerScope = "https://management.azure.com/.default" DefaultTenantID = "organizations" )
Variables ¶
This section is empty.
Functions ¶
func ClearCache ¶
func GetCachedAuthenticationRecord ¶
func GetCachedAuthenticationRecord(profileName string) (azidentity.AuthenticationRecord, error)
Types ¶
type Credential ¶
type Credential struct {
// contains filtered or unexported fields
}
func NewCached ¶
func NewCached(profileName string) (*Credential, error)
func NewUncached ¶
func NewUncached(credentialMethod CredentialMethod, tenantID string, clientID string, scopes []string, profileName string) (*Credential, error)
func (*Credential) Authenticate ¶
func (c *Credential) Authenticate(ctx context.Context, opts *policy.TokenRequestOptions) (azidentity.AuthenticationRecord, error)
func (*Credential) GetToken ¶
func (c *Credential) GetToken(ctx context.Context, options policy.TokenRequestOptions) (azcore.AccessToken, error)
type CredentialMethod ¶
type CredentialMethod int
const ( UnknownCredentialMethod CredentialMethod = iota DeviceCodeCredentialMethod InteractiveBrowserCredentialMethod )
func (*CredentialMethod) CobraCompletion ¶
func (m *CredentialMethod) CobraCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
func (*CredentialMethod) HelpText ¶
func (m *CredentialMethod) HelpText() string
func (*CredentialMethod) Set ¶
func (m *CredentialMethod) Set(v string) error
func (*CredentialMethod) String ¶
func (m *CredentialMethod) String() string
func (*CredentialMethod) Type ¶
func (m *CredentialMethod) Type() string
Click to show internal directories.
Click to hide internal directories.