stream_class

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StreamClassMetricsReporter

type StreamClassMetricsReporter interface {

	// AddStreamClass registers a new stream class with the given kind, metric name, and tags for metrics reporting.
	AddStreamClass(kind string, metricName string, tags map[string]string)

	// RemoveStreamClass unregisters the stream class of the specified kind from metrics reporting.
	RemoveStreamClass(kind string)
}

StreamClassMetricsReporter defines the interface for reporting metrics related to stream classes.

type StreamClassReconciler

type StreamClassReconciler struct {
	// contains filtered or unexported fields
}

func NewStreamClassReconciler

func NewStreamClassReconciler(client client.Client, streamControllerFactory UnmanagedControllerFactory, reporter StreamClassMetricsReporter, eventRecorder record.EventRecorder) *StreamClassReconciler

func (*StreamClassReconciler) Reconcile

func (*StreamClassReconciler) SetupWithManager

func (s *StreamClassReconciler) SetupWithManager(mgr runtime.Manager) error

type StreamControllerHandle

type StreamControllerHandle struct {
	// contains filtered or unexported fields
}

StreamControllerHandle holds the cancel function and GVK for a stream controller

type UnmanagedControllerFactory

type UnmanagedControllerFactory interface {

	// CreateStreamController creates an unmanaged controller for the given GroupVersionKind (GVK).
	CreateStreamController(ctx context.Context, gvk schema.GroupVersionKind, streamClass *v1.StreamClass) (controller.Controller, error)
}

UnmanagedControllerFactory is an interface for creating unmanaged controllers for different GVKs. This allows for dynamic creation of controllers based on the stream class specifications.

Jump to

Keyboard shortcuts

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