Files
kmsvc-manage/internal/operator/admin.go
T
rock b09d0ee42b
ci / test (push) Failing after 34s
build / Build and push image (push) Failing after 26s
fix: update module path from rock/ to riotpiao-poimen/ org
2026-09-07 22:44:50 -07:00

18 lines
630 B
Go

package operator
import (
"context"
"forgejo.riotpiao.com/riotpiao-poimen/kmsvc-manage/internal/kafka"
)
// TopicAdmin is the subset of internal/kafka.Admin the reconciler needs,
// abstracted so tests can substitute a fake instead of a real Kafka cluster.
type TopicAdmin interface {
CreateTopic(ctx context.Context, topic string, cfg kafka.TopicConfig) error
DeleteTopic(ctx context.Context, topic string) error
LogEndOffsetSum(ctx context.Context, topic string) (int64, error)
ConsumerLag(ctx context.Context, group, topic string) (int64, error)
ReplicaBrokerIDs(ctx context.Context, topic string) ([]int32, error)
}