Documentation ¶
Overview ¶
Package messaging contains common constants and utilities functions used when setting up Secure MessageBus. A common bootstrap handler can not be here due to the fact that it would pull in dependency on go-mod-messaging which is dependent on ZMQ. This causes all services that use go-mod-boostrap to them have a dependency on ZMQ which breaks the security bootstrapping.
Index ¶
Constants ¶
View Source
const ( 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 SetOptionsAuthData ¶
func SetOptionsAuthData(messageBusInfo *config.MessageBusInfo, lc logger.LoggingClient, dic *di.Container) error
func ValidateSecretData ¶
func ValidateSecretData(authMode string, secretName string, secretData *SecretData) error
Types ¶
Click to show internal directories.
Click to hide internal directories.