util

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKafkaSecrets

func GetKafkaSecrets(ctx context.Context, k8sClient kubernetes.Interface, k8sNamespace string) (*corev1.SecretList, error)

Utility Function For Getting All (Limit 100) The Kafka Secrets In A K8S Namespace

func NewTopicError

func NewTopicError(kError sarama.KError, message string) *sarama.TopicError

Utility Function For Creating A Sarama TopicError With Specified Kafka Error Code (ErrNoError == Success)

func NewUnknownTopicError

func NewUnknownTopicError(message string) *sarama.TopicError

Utility Function For Creating A New ErrUnknownTopicError With Specified Message

func PromoteErrorToTopicError

func PromoteErrorToTopicError(err error) *sarama.TopicError

Utility Function To Up-Convert Any Basic Errors Into TopicErrors

func ValidateKafkaSecret

func ValidateKafkaSecret(logger *zap.Logger, secret *corev1.Secret) bool

Utility Function For Validating Kafka Secret

Types

This section is empty.

Jump to

Keyboard shortcuts

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