Documentation ¶
Index ¶
- Constants
- Variables
- func LogWorkflow(ctx context.Context, serviceClient workflowpkg.WorkflowServiceClient, ...)
- func PrintWorkflowHelper(wf *wfv1.Workflow, getArgs GetFlags) string
- func WaitWatchOrLog(ctx context.Context, serviceClient workflowpkg.WorkflowServiceClient, ...)
- func WaitWorkflows(ctx context.Context, serviceClient workflowpkg.WorkflowServiceClient, ...)
- func WatchWorkflow(ctx context.Context, serviceClient workflowpkg.WorkflowServiceClient, ...)
- type CliSubmitOpts
- type GetFlags
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
Variables ¶
View Source
var ( JobStatusIconMap map[wfv1.NodePhase]string NodeTypeIconMap map[wfv1.NodeType]string WorkflowConditionIconMap map[wfv1.ConditionType]string NoColor bool NoUtf8 bool )
Global variables
Functions ¶
func LogWorkflow ¶
func LogWorkflow(ctx context.Context, serviceClient workflowpkg.WorkflowServiceClient, namespace, workflow, podName, grep, selector string, logOptions *corev1.PodLogOptions)
func WaitWatchOrLog ¶
func WaitWatchOrLog(ctx context.Context, serviceClient workflowpkg.WorkflowServiceClient, namespace string, workflowNames []string, cliSubmitOpts CliSubmitOpts)
func WaitWorkflows ¶
func WaitWorkflows(ctx context.Context, serviceClient workflowpkg.WorkflowServiceClient, namespace string, workflowNames []string, ignoreNotFound, quiet bool)
waitWorkflows waits for the given workflowNames.
func WatchWorkflow ¶
func WatchWorkflow(ctx context.Context, serviceClient workflowpkg.WorkflowServiceClient, namespace string, workflow string, getArgs GetFlags)
Types ¶
type CliSubmitOpts ¶
type CliSubmitOpts struct { Output string // --output Wait bool // --wait Watch bool // --watch Log bool // --log Strict bool // --strict Priority *int32 // --priority GetArgs GetFlags ScheduledTime string // --scheduled-time Parameters []string // --parameter }
cliSubmitOpts holds submission options specific to CLI submission (e.g. controlling output)
Click to show internal directories.
Click to hide internal directories.