Documentation ¶
Index ¶
- Constants
- func PrintDatumInfo(w io.Writer, datumInfo *ppsclient.DatumInfo)
- func PrintDetailedDatumInfo(w io.Writer, datumInfo *ppsclient.DatumInfo)
- func PrintDetailedJobInfo(jobInfo *PrintableJobInfo) error
- func PrintDetailedPipelineInfo(pipelineInfo *PrintablePipelineInfo) error
- func PrintFile(w io.Writer, file *pfsclient.File)
- func PrintFileHeader(w io.Writer)
- func PrintJobInfo(w io.Writer, jobInfo *ppsclient.JobInfo, fullTimestamps bool)
- func PrintPipelineInfo(w io.Writer, pipelineInfo *ppsclient.PipelineInfo, fullTimestamps bool)
- func PrintWorkerStatus(w io.Writer, workerStatus *ppsclient.WorkerStatus, fullTimestamps bool)
- func PrintWorkerStatusHeader(w io.Writer)
- func ShorthandInput(input *ppsclient.Input) string
- type PrintableJobInfo
- type PrintablePipelineInfo
Constants ¶
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
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
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 PrintFileHeader ¶ added in v1.7.0
PrintFileHeader prints the header for a pfs file.
func PrintJobInfo ¶
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
PrintWorkerStatusHeader pretty prints a worker status header.
func ShorthandInput ¶ added in v1.7.0
ShorthandInput renders a pps.Input as a short, readable string
Types ¶
type PrintableJobInfo ¶ added in v1.8.7
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.