output

package
v0.8.26 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerWriter

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

func NewBrokerWriter

func NewBrokerWriter(br broker.Handler) *BrokerWriter

func (*BrokerWriter) Write

type CompositeWriter

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

a wrapper which allows to have multiple writers under one entity

func NewCompositeWriter

func NewCompositeWriter(writer ...Writer) *CompositeWriter

func (*CompositeWriter) Write

type FileWriter

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

func NewFileWriter

func NewFileWriter(fw file.Writer) *FileWriter

func (*FileWriter) Write

func (s *FileWriter) Write(
	obj model.KubernetesResource,
	evtype broker.EventType,
	config config.PipelineConfig,
) error

type InMemoryDeduplicatorStreamingWriter added in v0.8.23

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

InMemoryDeduplicatorStreamingWriter writes each unique resource once immediately upon first seeing it

func NewInMemoryDeduplicatorStreamingWriter added in v0.8.23

func NewInMemoryDeduplicatorStreamingWriter(realWriter Writer) *InMemoryDeduplicatorStreamingWriter

NewInMemoryDeduplicatorStreamingWriter creates a deduplicator that writes immediately and filters repeats

func (*InMemoryDeduplicatorStreamingWriter) Write added in v0.8.23

type InMemoryDeduplicatorWriter

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

instead of direct write to output destination InMemoryDeduplicatorWriter collects data in memory identifying entity by metadata.uid and write to output only on program exit

func NewInMemoryDeduplicatorWriter

func NewInMemoryDeduplicatorWriter(realWritter Writer) *InMemoryDeduplicatorWriter

func (*InMemoryDeduplicatorWriter) Flush

func (w *InMemoryDeduplicatorWriter) Flush() error

func (*InMemoryDeduplicatorWriter) Write

type Processor

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

func NewProcessor

func NewProcessor() *Processor

func (*Processor) SetOutput

func (p *Processor) SetOutput(output Writer)

func (*Processor) Write

func (p *Processor) Write(
	obj model.KubernetesResource,
	evtype broker.EventType,
	config config.PipelineConfig,
) error

type Writer

type Writer interface {
	Write(
		obj model.KubernetesResource,
		evtype broker.EventType,
		config config.PipelineConfig,
	) error
}

Jump to

Keyboard shortcuts

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