trigger

package
v0.36.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerAgentName = "kafka-trigger-controller"

	FinalizerName = "kafka.triggers.eventing.knative.dev"
)
View Source
const (
	NamespacedControllerAgentName = "kafka-namespaced-trigger-controller"

	NamespacedFinalizerName = "kafka.namespaced.triggers.eventing.knative.dev"
)

Variables

This section is empty.

Functions

func NewController

func NewController(ctx context.Context, watcher configmap.Watcher, configs *config.Env) *controller.Impl

func NewNamespacedController added in v0.34.0

func NewNamespacedController(ctx context.Context, watcher configmap.Watcher, configs *config.Env) *controller.Impl

Types

type FlagsHolder added in v0.34.0

type FlagsHolder struct {
	Flags     feature.Flags
	FlagsLock sync.RWMutex
}

type NamespacedReconciler added in v0.34.0

type NamespacedReconciler struct {
	*base.Reconciler
	*FlagsHolder

	BrokerLister    eventinglisters.BrokerLister
	ConfigMapLister corelisters.ConfigMapLister
	EventingClient  eventingclientset.Interface
	Resolver        *resolver.URIResolver

	Env *config.Env

	NewKafkaClusterAdminClient kafka.NewClusterAdminClientFunc
	NewKafkaClient             kafka.NewClientFunc
	InitOffsetsFunc            kafka.InitOffsetsFunc
}

func (*NamespacedReconciler) FinalizeKind added in v0.34.0

func (r *NamespacedReconciler) FinalizeKind(ctx context.Context, trigger *eventing.Trigger) reconciler.Event

func (*NamespacedReconciler) ReconcileKind added in v0.34.0

func (r *NamespacedReconciler) ReconcileKind(ctx context.Context, trigger *eventing.Trigger) reconciler.Event

type Reconciler

type Reconciler struct {
	*base.Reconciler
	*FlagsHolder

	BrokerLister    eventinglisters.BrokerLister
	ConfigMapLister corelisters.ConfigMapLister
	EventingClient  eventingclientset.Interface
	Resolver        *resolver.URIResolver

	Env *config.Env

	BrokerClass string

	DataPlaneConfigMapLabeler base.ConfigMapOption

	// NewKafkaClusterAdminClient creates new sarama ClusterAdmin. It's convenient to add this as Reconciler field so that we can
	// mock the function used during the reconciliation loop.
	NewKafkaClusterAdminClient kafka.NewClusterAdminClientFunc
	// NewKafkaClient creates new sarama Client. It's convenient to add this as Reconciler field so that we can
	// mock the function used during the reconciliation loop.
	NewKafkaClient kafka.NewClientFunc
	// InitOffsetsFunc initialize offsets for a provided set of topics and a provided consumer group id.
	// It's convenient to add this as Reconciler field so that we can mock the function used during the
	// reconciliation loop.
	InitOffsetsFunc kafka.InitOffsetsFunc
}

func (*Reconciler) FinalizeKind

func (r *Reconciler) FinalizeKind(ctx context.Context, trigger *eventing.Trigger) reconciler.Event

func (*Reconciler) ReconcileKind

func (r *Reconciler) ReconcileKind(ctx context.Context, trigger *eventing.Trigger) reconciler.Event

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL