Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoValidVaultTokenAvailable = errors.New("no currently valid valid token")
Functions ¶
This section is empty.
Types ¶
type VaultToken ¶
type VaultToken interface { CheckAndRefresh() error Set(token *util.WrappedToken) error Accessor() string TokenID() string Secret() *api.Secret Wrapped() *util.WrappedToken }
VaultToken contains actions used for checking Vault tokens and accessing underlying fields.
func NewVaultToken ¶
func NewVaultToken(briefcase *briefcase.Briefcase, vaultClient vaultclient.VaultClient, vaultTokenCliArg string, tokenRenewableCliArg bool) VaultToken
NewVaultToken constructs an implementation of VaultToken which uses provided parameters.
Click to show internal directories.
Click to hide internal directories.