Documentation ¶
Overview ¶
Package aws provides AWS_MSK_IAM sasl authentication as specified in the Java source.
The Java source can be found at https://github.com/aws/aws-msk-iam-auth.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
type Auth struct { // AccessKey is an AWS AccessKey. AccessKey string // AccessKey is an AWS SecretKey. SecretKey string // SessionToken, if non-empty, is a session / security token to use for // authentication. // // See the following link for more details: // // https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html // SessionToken string // UserAgent is the user agent to for the client to use when connecting // to Kafka, overriding the default "franz-go/<runtime.Version()>/<hostname>". // // Setting a UserAgent allows authorizing based on the aws:UserAgent // condition key; see the following link for more details: // // https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-useragent // UserAgent string // contains filtered or unexported fields }
Auth contains an AWS AccessKey and SecretKey for authentication.
This client may add fields to this struct in the future if Kafka adds more capabilities to MSK IAM.
func (Auth) AsManagedStreamingIAMMechanism ¶
AsManagedStreamingIAMMechanism returns a sasl mechanism that will use 'a' as credentials for all sasl sessions.
This is a shortcut for using the ManagedStreamingIAM function and is useful when you do not need to live-rotate credentials.
Click to show internal directories.
Click to hide internal directories.