Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvCirrusVaultURL = "CIRRUS_VAULT_URL" EnvCirrusVaultAuthPath = "CIRRUS_VAULT_AUTH_PATH" EnvCirrusVaultNamespace = "CIRRUS_VAULT_NAMESPACE" EnvCirrusVaultRole = "CIRRUS_VAULT_ROLE" )
Variables ¶
View Source
var ( ErrNotABoxedValue = errors.New("doesn't look like a Vault-boxed value") ErrInvalidBoxedValue = errors.New("Vault-boxed value has an invalid format") )
Functions ¶
This section is empty.
Types ¶
type BoxedValue ¶
type BoxedValue struct {
// contains filtered or unexported fields
}
func NewBoxedValue ¶
func NewBoxedValue(rawBoxedValue string) (*BoxedValue, error)
func (*BoxedValue) Select ¶
func (value *BoxedValue) Select(data interface{}) (string, error)
func (*BoxedValue) UseCache ¶
func (value *BoxedValue) UseCache() bool
func (*BoxedValue) VaultPathArgs ¶
func (value *BoxedValue) VaultPathArgs() map[string][]string
type CachedSecret ¶
type VaultUnboxer ¶
type VaultUnboxer struct {
// contains filtered or unexported fields
}
func New ¶
func New(client *vault.Client) *VaultUnboxer
func NewFromEnvironment ¶
func NewFromEnvironment(ctx context.Context, env *environment.Environment) (*VaultUnboxer, error)
func (*VaultUnboxer) Unbox ¶
func (unboxer *VaultUnboxer) Unbox(ctx context.Context, value *BoxedValue) (string, error)
Click to show internal directories.
Click to hide internal directories.