secret

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSecretNotFound = errors.New("secret_not_found")

Functions

This section is empty.

Types

type EnvSource

type EnvSource struct{}

func NewEnvSource

func NewEnvSource() *EnvSource

func (*EnvSource) Close

func (s *EnvSource) Close() error

func (*EnvSource) Get

func (s *EnvSource) Get(_ context.Context, name string) (Secret, error)

type GoogleSecretManager

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

func NewGoogleSecretManager

func NewGoogleSecretManager(ctx context.Context, projectID string) (*GoogleSecretManager, error)

func (*GoogleSecretManager) Close

func (m *GoogleSecretManager) Close() error

func (*GoogleSecretManager) Get

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

type Secret

type Secret = []byte

type Source

type Source interface {
	Get(context.Context, string) (Secret, error)
	Close() error
}

Jump to

Keyboard shortcuts

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