Documentation ¶
Index ¶
- type KafkaUtil
- func (k *KafkaUtil) AllTopicsInSync() (bool, error)
- func (k *KafkaUtil) CreateTopic(topicSpec spec.KafkaTopicSpec) error
- func (k *KafkaUtil) GetPartitions(topic string) ([]int32, error)
- func (k *KafkaUtil) GetTopicConfiguration(cluster spec.Kafkacluster) ([]spec.KafkaTopic, error)
- func (k *KafkaUtil) GetTopicsOnBroker(cluster spec.Kafkacluster, brokerId int32) ([]string, error)
- func (k *KafkaUtil) ListTopics() ([]string, error)
- func (k *KafkaUtil) PrintFullStats() error
- func (k *KafkaUtil) RemoveTopicFromBrokers(cluster spec.Kafkacluster, brokerToDelete int32, topic string) error
- func (k *KafkaUtil) RemoveTopicsFromBrokers(cluster spec.Kafkacluster, brokerToDelete int32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaUtil ¶
type KafkaUtil struct { KafkaClient sarama.Client BrokerList []string ClusterName string KazooClient *kazoo.Kazoo }
func (*KafkaUtil) AllTopicsInSync ¶
func (*KafkaUtil) CreateTopic ¶
func (k *KafkaUtil) CreateTopic(topicSpec spec.KafkaTopicSpec) error
func (*KafkaUtil) GetTopicConfiguration ¶
func (k *KafkaUtil) GetTopicConfiguration(cluster spec.Kafkacluster) ([]spec.KafkaTopic, error)
func (*KafkaUtil) GetTopicsOnBroker ¶
func (*KafkaUtil) ListTopics ¶
func (*KafkaUtil) PrintFullStats ¶
func (*KafkaUtil) RemoveTopicFromBrokers ¶
func (*KafkaUtil) RemoveTopicsFromBrokers ¶
func (k *KafkaUtil) RemoveTopicsFromBrokers(cluster spec.Kafkacluster, brokerToDelete int32) error
Click to show internal directories.
Click to hide internal directories.