Documentation ¶
Index ¶
- Constants
- Variables
- func BootstrapServers(bootstrapServers []string) func(obj duckv1.KRShaped)
- func BrokerAddressable(env *config.Env) func(broker *eventing.Broker)
- func BrokerConfig(bootstrapServers string, numPartitions, replicationFactor int, ...) *corev1.ConfigMap
- func BrokerConfigMapAnnotations() reconcilertesting.BrokerOption
- func BrokerConfigMapSecretAnnotation(name string) reconcilertesting.BrokerOption
- func BrokerDLSResolved(uri string) func(broker *eventing.Broker)
- func BrokerDispatcherPod(namespace string, annotations map[string]string) runtime.Object
- func BrokerDispatcherPodUpdate(namespace string, annotations map[string]string) clientgotesting.UpdateActionImpl
- func BrokerReady(broker *eventing.Broker)
- func BrokerReceiverPod(namespace string, annotations map[string]string) runtime.Object
- func BrokerReceiverPodUpdate(namespace string, annotations map[string]string) clientgotesting.UpdateActionImpl
- func BrokerReference() *contract.Reference
- func BrokerTopic() string
- func ChannelAddressable(env *config.Env) func(obj duckv1.KRShaped)
- func ChannelDispatcherPod(namespace string, annotations map[string]string) runtime.Object
- func ChannelDispatcherPodUpdate(namespace string, annotations map[string]string) clientgotesting.UpdateActionImpl
- func ChannelReceiverPod(namespace string, annotations map[string]string) runtime.Object
- func ChannelReceiverPodUpdate(namespace string, annotations map[string]string) clientgotesting.UpdateActionImpl
- func ChannelReference() *contract.Reference
- func ChannelTopic() string
- func ConfigMapUpdate(env *config.Env, contract *contract.Contract) clientgotesting.UpdateActionImpl
- func ConsumerGroupReady(cg *kafkainternals.ConsumerGroup)
- func InitSinkConditions(obj duckv1.KRShaped)
- func InitSourceConditions(obj duckv1.KRShaped)
- func KReference(configMap *corev1.ConfigMap) *duckv1.KReference
- func NewBroker(options ...reconcilertesting.BrokerOption) runtime.Object
- func NewChannel(options ...KRShapedOption) runtime.Object
- func NewConfigMapFromContract(contract *contract.Contract, env *config.Env) runtime.Object
- func NewConfigMapWithBinaryData(env *config.Env, data []byte) runtime.Object
- func NewConfigMapWithTextData(namespace, name string, data map[string]string) runtime.Object
- func NewConsumer(ordinal int, opts ...ConsumerOption) *kafkainternals.Consumer
- func NewConsumerGroup(opts ...ConsumerGroupOption) *kafkainternals.ConsumerGroup
- func NewConsumerSpec(opts ...ConsumerSpecOption) kafkainternals.ConsumerSpec
- func NewConsumerSpecAuth() *kafkainternals.Auth
- func NewConsumerSpecDelivery(order internals.DeliveryOrdering) *kafkainternals.DeliverySpec
- func NewConsumerSpecFilters() *kafkainternals.Filters
- func NewDeletedBroker(options ...reconcilertesting.BrokerOption) runtime.Object
- func NewDeletedSink(options ...KRShapedOption) runtime.Object
- func NewDeletedSource(options ...KRShapedOption) runtime.Object
- func NewFactory(env *config.Env, ctor Ctor) Factory
- func NewSSLSecret(ns, name string) *corev1.Secret
- func NewService(mutations ...func(*corev1.Service)) *corev1.Service
- func NewSink(options ...KRShapedOption) runtime.Object
- func NewSource(options ...KRShapedOption) *sources.KafkaSource
- func NewSourceSinkObject() *corev1.Service
- func NewSourceSinkReference() duckv1.Destination
- func ServiceURLFrom(ns, name string) string
- func SinkAddressable(configs *config.Env) func(obj duckv1.KRShaped)
- func SinkAuthSecretRef(name string) func(obj duckv1.KRShaped)
- func SinkReceiverPod(namespace string, annotations map[string]string) runtime.Object
- func SinkReceiverPodUpdate(namespace string, annotations map[string]string) clientgotesting.UpdateActionImpl
- func SinkReference() *contract.Reference
- func SinkTopic() string
- func SourceDispatcherPod(namespace string, annotations map[string]string) runtime.Object
- func SourceReference() *contract.Reference
- func StatusBrokerConfigMapUpdatedReady(env *config.Env) func(broker *eventing.Broker)
- func StatusBrokerConfigNotParsed(reason string) func(broker *eventing.Broker)
- func StatusBrokerConfigParsed(broker *eventing.Broker)
- func StatusBrokerDataPlaneAvailable(broker *eventing.Broker)
- func StatusBrokerDataPlaneNotAvailable(broker *eventing.Broker)
- func StatusBrokerFailedToCreateTopic(broker *eventing.Broker)
- func StatusBrokerProbeFailed(status prober.Status) reconcilertesting.BrokerOption
- func StatusBrokerProbeSucceeded(broker *eventing.Broker)
- func StatusBrokerTopicReady(broker *eventing.Broker)
- func StatusConfigMapNotUpdatedReady(reason, message string) func(obj duckv1.KRShaped)
- func StatusConfigMapUpdatedReady(env *config.Env) func(obj duckv1.KRShaped)
- func StatusConfigNotParsed(reason string) func(obj duckv1.KRShaped)
- func StatusConfigParsed(obj duckv1.KRShaped)
- func StatusControllerOwnsTopic(topicOwner string) func(obj duckv1.KRShaped)
- func StatusDataPlaneAvailable(obj duckv1.KRShaped)
- func StatusDataPlaneNotAvailable(obj duckv1.KRShaped)
- func StatusFailedToCreateTopic(topicName string) func(obj duckv1.KRShaped)
- func StatusInitialOffsetsCommitted(obj duckv1.KRShaped)
- func StatusProbeFailed(status prober.Status) func(obj duckv1.KRShaped)
- func StatusProbeSucceeded(obj duckv1.KRShaped)
- func StatusTopicNotPresentErr(topic string, err error) func(obj duckv1.KRShaped)
- func StatusTopicReadyWithName(topic string) func(obj duckv1.KRShaped)
- func StatusTopicReadyWithOwner(topic, owner string) func(obj duckv1.KRShaped)
- func ToUnstructured(t *testing.T, objs []runtime.Object) (us []runtime.Object)
- func TriggerReference() *contract.Reference
- func WithBrokerConfig(reference *duckv1.KReference) func(*eventing.Broker)
- func WithDeadLetterSinkURI(uri string) func(cg *kafkainternals.ConsumerGroup)
- func WithDeletedTimeStamp(obj duckv1.KRShaped)
- func WithDelivery(mutations ...func(spec *eventingduck.DeliverySpec)) func(*eventing.Broker)
- func WithFreshSubscriber(sub *SubscriberInfo)
- func WithInitKafkaChannelConditions(obj duckv1.KRShaped)
- func WithNoDeadLetterSinkNamespace(spec *eventingduck.DeliverySpec)
- func WithNoSubscriberURI(sub *SubscriberInfo)
- func WithRetry(retry *int32, policy *eventingduck.BackoffPolicyType, delay *string) func(*eventing.Broker)
- func WithServiceNamespace(ns string) func(s *corev1.Service)
- func WithSubscribers(subscribers ...*SubscriberInfo) func(obj duckv1.KRShaped)
- func WithUnreadySubscriber(sub *SubscriberInfo)
- type CMOption
- type ConsumerConfigsOption
- type ConsumerGroupOption
- func ConsumerForTrigger() ConsumerGroupOption
- func ConsumerGroupConsumerSpec(spec kafkainternals.ConsumerSpec) ConsumerGroupOption
- func ConsumerGroupReplicas(replicas int32) ConsumerGroupOption
- func ConsumerGroupReplicasStatus(replicas int32) ConsumerGroupOption
- func ConsumerGroupSelector(selector map[string]string) ConsumerGroupOption
- func WithConsumerGroupFailed(reason string, msg string) ConsumerGroupOption
- func WithConsumerGroupLabels(labels map[string]string) ConsumerGroupOption
- func WithConsumerGroupName(name string) ConsumerGroupOption
- func WithConsumerGroupNamespace(namespace string) ConsumerGroupOption
- func WithConsumerGroupOwnerRef(ownerref *metav1.OwnerReference) ConsumerGroupOption
- type ConsumerOption
- type ConsumerSpecOption
- func ConsumerAuth(auth *kafkainternals.Auth) ConsumerSpecOption
- func ConsumerCloudEventOverrides(ce *duckv1.CloudEventOverrides) ConsumerSpecOption
- func ConsumerConfigs(opts ...ConsumerConfigsOption) ConsumerSpecOption
- func ConsumerDelivery(delivery *kafkainternals.DeliverySpec) ConsumerSpecOption
- func ConsumerFilters(filters *kafkainternals.Filters) ConsumerSpecOption
- func ConsumerPlacement(pb kafkainternals.PodBind) ConsumerSpecOption
- func ConsumerSubscriber(dest duckv1.Destination) ConsumerSpecOption
- func ConsumerTopics(topics ...string) ConsumerSpecOption
- func ConsumerVReplicas(vreplicas int32) ConsumerSpecOption
- type Ctor
- type KRShapedOption
- func StatusSourceSinkNotResolved(err string) KRShapedOption
- func StatusSourceSinkResolved(uri string) KRShapedOption
- func WithCloudEventOverrides(overrides *duckv1.CloudEventOverrides) KRShapedOption
- func WithKeyType(keyType string) KRShapedOption
- func WithNumPartitions(np int32) KRShapedOption
- func WithReplicationFactor(rp int16) KRShapedOption
- func WithRetentionDuration(rd string) KRShapedOption
- type Listers
- func (l *Listers) GetAllObjects() []runtime.Object
- func (l *Listers) GetBrokerLister() eventinglisters.BrokerLister
- func (l *Listers) GetConfigMapLister() corelisters.ConfigMapLister
- func (l *Listers) GetConsumerGroupLister() consumerlisters.ConsumerGroupLister
- func (l *Listers) GetConsumerLister() consumerlisters.ConsumerLister
- func (l *Listers) GetEventingKafkaBrokerObjects() []runtime.Object
- func (l *Listers) GetEventingKafkaObjects() []runtime.Object
- func (l *Listers) GetEventingObjects() []runtime.Object
- func (l *Listers) GetKafkaChannelLister() eventingkafkachannelslisters.KafkaChannelLister
- func (l *Listers) GetKafkaInternalsObjects() []runtime.Object
- func (l *Listers) GetKafkaSinkLister() eventingkafkabrokerlisters.KafkaSinkLister
- func (l *Listers) GetKafkaSourceLister() eventingkafkasourceslisters.KafkaSourceLister
- func (l *Listers) GetKubeObjects() []runtime.Object
- func (l *Listers) GetPodLister() corelisters.PodLister
- func (l *Listers) GetSecretLister() corelisters.SecretLister
- func (l *Listers) GetSubscriptionLister() messaginglisters.SubscriptionLister
- func (l *Listers) GetTriggerLister() eventinglisters.TriggerLister
- type SubscriberInfo
Constants ¶
View Source
const ( BrokerUUID = "e7185016-5d98-4b54-84e8-3b1cd4acc6b4" BrokerNamespace = "test-namespace" BrokerName = "test-broker" TriggerName = "test-trigger" TriggerNamespace = "test-namespace" ConfigMapFinalizerName = "kafka.brokers.eventing.knative.dev/" + BrokerNamespace + "-" + BrokerName )
View Source
const ( ChannelName = "kc" ChannelNamespace = "test-nc" ChannelUUID = "c1234567-8901-2345-6789-123456789101" ChannelBootstrapServers = "kafka-1:9092,kafka-2:9093" Subscription1Name = "sub-1" Subscription2Name = "sub-2" Subscription1UUID = "2f9b5e8e-deb6-11e8-9f32-f2801f1b9fd1" Subscription2UUID = "34c5aec8-deb6-11e8-9f32-f2801f1b9fd1" Subscription1URI = "sub-1-uri" Subscription2URI = "sub-2-uri" Subscription1ReplyURI = "sub-1-reply-uri" )
View Source
const ( ConfigMapNamespace = "test-namespace-config-map" ConfigMapName = "test-config-cm" ServiceNamespace = "test-service-namespace" ServiceName = "test-service" TriggerUUID = "e7185016-5d98-4b54-84e8-3b1cd4acc6b5" SecretResourceVersion = "1234" SecretUUID = "a7185016-5d98-4b54-84e8-3b1cd4acc6b6" )
View Source
const ( ConsumerNamePrefix = "test-cg" ConsumerNamespace = "test-cg-ns" )
View Source
const ( ConsumerGroupName = "test-cg" ConsumerGroupNamespace = "test-cg-ns" ConsumerGroupTestKey = ConsumerGroupNamespace + "/" + ConsumerGroupName )
View Source
const ( SinkUUID = "e7185016-5d98-4b54-84e8-3b1cd4acc6b5" SinkNamespace = "sink-namespace" SinkName = "sink-name" SinkNumPartitions = 10 SinkReplicationFactor = 3 SinkNotPresentErrFormat = "failed to describe topics %v: %v" )
View Source
const ( SourceName = "ks" SourceNamespace = "test-ns" SourceConsumerGroup = "ks-group" SourceUUID = "uuid" SourceBootstrapServers = "kafka:9092" )
Variables ¶
View Source
var ( Formats = []string{base.Protobuf, base.Json} ServiceURL = ServiceURLFrom(ServiceNamespace, ServiceName) )
View Source
var (
ConsumerLabels = map[string]string{"c": "C"}
)
View Source
var (
SourceTopics = []string{"t1", "t2"}
)
Functions ¶
func BootstrapServers ¶ added in v0.18.0
func BrokerAddressable ¶ added in v0.18.0
func BrokerConfig ¶
func BrokerConfigMapAnnotations ¶ added in v0.29.4
func BrokerConfigMapAnnotations() reconcilertesting.BrokerOption
func BrokerConfigMapSecretAnnotation ¶ added in v0.29.4
func BrokerConfigMapSecretAnnotation(name string) reconcilertesting.BrokerOption
func BrokerDLSResolved ¶ added in v0.27.0
func BrokerDispatcherPod ¶ added in v0.18.0
func BrokerDispatcherPodUpdate ¶ added in v0.18.0
func BrokerDispatcherPodUpdate(namespace string, annotations map[string]string) clientgotesting.UpdateActionImpl
func BrokerReady ¶
func BrokerReceiverPod ¶ added in v0.18.0
func BrokerReceiverPodUpdate ¶ added in v0.18.0
func BrokerReceiverPodUpdate(namespace string, annotations map[string]string) clientgotesting.UpdateActionImpl
func BrokerReference ¶ added in v0.29.0
func BrokerTopic ¶ added in v0.18.0
func BrokerTopic() string
func ChannelAddressable ¶ added in v0.28.0
func ChannelDispatcherPod ¶ added in v0.28.0
func ChannelDispatcherPodUpdate ¶ added in v0.28.0
func ChannelDispatcherPodUpdate(namespace string, annotations map[string]string) clientgotesting.UpdateActionImpl
func ChannelReceiverPod ¶ added in v0.28.0
func ChannelReceiverPodUpdate ¶ added in v0.28.0
func ChannelReceiverPodUpdate(namespace string, annotations map[string]string) clientgotesting.UpdateActionImpl
func ChannelReference ¶ added in v0.29.0
func ChannelTopic ¶ added in v0.28.0
func ChannelTopic() string
func ConfigMapUpdate ¶
func ConfigMapUpdate(env *config.Env, contract *contract.Contract) clientgotesting.UpdateActionImpl
func ConsumerGroupReady ¶ added in v0.29.0
func ConsumerGroupReady(cg *kafkainternals.ConsumerGroup)
func InitSinkConditions ¶ added in v0.18.0
func InitSourceConditions ¶ added in v0.28.0
func KReference ¶
func KReference(configMap *corev1.ConfigMap) *duckv1.KReference
func NewBroker ¶
func NewBroker(options ...reconcilertesting.BrokerOption) runtime.Object
NewBroker creates a new Broker with broker class equals to kafka.BrokerClass.
func NewChannel ¶ added in v0.28.0
func NewChannel(options ...KRShapedOption) runtime.Object
func NewConfigMapFromContract ¶ added in v0.18.0
func NewConfigMapWithBinaryData ¶ added in v0.28.0
func NewConfigMapWithTextData ¶ added in v0.28.0
func NewConsumer ¶ added in v0.29.0
func NewConsumer(ordinal int, opts ...ConsumerOption) *kafkainternals.Consumer
func NewConsumerGroup ¶ added in v0.28.0
func NewConsumerGroup(opts ...ConsumerGroupOption) *kafkainternals.ConsumerGroup
func NewConsumerSpec ¶ added in v0.29.0
func NewConsumerSpec(opts ...ConsumerSpecOption) kafkainternals.ConsumerSpec
func NewConsumerSpecAuth ¶ added in v0.29.0
func NewConsumerSpecAuth() *kafkainternals.Auth
func NewConsumerSpecDelivery ¶ added in v0.29.0
func NewConsumerSpecDelivery(order internals.DeliveryOrdering) *kafkainternals.DeliverySpec
func NewConsumerSpecFilters ¶ added in v0.29.0
func NewConsumerSpecFilters() *kafkainternals.Filters
func NewDeletedBroker ¶
func NewDeletedBroker(options ...reconcilertesting.BrokerOption) runtime.Object
func NewDeletedSink ¶ added in v0.18.0
func NewDeletedSink(options ...KRShapedOption) runtime.Object
func NewDeletedSource ¶ added in v0.27.0
func NewDeletedSource(options ...KRShapedOption) runtime.Object
func NewFactory ¶
func NewSSLSecret ¶ added in v0.21.0
func NewSink ¶ added in v0.18.0
func NewSink(options ...KRShapedOption) runtime.Object
func NewSource ¶ added in v0.27.0
func NewSource(options ...KRShapedOption) *sources.KafkaSource
func NewSourceSinkObject ¶ added in v0.27.0
func NewSourceSinkReference ¶ added in v0.27.0
func NewSourceSinkReference() duckv1.Destination
func ServiceURLFrom ¶ added in v0.25.2
func SinkAddressable ¶ added in v0.18.0
func SinkAuthSecretRef ¶ added in v0.21.0
func SinkReceiverPod ¶ added in v0.18.0
func SinkReceiverPodUpdate ¶ added in v0.18.0
func SinkReceiverPodUpdate(namespace string, annotations map[string]string) clientgotesting.UpdateActionImpl
func SinkReference ¶ added in v0.29.0
func SourceDispatcherPod ¶ added in v0.27.0
func SourceReference ¶ added in v0.29.0
func StatusBrokerConfigMapUpdatedReady ¶ added in v0.28.0
func StatusBrokerConfigNotParsed ¶ added in v0.28.0
func StatusBrokerConfigParsed ¶ added in v0.28.0
func StatusBrokerDataPlaneAvailable ¶ added in v0.28.0
func StatusBrokerDataPlaneNotAvailable ¶ added in v0.28.0
func StatusBrokerFailedToCreateTopic ¶ added in v0.28.0
func StatusBrokerProbeFailed ¶ added in v0.28.0
func StatusBrokerProbeFailed(status prober.Status) reconcilertesting.BrokerOption
func StatusBrokerProbeSucceeded ¶ added in v0.28.0
func StatusBrokerTopicReady ¶ added in v0.28.0
func StatusConfigMapNotUpdatedReady ¶ added in v0.28.0
func StatusConfigMapUpdatedReady ¶ added in v0.28.0
func StatusConfigNotParsed ¶ added in v0.28.0
func StatusConfigParsed ¶ added in v0.28.0
func StatusControllerOwnsTopic ¶ added in v0.28.0
func StatusDataPlaneAvailable ¶ added in v0.28.0
func StatusDataPlaneNotAvailable ¶ added in v0.28.0
func StatusFailedToCreateTopic ¶ added in v0.28.0
func StatusInitialOffsetsCommitted ¶ added in v0.28.0
func StatusProbeFailed ¶ added in v0.28.0
func StatusProbeSucceeded ¶ added in v0.28.0
func StatusTopicNotPresentErr ¶ added in v0.28.0
func StatusTopicReadyWithName ¶ added in v0.28.0
func StatusTopicReadyWithOwner ¶ added in v0.28.0
func ToUnstructured ¶ added in v0.18.0
ToUnstructured takes a list of k8s resources and converts them to Unstructured objects. We must pass objects as Unstructured to the dynamic client fake, or it won't handle them properly.
func TriggerReference ¶ added in v0.29.0
func WithBrokerConfig ¶
func WithBrokerConfig(reference *duckv1.KReference) func(*eventing.Broker)
func WithDeadLetterSinkURI ¶ added in v0.29.0
func WithDeadLetterSinkURI(uri string) func(cg *kafkainternals.ConsumerGroup)
func WithDeletedTimeStamp ¶ added in v0.28.0
func WithDelivery ¶
func WithDelivery(mutations ...func(spec *eventingduck.DeliverySpec)) func(*eventing.Broker)
func WithFreshSubscriber ¶ added in v0.28.0
func WithFreshSubscriber(sub *SubscriberInfo)
func WithInitKafkaChannelConditions ¶ added in v0.28.0
func WithNoDeadLetterSinkNamespace ¶ added in v0.25.2
func WithNoDeadLetterSinkNamespace(spec *eventingduck.DeliverySpec)
func WithNoSubscriberURI ¶ added in v0.29.3
func WithNoSubscriberURI(sub *SubscriberInfo)
func WithRetry ¶ added in v0.19.0
func WithRetry(retry *int32, policy *eventingduck.BackoffPolicyType, delay *string) func(*eventing.Broker)
func WithServiceNamespace ¶ added in v0.25.2
func WithSubscribers ¶ added in v0.28.0
func WithSubscribers(subscribers ...*SubscriberInfo) func(obj duckv1.KRShaped)
func WithUnreadySubscriber ¶ added in v0.28.0
func WithUnreadySubscriber(sub *SubscriberInfo)
Types ¶
type CMOption ¶ added in v0.21.0
func BrokerAuthConfig ¶ added in v0.21.0
func BrokerConfigFinalizer ¶ added in v0.28.0
func BrokerConfigFinalizerRemove ¶ added in v0.28.0
type ConsumerConfigsOption ¶ added in v0.29.0
type ConsumerConfigsOption func(configs *kafkainternals.ConsumerConfigs)
func ConsumerBootstrapServersConfig ¶ added in v0.29.0
func ConsumerBootstrapServersConfig(s string) ConsumerConfigsOption
func ConsumerGroupIdConfig ¶ added in v0.29.0
func ConsumerGroupIdConfig(s string) ConsumerConfigsOption
type ConsumerGroupOption ¶ added in v0.29.0
type ConsumerGroupOption func(cg *kafkainternals.ConsumerGroup)
func ConsumerForTrigger ¶ added in v0.29.0
func ConsumerForTrigger() ConsumerGroupOption
func ConsumerGroupConsumerSpec ¶ added in v0.29.0
func ConsumerGroupConsumerSpec(spec kafkainternals.ConsumerSpec) ConsumerGroupOption
func ConsumerGroupReplicas ¶ added in v0.29.0
func ConsumerGroupReplicas(replicas int32) ConsumerGroupOption
func ConsumerGroupReplicasStatus ¶ added in v0.29.0
func ConsumerGroupReplicasStatus(replicas int32) ConsumerGroupOption
func ConsumerGroupSelector ¶ added in v0.29.0
func ConsumerGroupSelector(selector map[string]string) ConsumerGroupOption
func WithConsumerGroupFailed ¶ added in v0.29.0
func WithConsumerGroupFailed(reason string, msg string) ConsumerGroupOption
func WithConsumerGroupLabels ¶ added in v0.29.0
func WithConsumerGroupLabels(labels map[string]string) ConsumerGroupOption
func WithConsumerGroupName ¶ added in v0.29.0
func WithConsumerGroupName(name string) ConsumerGroupOption
func WithConsumerGroupNamespace ¶ added in v0.29.0
func WithConsumerGroupNamespace(namespace string) ConsumerGroupOption
func WithConsumerGroupOwnerRef ¶ added in v0.29.0
func WithConsumerGroupOwnerRef(ownerref *metav1.OwnerReference) ConsumerGroupOption
type ConsumerOption ¶ added in v0.29.0
type ConsumerOption func(cg *kafkainternals.Consumer)
func ConsumerSpec ¶ added in v0.29.0
func ConsumerSpec(spec kafkainternals.ConsumerSpec) ConsumerOption
type ConsumerSpecOption ¶ added in v0.29.0
type ConsumerSpecOption func(c *kafkainternals.ConsumerSpec)
func ConsumerAuth ¶ added in v0.29.0
func ConsumerAuth(auth *kafkainternals.Auth) ConsumerSpecOption
func ConsumerCloudEventOverrides ¶ added in v0.29.0
func ConsumerCloudEventOverrides(ce *duckv1.CloudEventOverrides) ConsumerSpecOption
func ConsumerConfigs ¶ added in v0.29.0
func ConsumerConfigs(opts ...ConsumerConfigsOption) ConsumerSpecOption
func ConsumerDelivery ¶ added in v0.29.0
func ConsumerDelivery(delivery *kafkainternals.DeliverySpec) ConsumerSpecOption
func ConsumerFilters ¶ added in v0.29.0
func ConsumerFilters(filters *kafkainternals.Filters) ConsumerSpecOption
func ConsumerPlacement ¶ added in v0.29.0
func ConsumerPlacement(pb kafkainternals.PodBind) ConsumerSpecOption
func ConsumerSubscriber ¶ added in v0.29.0
func ConsumerSubscriber(dest duckv1.Destination) ConsumerSpecOption
func ConsumerTopics ¶ added in v0.29.0
func ConsumerTopics(topics ...string) ConsumerSpecOption
func ConsumerVReplicas ¶ added in v0.29.0
func ConsumerVReplicas(vreplicas int32) ConsumerSpecOption
type Ctor ¶
type Ctor func(ctx context.Context, listers *Listers, env *config.Env, row *TableRow) pkgcontroller.Reconciler
Ctor functions create a k8s controller with given params.
type KRShapedOption ¶ added in v0.28.0
func StatusSourceSinkNotResolved ¶ added in v0.28.0
func StatusSourceSinkNotResolved(err string) KRShapedOption
func StatusSourceSinkResolved ¶ added in v0.28.0
func StatusSourceSinkResolved(uri string) KRShapedOption
func WithCloudEventOverrides ¶ added in v0.27.0
func WithCloudEventOverrides(overrides *duckv1.CloudEventOverrides) KRShapedOption
func WithKeyType ¶ added in v0.27.0
func WithKeyType(keyType string) KRShapedOption
func WithNumPartitions ¶ added in v0.28.0
func WithNumPartitions(np int32) KRShapedOption
func WithReplicationFactor ¶ added in v0.28.0
func WithReplicationFactor(rp int16) KRShapedOption
func WithRetentionDuration ¶ added in v0.28.0
func WithRetentionDuration(rd string) KRShapedOption
type Listers ¶
type Listers struct {
// contains filtered or unexported fields
}
func (*Listers) GetAllObjects ¶
func (*Listers) GetBrokerLister ¶
func (l *Listers) GetBrokerLister() eventinglisters.BrokerLister
func (*Listers) GetConfigMapLister ¶
func (l *Listers) GetConfigMapLister() corelisters.ConfigMapLister
func (*Listers) GetConsumerGroupLister ¶ added in v0.28.0
func (l *Listers) GetConsumerGroupLister() consumerlisters.ConsumerGroupLister
func (*Listers) GetConsumerLister ¶ added in v0.28.0
func (l *Listers) GetConsumerLister() consumerlisters.ConsumerLister
func (*Listers) GetEventingKafkaBrokerObjects ¶ added in v0.27.0
func (*Listers) GetEventingKafkaObjects ¶ added in v0.18.0
func (*Listers) GetEventingObjects ¶
func (*Listers) GetKafkaChannelLister ¶ added in v0.28.0
func (l *Listers) GetKafkaChannelLister() eventingkafkachannelslisters.KafkaChannelLister
func (*Listers) GetKafkaInternalsObjects ¶ added in v0.29.0
func (*Listers) GetKafkaSinkLister ¶ added in v0.18.0
func (l *Listers) GetKafkaSinkLister() eventingkafkabrokerlisters.KafkaSinkLister
func (*Listers) GetKafkaSourceLister ¶ added in v0.27.0
func (l *Listers) GetKafkaSourceLister() eventingkafkasourceslisters.KafkaSourceLister
func (*Listers) GetKubeObjects ¶
func (*Listers) GetPodLister ¶
func (l *Listers) GetPodLister() corelisters.PodLister
func (*Listers) GetSecretLister ¶ added in v0.21.0
func (l *Listers) GetSecretLister() corelisters.SecretLister
func (*Listers) GetSubscriptionLister ¶ added in v0.29.0
func (l *Listers) GetSubscriptionLister() messaginglisters.SubscriptionLister
func (*Listers) GetTriggerLister ¶
func (l *Listers) GetTriggerLister() eventinglisters.TriggerLister
type SubscriberInfo ¶ added in v0.28.0
type SubscriberInfo struct {
// contains filtered or unexported fields
}
func Subscriber1 ¶ added in v0.28.0
func Subscriber1(options ...subscriberInfoOption) *SubscriberInfo
func Subscriber2 ¶ added in v0.28.0
func Subscriber2(options ...subscriberInfoOption) *SubscriberInfo
Click to show internal directories.
Click to hide internal directories.