Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AWSSASLFromConfigFn = notImportedAWSFn
AWSSASLFromConfigFn is populated with the child `aws` package when imported.
View Source
var (
ErrUnsupportedSASLMechanism = errors.New("unsupported SASL mechanism")
)
SASL specific error types.
View Source
var SHA256 scram.HashGeneratorFcn = sha256.New
SHA256 generates the SHA256 hash.
View Source
var SHA512 scram.HashGeneratorFcn = sha512.New
SHA512 generates the SHA512 hash.
Functions ¶
func ApplySASLConfig ¶
ApplySASLConfig applies a SASL config to a sarama config.
func NewKafkaWriter ¶
func NewKafkaWriter(conf output.KafkaConfig, mgr bundle.NewManagement) (output.AsyncSink, error)
NewKafkaWriter returns a kafka writer.
Types ¶
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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.