secrets

package
v0.0.0-...-599305b Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvVarSecretFetcher

type EnvVarSecretFetcher struct{}

func (*EnvVarSecretFetcher) GetSecret

func (f *EnvVarSecretFetcher) GetSecret(key string) (string, error)

type GcpSecretManagerFetcher

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

func NewGcpSecretManagerFetcher

func NewGcpSecretManagerFetcher(projectID string, credentialsFile string) (*GcpSecretManagerFetcher, error)

func (*GcpSecretManagerFetcher) GetSecret

func (f *GcpSecretManagerFetcher) GetSecret(secretID string) (string, error)

type SecretFetcher

type SecretFetcher interface {
	GetSecret(key string) (string, error)
}

func GetFetcher

func GetFetcher() SecretFetcher

Jump to

Keyboard shortcuts

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