Versions in this module Expand all Collapse all v6 v6.4.2 Aug 17, 2020 Changes in this version + func NewVaultFactory(sr SecretReader, loggedIn <-chan struct{}, prefix string, ...) *vaultFactory + func NewVaultManagerFactory() creds.ManagerFactory + type APIClient struct + func NewAPIClient(logger lager.Logger, apiURL string, tlsConfig TLSConfig, authConfig AuthConfig, ...) (*APIClient, error) + func (ac *APIClient) Login() (time.Duration, error) + func (ac *APIClient) Read(path string) (*vaultapi.Secret, error) + func (ac *APIClient) Renew() (time.Duration, error) + type AuthConfig struct + Backend string + BackendMaxTTL time.Duration + ClientToken string + Params map[string]string + RetryInitial time.Duration + RetryMax time.Duration + type Auther interface + Login func() (time.Duration, error) + Renew func() (time.Duration, error) + type ReAuther struct + func NewReAuther(logger lager.Logger, auther Auther, maxTTL, retry, max time.Duration) *ReAuther + func (ra *ReAuther) Close() + func (ra *ReAuther) LoggedIn() <-chan struct{} + type SecretReader interface + Read func(path string) (*vaultapi.Secret, error) + type TLSConfig struct + CACert string + CACertFile string + CAPath string + ClientCert string + ClientCertFile string + ClientKey string + ClientKeyFile string + Insecure bool + ServerName string + type Vault struct + LookupTemplates []*creds.SecretTemplate + Prefix string + SecretReader SecretReader + SharedPath string + func (v Vault) Get(secretPath string) (interface{}, *time.Time, bool, error) + func (v Vault) NewSecretLookupPaths(teamName string, pipelineName string, allowRootPath bool) []creds.SecretLookupPath + type VaultManager struct + Auth AuthConfig + Client *APIClient + LookupTemplates []string + Namespace string + PathPrefix string + ReAuther *ReAuther + SecretFactory *vaultFactory + SharedPath string + TLS TLSConfig + URL string + func (manager *VaultManager) Config(config map[string]interface{}) error + func (manager *VaultManager) Init(log lager.Logger) error + func (manager *VaultManager) MarshalJSON() ([]byte, error) + func (manager *VaultManager) NewSecretsFactory(logger lager.Logger) (creds.SecretsFactory, error) + func (manager VaultManager) Close(logger lager.Logger) + func (manager VaultManager) Health() (*creds.HealthResponse, error) + func (manager VaultManager) IsConfigured() bool + func (manager VaultManager) Validate() error