topic

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AddSuffix

func AddSuffix(topic libkafka.Topic, suffixes ...string) libkafka.Topic

Types

type CleanupPolicies

type CleanupPolicies []CleanupPolicy

func (CleanupPolicies) String

func (c CleanupPolicies) String() string

type CleanupPolicy

type CleanupPolicy string
const CleanupPolicyCompact CleanupPolicy = "compact"
const CleanupPolicyDelete CleanupPolicy = "delete"

func (CleanupPolicy) String

func (f CleanupPolicy) String() string

type RetentionBytes

type RetentionBytes int64

func (RetentionBytes) Int64

func (b RetentionBytes) Int64() int64

func (RetentionBytes) String

func (b RetentionBytes) String() string

type RetentionMs

type RetentionMs int64

func (RetentionMs) Int64

func (b RetentionMs) Int64() int64

func (RetentionMs) String

func (b RetentionMs) String() string

type TopicBuilder

type TopicBuilder interface {
	Build(
		name libkafka.Topic,
		cleanupPolicies CleanupPolicies,
		retentionMs RetentionMs,
		retentionBytes RetentionBytes,
	) v1beta2.KafkaTopic
}

func NewTopicBuilder

func NewTopicBuilder() TopicBuilder

type TopicCreator

type TopicCreator interface {
	CreateTopic(
		topic kafka.Topic,
		cleanupPolicies CleanupPolicies,
		retentionMs RetentionMs,
		retentionBytes RetentionBytes,
	) v1beta2.KafkaTopic
}

func NewTopicCreator

func NewTopicCreator(
	topicBuilder TopicBuilder,
) TopicCreator

type TopicsProvider

type TopicsProvider interface {
	Get(ctx context.Context) (v1beta2.KafkaTopics, error)
}

type TopicsProviderFunc

type TopicsProviderFunc func(ctx context.Context) (v1beta2.KafkaTopics, error)

func (TopicsProviderFunc) Get

type TopicsProviderList

type TopicsProviderList []TopicsProvider

func (TopicsProviderList) Get

Jump to

Keyboard shortcuts

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