logstream

package
v0.0.0-...-2cb4bbe Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ChaosDuck is the well known name for the chaosduck.
	ChaosDuck = "chaosduck"
	// QueueProxy is the well known name for the queueproxy.
	QueueProxy = "queueproxy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback func(string, ...interface{})

Callback is invoked after pod logs are transformed

type Canceler

type Canceler func()

Canceler is the type of a function returned when a logstream is started to be deferred so that the logstream can be stopped when the test is complete.

type Source

type Source interface {
	// Start a log stream for the given resource name and invoke
	// the callback with the processed log
	StartStream(name string, l Callback) (Canceler, error)
}

Source allows you to create streams for a given resource name

func FromNamespace

func FromNamespace(ctx context.Context, c kubernetes.Interface, namespace string) Source

func FromNamespaces

func FromNamespaces(ctx context.Context, c kubernetes.Interface, namespaces []string) Source

Jump to

Keyboard shortcuts

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