exporter

package
v0.0.0-...-949db17 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterEventExporter

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

ClusterEventExporter is the main event exporter.

func NewClusterEventExporter

func NewClusterEventExporter(eventInformer informerv1.EventInformer, w sinks.Writer) *ClusterEventExporter

NewClusterEventExporter creates a new event exporter with a sink.

func NewUnsunkClusterEventExporter

func NewUnsunkClusterEventExporter(eventInformer informerv1.EventInformer) *ClusterEventExporter

NewUnsunkClusterEventExporter creates a new event exporter. Sinks must be added manually by calling AddSink.

func (*ClusterEventExporter) AddSink

func (c *ClusterEventExporter) AddSink(name string, w sinks.Writer)

AddSink adds an event sink to the exporter.

func (*ClusterEventExporter) DeleteSink

func (c *ClusterEventExporter) DeleteSink(name string)

DeleteSink removes an event sink by name from the exporter.

func (*ClusterEventExporter) Run

func (c *ClusterEventExporter) Run(stopCh <-chan struct{}) error

Run waits for the initial cache sync to complete and blocks until the main exporter loop returns, i.e., when the stopCh closes.

type Exporter

type Exporter interface {
	Run(<-chan struct{}) error
}

Jump to

Keyboard shortcuts

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