Documentation
¶
Overview ¶
copied from github.com/vault/command/kv_helpers
Index ¶
Constants ¶
View Source
const ( TokenAuth = "Token" RoleAuth = "vaultRole" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.