Documentation
¶
Index ¶
- func NewCredential(credsOpts []CredentialOption, option *NewCredentialOption) (token *azidentity.ChainedTokenCredential, err error)
- func NewGithubCredential(tenantId, clientId, requestUrl, requestToken string, ...) (azcore.TokenCredential, error)
- type AssertionFileCredentialOption
- type AssertionPlainCredentialOption
- type AssertionRequestAzureDevOpsCredentialOption
- type AssertionRequestCredentialOption
- type AssertionRequestCredentialPlatformOption
- type AssertionRequestGithubCredentialOption
- type AssertionRequestType
- type AzureCLICredentialOption
- type AzureDevCLICredentialOption
- type ClientCertificateCredentialOption
- type ClientSecretCredentialOption
- type CredentialOption
- type GithubCredentialOption
- type ManagedIdentityCredentialOption
- type NewCredentialOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCredential ¶
func NewCredential(credsOpts []CredentialOption, option *NewCredentialOption) (token *azidentity.ChainedTokenCredential, err error)
NewCredential news a chained token credential. The exact credentials and their orders being chained are determined by the `credOpts`.
func NewGithubCredential ¶
func NewGithubCredential(tenantId, clientId, requestUrl, requestToken string, options *GithubCredentialOption) (azcore.TokenCredential, error)
Types ¶
type AssertionFileCredentialOption ¶
type AssertionFileCredentialOption struct {
TenantId string
ClientId string
AssertionFile string
// Optional
azcore.ClientOptions
AdditionallyAllowedTenants []string
DisableInstanceDiscovery bool
Cache azidentity.Cache
}
type AssertionPlainCredentialOption ¶
type AssertionPlainCredentialOption struct {
TenantId string
ClientId string
Assertion string
// Optional
azcore.ClientOptions
AdditionallyAllowedTenants []string
DisableInstanceDiscovery bool
Cache azidentity.Cache
}
type AssertionRequestAzureDevOpsCredentialOption ¶
type AssertionRequestAzureDevOpsCredentialOption struct {
TenantId string
ClientId string
ServiceConnectionId string
SystemAccessToken string
// Optional
azcore.ClientOptions
AdditionallyAllowedTenants []string
DisableInstanceDiscovery bool
Cache azidentity.Cache
}
type AssertionRequestCredentialOption ¶
type AssertionRequestCredentialOption struct {
Type AssertionRequestType
PlatformOption AssertionRequestCredentialPlatformOption
}
type AssertionRequestCredentialPlatformOption ¶
type AssertionRequestCredentialPlatformOption interface {
// contains filtered or unexported methods
}
type AssertionRequestGithubCredentialOption ¶
type AssertionRequestGithubCredentialOption struct {
TenantId string
ClientId string
RequestToken string
RequestUrl string
// Optional
azcore.ClientOptions
AdditionallyAllowedTenants []string
DisableInstanceDiscovery bool
Cache azidentity.Cache
}
type AssertionRequestType ¶
type AssertionRequestType string
const ( AssertionRequestTypeGithub AssertionRequestType = "Github" AssertionRequestTypeAzureDevOps AssertionRequestType = "AzureDevOps" )
type ClientCertificateCredentialOption ¶
type ClientCertificateCredentialOption struct {
TenantId string
ClientId string
CertData []*x509.Certificate
CertKey crypto.PrivateKey
// Optional
azcore.ClientOptions
AdditionallyAllowedTenants []string
DisableInstanceDiscovery bool
Cache azidentity.Cache
SendCertificateChain bool
}
type ClientSecretCredentialOption ¶
type ClientSecretCredentialOption struct {
TenantId string
ClientId string
ClientSecret string
// Optional
azcore.ClientOptions
AdditionallyAllowedTenants []string
DisableInstanceDiscovery bool
Cache azidentity.Cache
}
type CredentialOption ¶
type CredentialOption interface {
// contains filtered or unexported methods
}
type GithubCredentialOption ¶
type GithubCredentialOption struct {
azcore.ClientOptions
AdditionallyAllowedTenants []string
DisableInstanceDiscovery bool
Cache azidentity.Cache
}
type ManagedIdentityCredentialOption ¶
type ManagedIdentityCredentialOption struct {
// Optional
azcore.ClientOptions
ID azidentity.ManagedIDKind
}
type NewCredentialOption ¶
type NewCredentialOption struct {
Logger *log.Logger
ChainedTokenOption azidentity.ChainedTokenCredentialOptions
}
Click to show internal directories.
Click to hide internal directories.