kafka

package
v1.0.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrorCrtFileMandatory when private key is provided but certificate not.
	ErrorCrtFileMandatory = errors.New("client certificate is mandatory when private key file is provided")
	// ErrorKeyFileMandatory when certificate is provided but private not.
	ErrorKeyFileMandatory = errors.New("client private key is mandatory when certificate file is provided")
	// ErrorUsernameOrPasswordMandatory when username or password is not provided
	ErrorUsernameOrPasswordMandatory = errors.New("username and password is mandatory")
)

Functions

func CreateKafkaConsumer

func CreateKafkaConsumer(triggerObjName, funcName, ns, topic string, clientset kubernetes.Interface) error

CreateKafkaConsumer creates a goroutine that subscribes to Kafka topic

func DeleteKafkaConsumer

func DeleteKafkaConsumer(triggerObjName, funcName, ns, topic string) error

DeleteKafkaConsumer deletes goroutine created by CreateKafkaConsumer

func GetSASLConfiguration

func GetSASLConfiguration(username string, password string) (string, string, error)

GetSASLConfiguration build SASL configuration for kafka.

func GetTLSConfiguration

func GetTLSConfiguration(caFile string, certFile string, keyFile string, insecure string) (*tls.Config, error)

GetTLSConfiguration build TLS configuration for kafka, return tlsConfig associated with kafka connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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