aggregator

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

type Aggregator interface {
	Serve(ctx context.Context) error
}

Aggregator pulls data from workers and sends them to Wharf API.

func NewK8sAggregator

func NewK8sAggregator(config *config.Config, restConfig *rest.Config) (Aggregator, error)

NewK8sAggregator returns a new Aggregator implementation that targets Kubernetes using a specific Kubernetes namespace and REST config.

type PipeCloser

type PipeCloser interface {
	// PipeMessage should pipe a single message, and when done should return
	// io.EOF to indicate success.
	PipeMessage() error

	io.Closer
}

PipeCloser pipes data, and should always be closed when done with it.

Jump to

Keyboard shortcuts

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