Documentation ¶
Index ¶
- Constants
- type SecretProvider
- func (s *SecretProvider) BootstrapHandler(ctx context.Context, _ *sync.WaitGroup, startupTimer startup.Timer, ...) bool
- func (s *SecretProvider) GetCertificateKeyPair(path string) (config.CertKeyPair, error)
- func (s *SecretProvider) GetDatabaseCredentials(database config.Database) (config.Credentials, error)
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 ¶ added in v0.0.23
func (s *SecretProvider) GetCertificateKeyPair(path string) (config.CertKeyPair, error)
func (*SecretProvider) GetDatabaseCredentials ¶
func (s *SecretProvider) GetDatabaseCredentials(database config.Database) (config.Credentials, error)
Click to show internal directories.
Click to hide internal directories.