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, sinceSeconds int64, containerNames ...string) (*logStreamer, error)
NewLogStreamer returns an instance of a logStream configured to stream logs for the given namespace/pod/container(s).
Types ¶
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) }
Click to show internal directories.
Click to hide internal directories.