secret

package
v0.0.99 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const RedisDB = "redisdb"

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretProvider

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

func NewSecret

func NewSecret() *SecretProvider

func (*SecretProvider) BootstrapHandler

func (s *SecretProvider) BootstrapHandler(
	ctx context.Context,
	_ *sync.WaitGroup,
	startupTimer startup.Timer,
	dic *di.Container) bool

BootstrapHandler creates a secretClient to be used for obtaining secrets from a SecretProvider store manager. NOTE: This BootstrapHandler is responsible for creating a utility that will most likely be used by other BootstrapHandlers to obtain sensitive data, such as database credentials. This BootstrapHandler should be processed before other BootstrapHandlers, possibly even first since it has not other dependencies.

func (*SecretProvider) GetCertificateKeyPair

func (s *SecretProvider) GetCertificateKeyPair(path string) (config.CertKeyPair, error)

func (*SecretProvider) GetDatabaseCredentials

func (s *SecretProvider) GetDatabaseCredentials(database config.Database) (config.Credentials, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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