Documentation ¶
Index ¶
- Constants
- func InitWorkflowClient(ns ...string) v1alpha1.WorkflowInterface
- func NewCommand() *cobra.Command
- func NewCompletionCommand() *cobra.Command
- func NewDeleteCommand() *cobra.Command
- func NewGetCommand() *cobra.Command
- func NewLintCommand() *cobra.Command
- func NewListCommand() *cobra.Command
- func NewLogsCommand() *cobra.Command
- func NewResubmitCommand() *cobra.Command
- func NewResumeCommand() *cobra.Command
- func NewRetryCommand() *cobra.Command
- func NewSubmitCommand() *cobra.Command
- func NewSuspendCommand() *cobra.Command
- func NewTerminateCommand() *cobra.Command
- func NewWaitCommand() *cobra.Command
- func NewWatchCommand() *cobra.Command
- func SubmitWorkflows(filePaths []string, submitOpts *util.SubmitOpts, cliOpts *cliSubmitOpts)
- func WaitWorkflows(workflowNames []string, ignoreNotFound, quiet bool)
- type ByFinishedAt
- type LazyWorkflowTemplateGetter
Constants ¶
View Source
const ( Bold = 1 FgBlack = 30 FgRed = 31 FgGreen = 32 FgYellow = 33 FgBlue = 34 FgMagenta = 35 FgCyan = 36 FgWhite = 37 FgDefault = 39 )
ANSI escape codes
View Source
const (
// CLIName is the name of the CLI
CLIName = "argo"
)
View Source
const DefaultStatus = ""
Default status for printWorkflow
Variables ¶
This section is empty.
Functions ¶
func InitWorkflowClient ¶
func InitWorkflowClient(ns ...string) v1alpha1.WorkflowInterface
InitWorkflowClient creates a new client for the Kubernetes Workflow CRD.
func NewCommand ¶
NewCommand returns a new instance of an argo command
func NewCompletionCommand ¶
func NewDeleteCommand ¶
NewDeleteCommand returns a new instance of an `argo delete` command
func NewGetCommand ¶
func NewLintCommand ¶
func NewListCommand ¶
func NewLogsCommand ¶
func NewResubmitCommand ¶
func NewResumeCommand ¶
func NewRetryCommand ¶
func NewSubmitCommand ¶
func NewSuspendCommand ¶
func NewTerminateCommand ¶
func NewWaitCommand ¶
func NewWatchCommand ¶
func SubmitWorkflows ¶
func SubmitWorkflows(filePaths []string, submitOpts *util.SubmitOpts, cliOpts *cliSubmitOpts)
func WaitWorkflows ¶
WaitWorkflows waits for the given workflowNames.
Types ¶
type ByFinishedAt ¶
ByFinishedAt is a sort interface which sorts running jobs earlier before considering FinishedAt
func (ByFinishedAt) Len ¶
func (f ByFinishedAt) Len() int
func (ByFinishedAt) Less ¶
func (f ByFinishedAt) Less(i, j int) bool
func (ByFinishedAt) Swap ¶
func (f ByFinishedAt) Swap(i, j int)
type LazyWorkflowTemplateGetter ¶
type LazyWorkflowTemplateGetter struct{}
LazyWorkflowTemplateGetter is a wrapper of v1alpha1.WorkflowTemplateInterface which supports lazy initialization.
func (LazyWorkflowTemplateGetter) Get ¶
func (c LazyWorkflowTemplateGetter) Get(name string) (*wfv1.WorkflowTemplate, error)
Get initializes it just before it's actually used and returns a retrieved workflow template.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.