Documentation ¶
Overview ¶
Package security defining some security related tools
Package security defining some security related tools
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SHA256 scram.HashGeneratorFcn = sha256.New SHA512 scram.HashGeneratorFcn = sha512.New )
Functions ¶
func NewTLSConfig ¶
func NewTLSConfig(canaryConfig *config.CanaryConfig) (*tls.Config, error)
func SetAuthConfig ¶
func SetAuthConfig(canaryConfig *config.CanaryConfig, saramaConfig *sarama.Config) error
Types ¶
type CanarySCRAM ¶
type CanarySCRAM struct { *scram.Client *scram.ClientConversation scram.HashGeneratorFcn }
func (*CanarySCRAM) Begin ¶
func (canarySCRAM *CanarySCRAM) Begin(username, password, authzID string) (err error)
Click to show internal directories.
Click to hide internal directories.