Documentation ¶
Index ¶
- func CompleteTopicNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CreateClient(context *ClientContext) (sarama.Client, error)
- func CreateClientConfig(context *ClientContext) (*sarama.Config, error)
- func CreateClusterAdmin(context *ClientContext) (sarama.ClusterAdmin, error)
- func TopicExists(client *sarama.Client, name string) (bool, error)
- type AlterTopicFlags
- type ClientContext
- type CreateTopicFlags
- type DescribeTopicFlags
- type DocsFlags
- type DocsOperation
- type GetTopicsFlags
- type K8sConfig
- type SaslConfig
- type TlsConfig
- type TopicOperation
- func (operation *TopicOperation) AlterTopic(topic string, flags AlterTopicFlags) error
- func (operation *TopicOperation) CreateTopics(topics []string, flags CreateTopicFlags) error
- func (operation *TopicOperation) DeleteTopics(topics []string) error
- func (operation *TopicOperation) DescribeTopic(topic string, flags DescribeTopicFlags) error
- func (operation *TopicOperation) GetTopics(flags GetTopicsFlags) error
- func (operation *TopicOperation) ListTopicsNames() ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompleteTopicNames ¶ added in v1.10.0
func CreateClient ¶
func CreateClient(context *ClientContext) (sarama.Client, error)
func CreateClientConfig ¶
func CreateClientConfig(context *ClientContext) (*sarama.Config, error)
func CreateClusterAdmin ¶
func CreateClusterAdmin(context *ClientContext) (sarama.ClusterAdmin, error)
Types ¶
type AlterTopicFlags ¶
type ClientContext ¶
type ClientContext struct { Name string Brokers []string Tls TlsConfig Sasl SaslConfig Kubernetes K8sConfig ClientID string KafkaVersion sarama.KafkaVersion AvroSchemaRegistry string DefaultPartitioner string }
func CreateClientContext ¶
func CreateClientContext() (ClientContext, error)
type CreateTopicFlags ¶
type DescribeTopicFlags ¶
type DocsOperation ¶
type DocsOperation struct { }
func (*DocsOperation) GenerateDocs ¶
func (operation *DocsOperation) GenerateDocs(rootCmd *cobra.Command, flags DocsFlags) error
type GetTopicsFlags ¶
type GetTopicsFlags struct {
OutputFormat string
}
type SaslConfig ¶
type TopicOperation ¶
type TopicOperation struct { }
func (*TopicOperation) AlterTopic ¶
func (operation *TopicOperation) AlterTopic(topic string, flags AlterTopicFlags) error
func (*TopicOperation) CreateTopics ¶
func (operation *TopicOperation) CreateTopics(topics []string, flags CreateTopicFlags) error
func (*TopicOperation) DeleteTopics ¶
func (operation *TopicOperation) DeleteTopics(topics []string) error
func (*TopicOperation) DescribeTopic ¶
func (operation *TopicOperation) DescribeTopic(topic string, flags DescribeTopicFlags) error
func (*TopicOperation) GetTopics ¶
func (operation *TopicOperation) GetTopics(flags GetTopicsFlags) error
func (*TopicOperation) ListTopicsNames ¶ added in v1.10.0
func (operation *TopicOperation) ListTopicsNames() ([]string, error)
Click to show internal directories.
Click to hide internal directories.