cmds

package
v2.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmds

func Cmds(mainCtx context.Context, pachCtx *config.Context, pachctlCfg *pachctl.Config) []*cobra.Command

Cmds returns a slice containing pps commands.

func ParseJobStates

func ParseJobStates(stateStrs []string) (string, error)

ParseJobStates parses a slice of state names into a jq filter suitable for ListJob

func ParsePipelineStates

func ParsePipelineStates(stateStrs []string) (string, error)

ParsePipelineStates parses a slice of state names into a jq filter suitable for ListPipeline

Types

type ByCreationTime

type ByCreationTime []*pps.JobInfo

ByCreationTime is an implementation of sort.Interface which sorts pps job info by creation time, ascending.

func (ByCreationTime) Len

func (arr ByCreationTime) Len() int

func (ByCreationTime) Less

func (arr ByCreationTime) Less(i, j int) bool

func (ByCreationTime) Swap

func (arr ByCreationTime) Swap(i, j int)

Jump to

Keyboard shortcuts

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