secret

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("secret not found")

ErrNotFound indicates a secret can not be found.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore() *Store

func (*Store) AddSecret added in v0.4.1

func (store *Store) AddSecret(_ context.Context, name, plaintext string) (core.SecretID, error)

AddSecret adds the secret identified by user defined name with its plaintext value to the secret store.

func (*Store) GetSecret

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

GetSecret returns the plaintext from the id.

func (*Store) SetGateway

func (store *Store) SetGateway(gw bkgw.Client)

Jump to

Keyboard shortcuts

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