Documentation ¶
Index ¶
- func CreateAvroSchemaRegistryClient(context *ClientContext) (srclient.ISchemaRegistryClient, error)
- func CreateClient(context *ClientContext) (sarama.Client, error)
- func CreateClientConfig(context *ClientContext) (*sarama.Config, error)
- func CreateClusterAdmin(context *ClientContext) (sarama.ClusterAdmin, error)
- func GetClientID(context *ClientContext, defaultPrefix string) string
- func TopicExists(client *sarama.Client, name string) (bool, error)
- type ClientContext
- type Config
- type ConsumerConfig
- type DocsFlags
- type DocsOperation
- type K8sConfig
- type ProducerConfig
- type SaslConfig
- type TLSConfig
- type TokenProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAvroSchemaRegistryClient ¶ added in v5.1.0
func CreateAvroSchemaRegistryClient(context *ClientContext) (srclient.ISchemaRegistryClient, error)
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)
func GetClientID ¶
func GetClientID(context *ClientContext, defaultPrefix string) string
Types ¶
type ClientContext ¶
type ClientContext struct { Name string Brokers []string TLS TLSConfig Sasl SaslConfig Kubernetes K8sConfig RequestTimeout time.Duration ClientID string KafkaVersion sarama.KafkaVersion AvroSchemaRegistry string AvroJSONCodec avro.JSONCodec AvroRequestTimeout time.Duration AvroTLS TLSConfig Protobuf protobuf.SearchContext Producer ProducerConfig Consumer ConsumerConfig }
func CreateClientContext ¶
func CreateClientContext() (ClientContext, error)
type Config ¶
func ListConfigs ¶
func ListConfigs(admin *sarama.ClusterAdmin, resource sarama.ConfigResource, includeDefaults bool) ([]Config, error)
type ConsumerConfig ¶
type ConsumerConfig struct {
IsolationLevel string
}
type DocsOperation ¶
type DocsOperation struct { }
func (*DocsOperation) GenerateDocs ¶
func (operation *DocsOperation) GenerateDocs(rootCmd *cobra.Command, flags DocsFlags) error
type ProducerConfig ¶
type SaslConfig ¶
type SaslConfig struct { Enabled bool Username string Password string Mechanism string TokenProvider TokenProvider }
type TokenProvider ¶
Click to show internal directories.
Click to hide internal directories.