azure

package
v1.210.0-test.21 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OIDCTimeout is the timeout for HTTP requests.
	OIDCTimeout = 30 * time.Second
)

Variables

This section is empty.

Functions

func NewCLIProvider

func NewCLIProvider(name string, config *schema.Provider) (*cliProvider, error)

NewCLIProvider creates a new Azure CLI provider.

func NewDeviceCodeProvider

func NewDeviceCodeProvider(name string, config *schema.Provider) (*deviceCodeProvider, error)

NewDeviceCodeProvider creates a new Azure device code provider.

func NewOIDCProvider added in v1.203.0

func NewOIDCProvider(name string, config *schema.Provider) (*oidcProvider, error)

NewOIDCProvider creates a new Azure OIDC provider for workload identity federation.

Types

type CacheStorage

type CacheStorage interface {
	// ReadFile reads the cache file at the given path.
	ReadFile(path string) ([]byte, error)
	// WriteFile writes data to the cache file at the given path.
	WriteFile(path string, data []byte, perm os.FileMode) error
	// Remove deletes the cache file at the given path.
	Remove(path string) error
	// MkdirAll creates directory path with permissions.
	MkdirAll(path string, perm os.FileMode) error
	// GetXDGCacheDir returns the XDG cache directory for the given subdirectory.
	GetXDGCacheDir(subdir string, perm os.FileMode) (string, error)
}

CacheStorage defines interface for token cache storage operations. This interface enables testing without filesystem dependencies.

Jump to

Keyboard shortcuts

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