vault

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

copied from https://github.com/hashicorp/vault/blob/main/command/kv_helpers.go

Index

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 GetSecretAPI interface {
	ReadWithData(path string, data map[string][]string) (*api.Secret, error)
	Read(path string) (*api.Secret, error)
}

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

Jump to

Keyboard shortcuts

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