awsmsk

package
v0.0.0-...-64ac051 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package msk implements the required IAM auth used by AWS' managed Kafka platform to be used with the Surama kafka producer.

Further details on how the SASL connector works can be viewed here:

https://github.com/aws/aws-msk-iam-auth#details

Index

Constants

View Source
const (
	Mechanism = "AWS_MSK_IAM"
)

Variables

View Source
var (
	ErrFailedServerChallenge = errors.New("failed server challenge")
	ErrBadChallenge          = errors.New("invalid challenge data provided")
	ErrInvalidStateReached   = errors.New("invalid state reached")
)

Functions

func NewIAMSASLClient

func NewIAMSASLClient(mskhostname, region, useragent string) sarama.SCRAMClient

Types

type IAMSASLClient

type IAMSASLClient struct {
	MSKHostname string
	Region      string
	UserAgent   string
	// contains filtered or unexported fields
}

func (*IAMSASLClient) Begin

func (sc *IAMSASLClient) Begin(username, password, _ string) error

func (*IAMSASLClient) Done

func (sc *IAMSASLClient) Done() bool

func (*IAMSASLClient) Step

func (sc *IAMSASLClient) Step(challenge string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL