agentproxyshared

package
v1.14.8 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MPL-2.0 Imports: 24 Imported by: 0

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

Jump to

Keyboard shortcuts

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