Documentation ¶
Overview ¶
copied from https://github.com/hashicorp/vault/blob/main/command/kv_helpers.go
Index ¶
- Constants
- type GetSecretAPI
- type SecretsClient
- type SecretsClientOpt
- func Address(address string) SecretsClientOpt
- func AuthType(authType string) SecretsClientOpt
- func CacheTTL(ttl time.Duration) SecretsClientOpt
- func RoleAndSecretID(roleID, secretID string) SecretsClientOpt
- func Token(token string) SecretsClientOpt
- func WithMockClient(api GetSecretAPI) SecretsClientOpt
Constants ¶
View Source
const ( TokenAuth = "Token" RoleAuth = "vaultRole" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetSecretAPI ¶ added in v1.8.5
type SecretsClient ¶ added in v1.8.0
type SecretsClient struct { common.SecretClient // contains filtered or unexported fields }
func NewSecretsClient ¶ added in v1.8.0
func NewSecretsClient(opts ...SecretsClientOpt) (*SecretsClient, error)
func (*SecretsClient) GetJSONSecret ¶ added in v1.8.0
func (c *SecretsClient) GetJSONSecret(path string, key string) (string, error)
type SecretsClientOpt ¶ added in v1.8.0
type SecretsClientOpt interface {
// contains filtered or unexported methods
}
func Address ¶ added in v1.8.0
func Address(address string) SecretsClientOpt
func AuthType ¶ added in v1.8.0
func AuthType(authType string) SecretsClientOpt
func CacheTTL ¶ added in v1.6.0
func CacheTTL(ttl time.Duration) SecretsClientOpt
func RoleAndSecretID ¶ added in v1.8.0
func RoleAndSecretID(roleID, secretID string) SecretsClientOpt
func Token ¶
func Token(token string) SecretsClientOpt
func WithMockClient ¶ added in v1.8.5
func WithMockClient(api GetSecretAPI) SecretsClientOpt
Click to show internal directories.
Click to hide internal directories.