logs

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPodNotFound      = errors.New(`no logs return,because not found instance`)
	ErrTooManyPodsFound = errors.New(`too many pods found in the job,`)
)

Functions

This section is empty.

Types

type Pipe

type Pipe struct {
	Reader io.ReadCloser
	Writer io.WriteCloser
}

type PodLogPrinter

type PodLogPrinter struct {
	PodNames []string
	PodLog   *podlogs.PodLog
	Pipe
}

func NewPodLogPrinter

func NewPodLogPrinter(podNames []string, logArgs *podlogs.OuterRequestArgs) (*PodLogPrinter, error)

func (*PodLogPrinter) AcceptLogs added in v0.7.0

func (slp *PodLogPrinter) AcceptLogs(writeCloser io.WriteCloser) (int, error)

func (*PodLogPrinter) CheckPodIsInJob

func (slp *PodLogPrinter) CheckPodIsInJob() error

func (*PodLogPrinter) Print

func (slp *PodLogPrinter) Print() (int, error)

func (*PodLogPrinter) PrintMultiPodsHelp

func (slp *PodLogPrinter) PrintMultiPodsHelp()

Jump to

Keyboard shortcuts

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