Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheFilePath = func(name string) (string, error) {
return "", errMissingImport
}
CacheFilePath returns the path to the cache file for the given name. Defining it in this package makes it available to azidentity tests.
View Source
var NewCache = func(o *TokenCachePersistenceOptions, enableCAE bool) (cache.ExportReplace, error) { if o == nil { return nil, nil } return nil, errMissingImport }
NewCache constructs a persistent token cache when "o" isn't nil. Applications that intend to use a persistent cache must first import the cache module, which will replace this function with a platform-specific implementation.
Functions ¶
This section is empty.
Types ¶
type TokenCachePersistenceOptions ¶
type TokenCachePersistenceOptions struct { // AllowUnencryptedStorage controls whether the cache should fall back to storing its data in plain text // when encryption isn't possible. Setting this true doesn't disable encryption. The cache always attempts // encryption before falling back to plaintext storage. AllowUnencryptedStorage bool // Name identifies the cache. Set this to isolate data from other applications. Name string }
TokenCachePersistenceOptions contains options for persistent token caching
Click to show internal directories.
Click to hide internal directories.