Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBadTLSConfig = errors.New("bad TLS configuration")
)
Functions ¶
This section is empty.
Types ¶
type Parameters ¶
type SecretProperties ¶
type SecretProperties struct { MountPath string Path string UserField string PasswordField string SecretName string UserName string }
the locations / field names of kv2 secrets
type Vault ¶
type Vault struct { Parameters Parameters // contains filtered or unexported fields }
func NewVaultAppRoleClient ¶
func NewVaultAppRoleClient(ctx context.Context, parameters Parameters) (*Vault, error)
NewVaultAppRoleClient logs in to Vault using the AppRole authentication method, returning an authenticated client and the auth token itself, which can be periodically renewed.
func (*Vault) GetKVSecret ¶
func (v *Vault) GetKVSecret(ctx context.Context, props *SecretProperties, secret string) (*vault.KVSecret, error)
GetKVSecret fetches the latest version of secret api key from kv-v1 or kv-v2
func (*Vault) IsLoggedIn ¶
Click to show internal directories.
Click to hide internal directories.