secretprovider

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(stores ...secrets.SecretStore) session.Attachable

New returns a new secrets provider which looks up secrets in each supplied secret store (ordered by argument ordering) and returns the first found secret

func NewCloudStore

func NewCloudStore(client *cloud.Client) secrets.SecretStore

NewCloudStore returns a new cloud secret store

func NewMapStore

func NewMapStore(m map[string][]byte) secrets.SecretStore

NewMapStore returns a new map-based secret store

func NewSecretProviderCmd

func NewSecretProviderCmd(cmd string) (secrets.SecretStore, error)

NewSecretProviderCmd returns a SecretStore that shells out to a user-supplied command

Types

type MutableMapStore added in v0.6.20

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

MutableMapStore is a secret store which can be mutated.

func NewMutableMapStore added in v0.6.20

func NewMutableMapStore(m map[string][]byte) *MutableMapStore

NewMutableMapStore returns a new map-based mutable secret store.

func (*MutableMapStore) DeleteSecret added in v0.6.20

func (m *MutableMapStore) DeleteSecret(ctx context.Context, id string) error

DeleteSecret deletes a secret from the map store.

func (*MutableMapStore) GetSecret added in v0.6.20

func (m *MutableMapStore) GetSecret(ctx context.Context, id string) ([]byte, error)

GetSecret gets a secret from the map store.

func (*MutableMapStore) SetSecret added in v0.6.20

func (m *MutableMapStore) SetSecret(ctx context.Context, id string, data []byte) error

SetSecret sets a secret in the map store.

Jump to

Keyboard shortcuts

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