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) 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.
Click to show internal directories.
Click to hide internal directories.