cloudyazure

package module
v0.0.64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 14 Imported by: 0

README

cloudy-azure

Azure implementation of cloudy providers, excluding MS Graph because that is a separate repe

Documentation

Index

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 FixCloudName(cloudName string) string

func FromStrPointerMap

func FromStrPointerMap(pointerMap map[string]*string) map[string]string

func GetAzureClientSecretCredential

func GetAzureClientSecretCredential(azCfg AzureCredentials) (*azidentity.ClientSecretCredential, error)

func Is404 added in v0.0.46

func Is404(err error) bool

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 PollWrapper[T any](ctx context.Context, poller *runtime.Poller[T], pollerType string) (*T, error)

func SanitizeName added in v0.0.46

func SanitizeName(name string) string

func ToResponseError added in v0.0.46

func ToResponseError(err error) *azcore.ResponseError

func ToStrPointerMap

func ToStrPointerMap(stringMap map[string]string) map[string]*string

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL