secret

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: Apache-2.0 Imports: 12 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(
	_ context.Context,
	_ *sync.WaitGroup,
	_ startup.Timer,
	dic *di.Container) bool

SecretClientBootstrapHandler 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) GetDatabaseCredentials

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

Jump to

Keyboard shortcuts

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