vault

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 31 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnableCache      bool
	VaultClientCache clientCache
)

Functions

This section is empty.

Types

type Auth added in v0.5.2

type Auth interface {
	Login(ctx context.Context, authMethod vault.AuthMethod) (*vault.Secret, error)
}

type Client

type Client interface {
	SetToken(v string)
	Token() string
	ClearToken()
	Auth() Auth
	Logical() Logical
	AuthToken() Token
	SetNamespace(namespace string)
	AddHeader(key, value string)
}

type Logical added in v0.5.2

type Logical interface {
	ReadWithDataWithContext(ctx context.Context, path string, data map[string][]string) (*vault.Secret, error)
	ListWithContext(ctx context.Context, path string) (*vault.Secret, error)
	WriteWithContext(ctx context.Context, path string, data map[string]interface{}) (*vault.Secret, error)
	DeleteWithContext(ctx context.Context, path string) (*vault.Secret, error)
}

type Token added in v0.5.2

type Token interface {
	RevokeSelfWithContext(ctx context.Context, token string) error
	LookupSelfWithContext(ctx context.Context) (*vault.Secret, error)
}

type VClient added in v0.5.2

type VClient struct {
	// contains filtered or unexported fields
}

func (VClient) AddHeader added in v0.5.2

func (v VClient) AddHeader(key, value string)

func (VClient) Auth added in v0.5.2

func (v VClient) Auth() Auth

func (VClient) AuthToken added in v0.5.2

func (v VClient) AuthToken() Token

func (VClient) ClearToken added in v0.5.2

func (v VClient) ClearToken()

func (VClient) Logical added in v0.5.2

func (v VClient) Logical() Logical

func (VClient) SetNamespace added in v0.5.2

func (v VClient) SetNamespace(namespace string)

func (VClient) SetToken added in v0.5.2

func (v VClient) SetToken(token string)

func (VClient) Token added in v0.5.2

func (v VClient) Token() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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