pachyderm: Index | Files

package pretty

import ""


Package Files



const (
    // PipelineHeader is the header for pipelines.
    // JobHeader is the header for jobs
    // DatumHeader is the header for datums
    DatumHeader = "ID\tSTATUS\tTIME\t\n"
    // SecretHeader is the header for secrets
    SecretHeader = "NAME\tTYPE\tCREATED\t\n"

func JobState Uses

func JobState(jobState ppsclient.JobState) string

JobState returns the state of a job as a pretty printed string.

func PrintDatumInfo Uses

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 Uses

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

PrintDetailedDatumInfo pretty-prints detailed info about a datum

func PrintDetailedJobInfo Uses

func PrintDetailedJobInfo(jobInfo *PrintableJobInfo) error

PrintDetailedJobInfo pretty-prints detailed job info.

func PrintDetailedPipelineInfo Uses

func PrintDetailedPipelineInfo(w io.Writer, pipelineInfo *PrintablePipelineInfo) error

PrintDetailedPipelineInfo pretty-prints detailed pipeline info.

func PrintFile Uses

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

PrintFile values for a pfs file.

func PrintFileHeader Uses

func PrintFileHeader(w io.Writer)

PrintFileHeader prints the header for a pfs file.

func PrintJobInfo Uses

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

PrintJobInfo pretty-prints job info.

func PrintPipelineInfo Uses

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

PrintPipelineInfo pretty-prints pipeline info.

func PrintSecretInfo Uses

func PrintSecretInfo(w io.Writer, secretInfo *ppsclient.SecretInfo)

PrintSecretInfo pretty-prints secret info.

func PrintWorkerStatus Uses

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

PrintWorkerStatus pretty prints a worker status.

func PrintWorkerStatusHeader Uses

func PrintWorkerStatusHeader(w io.Writer)

PrintWorkerStatusHeader pretty prints a worker status header.

func Progress Uses

func Progress(ji *ppsclient.JobInfo) string

Progress pretty prints the datum progress of a job.

func ShorthandInput Uses

func ShorthandInput(input *ppsclient.Input) string

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

type PrintableJobInfo Uses

type PrintableJobInfo struct {
    FullTimestamps bool

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

func NewPrintableJobInfo Uses

func NewPrintableJobInfo(ji *ppsclient.JobInfo) *PrintableJobInfo

NewPrintableJobInfo constructs a PrintableJobInfo from just a JobInfo.

type PrintablePipelineInfo Uses

type PrintablePipelineInfo struct {
    FullTimestamps bool

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

func NewPrintablePipelineInfo Uses

func NewPrintablePipelineInfo(pi *ppsclient.PipelineInfo) *PrintablePipelineInfo

NewPrintablePipelineInfo constructs a PrintablePipelineInfo from just a PipelineInfo.

Package pretty imports 16 packages (graph) and is imported by 7 packages. Updated 2020-08-09. Refresh now. Tools for package owners.