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 ¶
NewCLIProvider creates a new Azure CLI provider.
func NewDeviceCodeProvider ¶
NewDeviceCodeProvider creates a new Azure device code provider.
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.
Click to show internal directories.
Click to hide internal directories.