logs

package
v1.10.5-lite3 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadLogs

func ReadLogs(path, containerID string, opts *LogOptions, runtimeService internalapi.RuntimeService, stdout, stderr io.Writer) error

ReadLogs read the container log and redirect into stdout and stderr. Note that containerID is only needed when following the log, or else just pass in empty string "".

Types

type LogOptions

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

LogOptions is the CRI internal type of all log options.

func NewLogOptions

func NewLogOptions(apiOpts *v1.PodLogOptions, now time.Time) *LogOptions

NewLogOptions convert the v1.PodLogOptions to CRI internal LogOptions.

Jump to

Keyboard shortcuts

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