Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthModeKey = "authmode" SecretNameKey = "secretname" AuthModeNone = "none" AuthModeUsernamePassword = "usernamepassword" AuthModeCert = "clientcert" AuthModeCA = "cacert" SecretUsernameKey = "username" SecretPasswordKey = "password" SecretClientKey = "clientkey" SecretClientCert = AuthModeCert SecretCACert = AuthModeCA OptionsUsernameKey = "Username" OptionsPasswordKey = "Password" OptionsCertPEMBlockKey = "CertPEMBlock" OptionsKeyPEMBlockKey = "KeyPEMBlock" OptionsCaPEMBlockKey = "CaPEMBlock" )
Variables ¶
This section is empty.
Functions ¶
func BootstrapHandler ¶
func BootstrapHandler(ctx context.Context, wg *sync.WaitGroup, startupTimer startup.Timer, dic *di.Container) bool
BootstrapHandler fulfills the BootstrapHandler contract. if enabled, tt creates and initializes the Messaging client and adds it to the DIC
func ValidateSecretData ¶
func ValidateSecretData(authMode string, secretName string, secretData *SecretData) error
Types ¶
type SecretData ¶
type SecretData struct { Username string Password string KeyPemBlock []byte CertPemBlock []byte CaPemBlock []byte }
func GetSecretData ¶
func GetSecretData(authMode string, secretName string, provider SecretDataProvider) (*SecretData, error)
Click to show internal directories.
Click to hide internal directories.