vaulttoken

package
v2.0.0-...-f3fe0fa Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

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