Documentation
¶
Index ¶
- Constants
- Variables
- func AzureGetRequiredEnv() []string
- func FixCloudName(cloudName string) string
- func FromStrPointerMap(pointerMap map[string]*string) map[string]string
- func GetAzureClientSecretCredential(azCfg AzureCredentials) (*azidentity.ClientSecretCredential, error)
- func Is404(err error) bool
- func NewAzureCredentials(azcred *AzureCredentials) (azcore.TokenCredential, error)
- func PolicyFromCloudString(cloudName string) cloud.Configuration
- func PollWrapper[T any](ctx context.Context, poller *runtime.Poller[T], pollerType string) (*T, error)
- func SanitizeName(name string) string
- func ToResponseError(err error) *azcore.ResponseError
- func ToStrPointerMap(stringMap map[string]string) map[string]*string
- type AzureCredentialLoader
- type AzureCredentials
Constants ¶
View Source
const ( CredTypeCli = "cli" CredTypeDevCli = "devcli" CredTypeSecret = "secret" CredTypeCode = "devicecode" CredTypeDefault = "default" CredTypeEnv = "env" CredTypeBrowser = "browser" CredTypeManaged = "managed" CredTypeOther = "other" )
View Source
const ( CloudPublic = "public" CloudUSGovernment = "usgovernment" CloudAzureUSGovernment = "azureusgovernment" )
View Source
const AzureCredentialsKey = "azure"
View Source
const DefaultRegion = "usgovvirginia"
Variables ¶
View Source
var DefaultTransport policy.Transporter
Functions ¶
func AzureGetRequiredEnv ¶ added in v0.0.3
func AzureGetRequiredEnv() []string
func FixCloudName ¶ added in v0.0.46
func GetAzureClientSecretCredential ¶
func GetAzureClientSecretCredential(azCfg AzureCredentials) (*azidentity.ClientSecretCredential, error)
func NewAzureCredentials ¶ added in v0.0.16
func NewAzureCredentials(azcred *AzureCredentials) (azcore.TokenCredential, error)
func PolicyFromCloudString ¶ added in v0.0.30
func PolicyFromCloudString(cloudName string) cloud.Configuration
func PollWrapper ¶ added in v0.0.46
func SanitizeName ¶ added in v0.0.46
func ToResponseError ¶ added in v0.0.46
func ToResponseError(err error) *azcore.ResponseError
Types ¶
type AzureCredentialLoader ¶
type AzureCredentialLoader struct{}
func (*AzureCredentialLoader) ReadFromEnv ¶
func (loader *AzureCredentialLoader) ReadFromEnv(env *cloudy.Environment) interface{}
type AzureCredentials ¶
type AzureCredentials struct { Type string // Can be any type of CredType* Region string // e.g. "usgovvirginia" TenantID string ClientID string ClientSecret string ResourceGroup string SubscriptionID string Cloud string // e.g. azureusgovernment }
func GetAzureCredentialsFromEnv ¶
func GetAzureCredentialsFromEnv(env *cloudy.Environment) AzureCredentials
Click to show internal directories.
Click to hide internal directories.