vault

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 29 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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)
}

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