package logs

import "k8s.io/kubernetes/pkg/kubelet/kuberuntime/logs"

Index

Functions

func ReadLogs

func ReadLogs(ctx context.Context, 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.

Source Files

logs.go

Version
v1.14.6
Published
Aug 16, 2019
Platform
js/wasm
Imports
17 packages
Last checked
3 minutes ago

Tools for package owners.