Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPersistentStorageToLeaseCache ¶
func AddPersistentStorageToLeaseCache(ctx context.Context, leaseCache *cache.LeaseCache, persistConfig *PersistConfig, logger log.Logger) (func() error, string, error)
AddPersistentStorageToLeaseCache adds persistence to a lease cache, based on a given PersistConfig Returns a close function to be deferred and the old token, if found, or an error
func GetAutoAuthMethodFromConfig ¶
func GetAutoAuthMethodFromConfig(autoAuthMethodType string, authConfig *auth.AuthConfig, vaultAddress string) (auth.AuthMethod, error)
GetAutoAuthMethodFromConfig Calls the appropriate NewAutoAuthMethod function, initializing the auto-auth method, based on the auto-auth method type. Returns an error if one happens or the method type is invalid.
Types ¶
type PersistConfig ¶
type PersistConfig struct { Type string Path string `hcl:"path"` KeepAfterImport bool `hcl:"keep_after_import"` ExitOnErr bool `hcl:"exit_on_err"` ServiceAccountTokenFile string `hcl:"service_account_token_file"` }
PersistConfig contains configuration needed for persistent caching
Click to show internal directories.
Click to hide internal directories.