vault

package
v0.0.0-...-cb1a7a4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionManager

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

func NewConnectionManager

func NewConnectionManager(client *KVV2Client) *ConnectionManager

func (*ConnectionManager) Get

func (m *ConnectionManager) Get(ctx context.Context, typ, name string) (*model.Connection, error)

func (*ConnectionManager) List

type KVV2Client

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

KVV2Client accesses metadata and data from a KV V2 engine mount uniformly.

func NewKVV2Client

func NewKVV2Client(delegate *vaultapi.Client, enginePath string) *KVV2Client

func (*KVV2Client) In

func (c *KVV2Client) In(sub ...string) *KVV2Client

func (*KVV2Client) List

func (c *KVV2Client) List(ctx context.Context) ([]string, error)

func (*KVV2Client) Read

func (c *KVV2Client) Read(ctx context.Context) (interface{}, error)

func (*KVV2Client) ReadString

func (c *KVV2Client) ReadString(ctx context.Context) (string, error)

type SecretManager

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

func NewSecretManager

func NewSecretManager(client *KVV2Client) *SecretManager

func (*SecretManager) Get

func (m *SecretManager) Get(ctx context.Context, name string) (*model.Secret, error)

func (*SecretManager) List

func (m *SecretManager) List(ctx context.Context) ([]*model.Secret, error)

Jump to

Keyboard shortcuts

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