Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupportedSASLMechanism = errors.New("unsupported SASL mechanism") ErrNoUsernameAndPassword = errors.New("did not supply a SASL user and password") )
View Source
var SHA256 scram.HashGeneratorFcn = func() hash.Hash { return sha256.New() }
SHA256 generates the SHA256 hash
View Source
var SHA512 scram.HashGeneratorFcn = func() hash.Hash { return sha512.New() }
SHA512 generates the SHA512 hash
Functions ¶
This section is empty.
Types ¶
type SaslConfig ¶
type SaslConfig struct { Enabled bool `yaml:"enabled"` Mechanism string `yaml:"mechanism,omitempty"` User string `yaml:"user,omitempty"` Password string `yaml:"password,omitempty"` }
SaslConfig holds the SASL configuration options
type TLSConfig ¶
type TLSConfig struct { Enabled bool `yaml:"enabled"` RootCAFiles []string `yaml:"rootCAFiles"` CertFile string `yaml:"certFile,omitempty"` KeyFile string `yaml:"keyFile,omitempty"` InsecureSkipVerify bool `yaml:"insecureSkipVerify"` }
TLSConfig holds the TLS configuration for the Kafka sink producer
type XDGSCRAMClient ¶
type XDGSCRAMClient struct { *scram.Client *scram.ClientConversation scram.HashGeneratorFcn }
XDGSCRAMClient represents struct to XDG Scram client to initialize conversation
func (*XDGSCRAMClient) Begin ¶
func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (err error)
Begin initializes new client and conversation to securely transmit the provided credentials to Kafka
func (*XDGSCRAMClient) Done ¶
func (x *XDGSCRAMClient) Done() bool
Done returns true if the conversation is completed or has errored.
Click to show internal directories.
Click to hide internal directories.