pachyderm: github.com/pachyderm/pachyderm/src/server/pfs/pretty Index | Files

package pretty

import "github.com/pachyderm/pachyderm/src/server/pfs/pretty"

Index

Package Files

pretty.go

Constants

const (
    // RepoHeader is the header for repos.
    RepoHeader = "NAME\tCREATED\tSIZE (MASTER)\t\n"
    // RepoAuthHeader is the header for repos with auth information attached.
    RepoAuthHeader = "NAME\tCREATED\tSIZE (MASTER)\tACCESS LEVEL\t\n"
    // CommitHeader is the header for commits.
    CommitHeader = "REPO\tBRANCH\tCOMMIT\tPARENT\tSTARTED\tDURATION\tSIZE\t\n"
    // BranchHeader is the header for branches.
    BranchHeader = "BRANCH\tHEAD\t\n"
    // FileHeader is the header for files.
    FileHeader = "NAME\tTYPE\tSIZE\t\n"
    // FileHeaderWithCommit is the header for files that includes a commit field.
    FileHeaderWithCommit = "COMMIT\tNAME\tTYPE\tCOMMITTED\tSIZE\t\n"
    // DiffFileHeader is the header for files produced by diff file.
    DiffFileHeader = "OP\t" + FileHeader
)

func CompactPrintBranch Uses

func CompactPrintBranch(b *pfs.Branch) string

CompactPrintBranch renders 'b' as a compact string, e.g. "myrepo@master:/my/file"

func CompactPrintCommit Uses

func CompactPrintCommit(c *pfs.Commit) string

CompactPrintCommit renders 'c' as a compact string, e.g. "myrepo@123abc:/my/file"

func CompactPrintFile Uses

func CompactPrintFile(f *pfs.File) string

CompactPrintFile renders 'f' as a compact string, e.g. "myrepo@master:/my/file"

func PrintBranch Uses

func PrintBranch(w io.Writer, branchInfo *pfs.BranchInfo)

PrintBranch pretty-prints a Branch.

func PrintCommitInfo Uses

func PrintCommitInfo(w io.Writer, commitInfo *pfs.CommitInfo, fullTimestamps bool)

PrintCommitInfo pretty-prints commit info.

func PrintDetailedCommitInfo Uses

func PrintDetailedCommitInfo(commitInfo *PrintableCommitInfo) error

PrintDetailedCommitInfo pretty-prints detailed commit info.

func PrintDetailedFileInfo Uses

func PrintDetailedFileInfo(fileInfo *pfs.FileInfo) error

PrintDetailedFileInfo pretty-prints detailed file info.

func PrintDetailedRepoInfo Uses

func PrintDetailedRepoInfo(repoInfo *PrintableRepoInfo) error

PrintDetailedRepoInfo pretty-prints detailed repo info.

func PrintDiffFileInfo Uses

func PrintDiffFileInfo(w io.Writer, added bool, fileInfo *pfs.FileInfo, fullTimestamps bool)

PrintDiffFileInfo pretty-prints a file info from diff file.

func PrintFileInfo Uses

func PrintFileInfo(w io.Writer, fileInfo *pfs.FileInfo, fullTimestamps, withCommit bool)

PrintFileInfo 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 PrintRepoInfo Uses

func PrintRepoInfo(w io.Writer, repoInfo *pfs.RepoInfo, fullTimestamps bool)

PrintRepoInfo pretty-prints repo info.

type PrintableCommitInfo Uses

type PrintableCommitInfo struct {
    *pfs.CommitInfo
    FullTimestamps bool
}

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

func NewPrintableCommitInfo Uses

func NewPrintableCommitInfo(ci *pfs.CommitInfo) *PrintableCommitInfo

NewPrintableCommitInfo constructs a PrintableCommitInfo from just a CommitInfo.

type PrintableRepoInfo Uses

type PrintableRepoInfo struct {
    *pfs.RepoInfo
    FullTimestamps bool
}

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

func NewPrintableRepoInfo Uses

func NewPrintableRepoInfo(ri *pfs.RepoInfo) *PrintableRepoInfo

NewPrintableRepoInfo constructs a PrintableRepoInfo from just a RepoInfo.

Package pretty imports 8 packages (graph) and is imported by 5 packages. Updated 2019-07-12. Refresh now. Tools for package owners.