Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteWorkflow(cmd *cobra.Command, args []string, delExecutionFlags *delExecutionFlags)
- func DescribeExecution(exec *execv1alpha1.Execution)
- func DescribeWorkflow(cmd *cobra.Command, args []string, describeFlags *describeFlags)
- func ExitWithError(err error)
- func FindExecutionTask(exec *execv1alpha1.Execution, name string) *execv1alpha1.Task
- func NewCommand() *cobra.Command
- func NewDeleteCommand() *cobra.Command
- func NewDescribeExecutionCommand() *cobra.Command
- func NewGetExecutionCommand() *cobra.Command
- func NewSubCommand() *cobra.Command
- func NewSubJobCommand() *cobra.Command
- func NewSubRepJobCommand() *cobra.Command
- func NewSubWorkflowCommand() *cobra.Command
- func NewVersionCommand() *cobra.Command
- func ParseTemplate(content string, dstFile string, userInputs *UserInputs) error
- func PrintErrList(errList parser.ErrorList)
- func PrintExecutionList(execList []execv1alpha1.Execution, output string)
- func PrintExecutionListWide(execList []execv1alpha1.Execution)
- func ProcessWorkflow(cmd *cobra.Command, workflowPath string, inputs map[string]interface{})
- func SubJob(cmd *cobra.Command, args []string, userInputs *UserInputs)
- func SubRepJob(cmd *cobra.Command, args []string, userInputs *UserInputs)
- func SubWorkflow(cmd *cobra.Command, args []string, workflowFlags *workflowFlags)
- type ExecutionWriter
- type PhaseOrder
- type UserInputs
Constants ¶
View Source
const ( Kubegene = "kubegene" // CLIName is the name of the CLI CLIName = "genectl" )
View Source
const GROUPJOBSCRPTCOMMAND string = `^\s*(bash|sh)\s*.*$`
Variables ¶
View Source
var Home = os.Getenv("HOME")
User home
View Source
var ToolDir = filepath.Join(Home, Kubegene, "tools")
default tool repository directory
View Source
var WorkflowFilePath = filepath.Join(Home, Kubegene, "workflows")
default workflow yaml directory
Functions ¶
func DeleteWorkflow ¶
func DescribeExecution ¶
func DescribeExecution(exec *execv1alpha1.Execution)
func DescribeWorkflow ¶
func ExitWithError ¶
func ExitWithError(err error)
func FindExecutionTask ¶
func FindExecutionTask(exec *execv1alpha1.Execution, name string) *execv1alpha1.Task
func NewCommand ¶
NewCommand returns a new instance of an gcs command
func NewDeleteCommand ¶
func NewGetExecutionCommand ¶
func NewSubCommand ¶
func NewSubJobCommand ¶
func NewSubRepJobCommand ¶
func NewSubWorkflowCommand ¶
func NewVersionCommand ¶
func ParseTemplate ¶
func ParseTemplate(content string, dstFile string, userInputs *UserInputs) error
func PrintErrList ¶
func PrintExecutionList ¶
func PrintExecutionList(execList []execv1alpha1.Execution, output string)
func PrintExecutionListWide ¶
func PrintExecutionListWide(execList []execv1alpha1.Execution)
func ProcessWorkflow ¶
func SubWorkflow ¶
Types ¶
type ExecutionWriter ¶
type ExecutionWriter struct {
// contains filtered or unexported fields
}
func NewExecutionWriter ¶
func NewExecutionWriter(out io.Writer) ExecutionWriter
func (*ExecutionWriter) Write ¶
func (pw *ExecutionWriter) Write(level int, format string, a ...interface{})
func (*ExecutionWriter) WriteLine ¶
func (pw *ExecutionWriter) WriteLine(a ...interface{})
type PhaseOrder ¶
type PhaseOrder []execv1alpha1.Execution
func (PhaseOrder) Len ¶
func (s PhaseOrder) Len() int
func (PhaseOrder) Less ¶
func (s PhaseOrder) Less(i, j int) bool
func (PhaseOrder) Swap ¶
func (s PhaseOrder) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.