secret

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 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, idOrName string) ([]byte, error)

GetSecret returns the plaintext secret value.

Its argument may either be the user defined name originally specified within a SecretID, or a full SecretID value.

A user defined name will be received when secrets are used in a Dockerfile build.

In all other cases, a SecretID is expected.

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