Documentation
¶
Index ¶
- Constants
- 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 IsKubernetesEnabled() bool
- func TopicExists(client *sarama.Client, name string) (bool, error)
- type AvroConfig
- type CachingSchemaRegistry
- func (registry *CachingSchemaRegistry) ExtractPayload(data []byte) []byte
- func (registry *CachingSchemaRegistry) ExtractSchemaID(data []byte) (int, error)
- func (registry *CachingSchemaRegistry) GetSubjects() ([]string, error)
- func (registry *CachingSchemaRegistry) SubjectOfTypeExists(subject string, expectedSchemaType srclient.SchemaType) (bool, error)
- type ClientContext
- type Config
- type ConsumerConfig
- type DocsFlags
- type DocsOperation
- type K8sConfig
- type K8sToleration
- type ProducerConfig
- type ProtobufConfig
- type ProtobufMarshalOptions
- type SaslConfig
- type SchemaRegistryConfig
- type TLSConfig
- type TokenProvider
Constants ¶
View Source
const ( WireFormatBytes = 5 MagicByte = 0 )
Variables ¶
This section is empty.
Functions ¶
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
func IsKubernetesEnabled ¶ added in v5.7.0
func IsKubernetesEnabled() bool
Types ¶
type AvroConfig ¶ added in v5.2.0
type CachingSchemaRegistry ¶ added in v5.5.0
type CachingSchemaRegistry struct {
srclient.ISchemaRegistryClient
// contains filtered or unexported fields
}
func CreateCachingSchemaRegistry ¶ added in v5.5.0
func CreateCachingSchemaRegistry(context *ClientContext) (*CachingSchemaRegistry, error)
func (*CachingSchemaRegistry) ExtractPayload ¶ added in v5.6.0
func (registry *CachingSchemaRegistry) ExtractPayload(data []byte) []byte
func (*CachingSchemaRegistry) ExtractSchemaID ¶ added in v5.6.0
func (registry *CachingSchemaRegistry) ExtractSchemaID(data []byte) (int, error)
func (*CachingSchemaRegistry) GetSubjects ¶ added in v5.7.0
func (registry *CachingSchemaRegistry) GetSubjects() ([]string, error)
func (*CachingSchemaRegistry) SubjectOfTypeExists ¶ added in v5.7.0
func (registry *CachingSchemaRegistry) SubjectOfTypeExists(subject string, expectedSchemaType srclient.SchemaType) (bool, error)
type ClientContext ¶
type ClientContext struct {
Name string
Brokers []string
TLS TLSConfig
Sasl SaslConfig
Kubernetes K8sConfig
RequestTimeout time.Duration
ClientID string
KafkaVersion sarama.KafkaVersion
Avro AvroConfig
Protobuf ProtobufConfig
SchemaRegistry SchemaRegistryConfig
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 K8sConfig ¶
type K8sConfig struct {
Enabled bool
Binary string
KubeConfig string
KubeContext string
Namespace string
Image string
ImagePullSecret string
TLSSecret string
ServiceAccount string
AsUser string
KeepPod bool
Labels map[string]string
Annotations map[string]string
NodeSelector map[string]string
Affinity map[string]any
Resources map[string]any
Tolerations []K8sToleration
}
type K8sToleration ¶ added in v5.3.0
type ProducerConfig ¶
type ProtobufConfig ¶ added in v5.7.0
type ProtobufConfig struct {
ProtosetFiles []string
ProtoFiles []string
ProtoImportPaths []string
MarshalOptions ProtobufMarshalOptions
}
type ProtobufMarshalOptions ¶ added in v5.8.0
type SaslConfig ¶
type SchemaRegistryConfig ¶ added in v5.6.0
type TokenProvider ¶
Click to show internal directories.
Click to hide internal directories.