secrets

package
v0.0.0-...-5c159d4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: 0BSD Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretFetcher

type SecretFetcher struct {
	Fs     filesys.FileSystemOrOnDisk
	Source Source
}

func NewSecretFetcher

func NewSecretFetcher(options SourceFlags) (*SecretFetcher, error)

func (*SecretFetcher) FetchSecrets

func (f *SecretFetcher) FetchSecrets(vaultUri string, secretSpecs []VaultSecret) (map[string]string, error)

type Source

type Source interface {
	RetrieveSecret(uri, name, version string) (string, error)
}

type SourceFlags

type SourceFlags uint8
const (
	DISK_FS SourceFlags = 1 << iota
	FILE_MOCK
)

type SourceKind

type SourceKind string
const (
	SourceKindAzure    SourceKind = "azure"
	SourceKindFileMock SourceKind = "file-mock"
)

type VaultSecret

type VaultSecret struct {
	Key     string `json:"key" yaml:"key"`
	Secret  string `json:"secret" yaml:"secret"`
	Version string `json:"version" yaml:"version"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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