logs

package
v0.0.0-...-40f476f Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

Reader wraps kubernetes.Interface to access Pod logs.

func NewReader

func NewReader(clientset kubernetes.Interface) *Reader

NewReader constructs a new Reader with the specified kubernetes.Interface.

func (*Reader) GetLogsForPod

func (r *Reader) GetLogsForPod(ctx context.Context, key client.ObjectKey, options *corev1.PodLogOptions) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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