Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(thelmaConfig config.Config, creds credentials.Credentials, clientOptions ...ClientOption) (*vaultapi.Client, error)
NewClient returns a new authenticated vault client
func NewVaultTokenStore ¶
NewVaultTokenStore returns a token store that reads and writes values to the current user's ~/.vault-token file. (Note that token keys are ignored.)
func TokenProvider ¶
func TokenProvider(thelmaConfig config.Config, creds credentials.Credentials, clientOptions ...ClientOption) (credentials.TokenProvider, error)
TokenProvider returns a new credentials.TokenProvider that provides a Vault token
Types ¶
type ClientOption ¶ added in v0.0.31
type ClientOption func(*ClientOptions)
type ClientOptions ¶ added in v0.0.31
type ClientOptions struct { CredentialStore stores.Store VaultClientOptions []func(*vaultapi.Config) }
func (*ClientOptions) ConfigureVaultClient ¶ added in v0.0.31
func (c *ClientOptions) ConfigureVaultClient(configureFn func(*vaultapi.Config))
Click to show internal directories.
Click to hide internal directories.