topic

package
v0.0.0-...-27a480c Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaClient

type KafkaClient struct {
	Log logr.Logger
	// contains filtered or unexported fields
}

func (*KafkaClient) Close

func (client *KafkaClient) Close() error

Close terminates the connection

func (*KafkaClient) Create

func (client *KafkaClient) Create(kt *v1alpha1.KafkaTopic) error

Create creates a topic on the target

func (*KafkaClient) Delete

func (client *KafkaClient) Delete(topic string) error

Delete removes the topic from target

func (*KafkaClient) DeleteIfExists

func (client *KafkaClient) DeleteIfExists(topic string) error

func (*KafkaClient) Exists

func (client *KafkaClient) Exists(topic string) (bool, error)

Exists checks if a topic already exists on the target

func (*KafkaClient) Init

func (client *KafkaClient) Init(kc *v1alpha1.KafkaConnection) error

Init initialises the the admin client

func (*KafkaClient) Update

func (client *KafkaClient) Update(kt *v1alpha1.KafkaTopic) error

Update allows for changes in the topic config

Jump to

Keyboard shortcuts

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