pretty

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PipelineHeader is the header for pipelines.
	PipelineHeader = "NAME\tVERSION\tINPUT\tCREATED\tSTATE / LAST JOB\t\n"
	// JobHeader is the header for jobs
	JobHeader = "ID\tPIPELINE\tSTARTED\tDURATION\tRESTART\tPROGRESS\tDL\tUL\tSTATE\t\n"
	// DatumHeader is the header for datums
	DatumHeader = "ID\tSTATUS\tTIME\t\n"
)

Variables

This section is empty.

Functions

func PrintDatumInfo added in v1.5.2

func PrintDatumInfo(w io.Writer, datumInfo *ppsclient.DatumInfo)

PrintDatumInfo pretty-prints file info. If recurse is false and directory size is 0, display "-" instead If fast is true and file size is 0, display "-" instead

func PrintDetailedDatumInfo added in v1.5.2

func PrintDetailedDatumInfo(w io.Writer, datumInfo *ppsclient.DatumInfo)

PrintDetailedDatumInfo pretty-prints detailed info about a datum

func PrintDetailedJobInfo

func PrintDetailedJobInfo(jobInfo *PrintableJobInfo) error

PrintDetailedJobInfo pretty-prints detailed job info.

func PrintDetailedPipelineInfo

func PrintDetailedPipelineInfo(pipelineInfo *PrintablePipelineInfo) error

PrintDetailedPipelineInfo pretty-prints detailed pipeline info.

func PrintFile added in v1.7.0

func PrintFile(w io.Writer, file *pfsclient.File)

PrintFile values for a pfs file.

func PrintFileHeader added in v1.7.0

func PrintFileHeader(w io.Writer)

PrintFileHeader prints the header for a pfs file.

func PrintJobInfo

func PrintJobInfo(w io.Writer, jobInfo *ppsclient.JobInfo, fullTimestamps bool)

PrintJobInfo pretty-prints job info.

func PrintPipelineInfo

func PrintPipelineInfo(w io.Writer, pipelineInfo *ppsclient.PipelineInfo, fullTimestamps bool)

PrintPipelineInfo pretty-prints pipeline info.

func PrintWorkerStatus added in v1.4.4

func PrintWorkerStatus(w io.Writer, workerStatus *ppsclient.WorkerStatus, fullTimestamps bool)

PrintWorkerStatus pretty prints a worker status.

func PrintWorkerStatusHeader added in v1.4.4

func PrintWorkerStatusHeader(w io.Writer)

PrintWorkerStatusHeader pretty prints a worker status header.

func ShorthandInput added in v1.7.0

func ShorthandInput(input *ppsclient.Input) string

ShorthandInput renders a pps.Input as a short, readable string

Types

type PrintableJobInfo added in v1.8.7

type PrintableJobInfo struct {
	*ppsclient.JobInfo
	FullTimestamps bool
}

PrintableJobInfo is a wrapper around JobInfo containing any formatting options used within the template to conditionally print information.

func NewPrintableJobInfo added in v1.8.7

func NewPrintableJobInfo(ji *ppsclient.JobInfo) *PrintableJobInfo

NewPrintableJobInfo constructs a PrintableJobInfo from just a JobInfo.

type PrintablePipelineInfo added in v1.8.7

type PrintablePipelineInfo struct {
	*ppsclient.PipelineInfo
	FullTimestamps bool
}

PrintablePipelineInfo is a wrapper around PipelinInfo containing any formatting options used within the template to conditionally print information.

func NewPrintablePipelineInfo added in v1.8.7

func NewPrintablePipelineInfo(pi *ppsclient.PipelineInfo) *PrintablePipelineInfo

NewPrintablePipelineInfo constructs a PrintablePipelineInfo from just a PipelineInfo.

Jump to

Keyboard shortcuts

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