pretty

package
Version: v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PipelineHeader is the header for pipelines.
	PipelineHeader = "NAME\tINPUT\tOUTPUT\tCREATED\tSTATE\t\n"
	// JobHeader is the header for jobs
	JobHeader = "ID\tOUTPUT COMMIT\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 PrintDatumInfoHeader added in v1.5.2

func PrintDatumInfoHeader(w io.Writer)

PrintDatumInfoHeader prints a file info header.

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 *ppsclient.JobInfo) error

PrintDetailedJobInfo pretty-prints detailed job info.

func PrintDetailedPipelineInfo

func PrintDetailedPipelineInfo(pipelineInfo *ppsclient.PipelineInfo) 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 PrintJobHeader

func PrintJobHeader(w io.Writer)

PrintJobHeader prints a job header.

func PrintJobInfo

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

PrintJobInfo pretty-prints job info.

func PrintPipelineHeader

func PrintPipelineHeader(w io.Writer)

PrintPipelineHeader prints a pipeline header.

func PrintPipelineInfo

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

PrintPipelineInfo pretty-prints pipeline info.

func PrintWorkerStatus added in v1.4.4

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

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

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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