auth

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: Apache-2.0, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuxiliaryToken added in v1.4.0

func GetAuxiliaryToken(ctx context.Context, url string, scope string) (azcore.AccessToken, error)

func GetUserAgentExtension

func GetUserAgentExtension() string

func NewTokenWrapper added in v0.5.1

func NewTokenWrapper(cred azcore.TokenCredential) azcore.TokenCredential

Types

type AuxiliaryTokenPolicy added in v1.4.0

type AuxiliaryTokenPolicy struct {
	Token string
}

AuxiliaryTokenPolicy provides a custom policy used to authenticate with shared node image galleries.

func NewAuxiliaryTokenPolicy added in v1.4.0

func NewAuxiliaryTokenPolicy(token azcore.AccessToken) AuxiliaryTokenPolicy

func (*AuxiliaryTokenPolicy) Do added in v1.4.0

type ClientConfig

type ClientConfig struct {
	CloudName               string
	Location                string
	SubscriptionID          string
	ResourceManagerEndpoint string
	Authorizer              autorest.Authorizer
	UserAgent               string
}

ClientConfig contains all essential information to create an Azure client.

type Config

type Config struct {
	Cloud          string `json:"cloud" yaml:"cloud"`
	Location       string `json:"location" yaml:"location"`
	TenantID       string `json:"tenantId" yaml:"tenantId"`
	SubscriptionID string `json:"subscriptionId" yaml:"subscriptionId"`
	ResourceGroup  string `json:"resourceGroup" yaml:"resourceGroup"`
}

Config holds the configuration parsed from the --cloud-config flag

func BuildAzureConfig

func BuildAzureConfig() (*Config, error)

BuildAzureConfig returns a Config object for the Azure clients

func (*Config) Build added in v0.6.0

func (cfg *Config) Build() error

func (*Config) Default added in v0.6.0

func (cfg *Config) Default() error

func (*Config) GetAzureClientConfig

func (cfg *Config) GetAzureClientConfig(authorizer autorest.Authorizer, env *azure.Environment) *ClientConfig

func (*Config) Validate added in v0.6.0

func (cfg *Config) Validate() error

Jump to

Keyboard shortcuts

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