container

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogEntry added in v0.12.0

func NewLogEntry(container, line string) logEntry

func NewLogStreamer added in v0.12.0

func NewLogStreamer(ctx context.Context, dashConfig config.Dash, key store.Key, containerNames ...string) (*logStreamer, error)

NewLogStreamer returns an instance of a logStream configured to stream logs for the given namespace/pod/container(s).

Types

type LogEntry added in v0.12.0

type LogEntry interface {
	Line() string
	Container() string
}

type LogStreamer added in v0.12.0

type LogStreamer interface {
	// Names returns a list of all of the containers for this log stream.
	Names() []string
	// Stream wraps the client-go GetLogs().Stream call for the configured
	// pods. Stream is responsible for aggregating the logs for all the
	// containers.
	Stream(context.Context, chan<- LogEntry)
	// Close closes all of the streams.
	Close(chan<- LogEntry)
}

Jump to

Keyboard shortcuts

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