kubernetes: k8s.io/kubernetes/pkg/kubelet/kuberuntime/logs Index | Files

package logs

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


Package Files


func ReadLogs Uses

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 "".

type LogOptions Uses

type LogOptions struct {
    // contains filtered or unexported fields

LogOptions is the CRI internal type of all log options.

func NewLogOptions Uses

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

NewLogOptions convert the v1.PodLogOptions to CRI internal LogOptions.

Package logs imports 18 packages (graph) and is imported by 10 packages. Updated 2019-09-04. Refresh now. Tools for package owners.