commands

package
v0.0.0-...-9e48b22 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

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 DeleteWorkflow(cmd *cobra.Command, args []string, delExecutionFlags *delExecutionFlags)

func DescribeExecution

func DescribeExecution(exec *execv1alpha1.Execution)

func DescribeWorkflow

func DescribeWorkflow(cmd *cobra.Command, args []string, describeFlags *describeFlags)

func ExitWithError

func ExitWithError(err error)

func FindExecutionTask

func FindExecutionTask(exec *execv1alpha1.Execution, name string) *execv1alpha1.Task

func NewCommand

func NewCommand() *cobra.Command

NewCommand returns a new instance of an gcs command

func NewDeleteCommand

func NewDeleteCommand() *cobra.Command

func NewDescribeExecutionCommand

func NewDescribeExecutionCommand() *cobra.Command

func NewGetExecutionCommand

func NewGetExecutionCommand() *cobra.Command

func NewSubCommand

func NewSubCommand() *cobra.Command

func NewSubJobCommand

func NewSubJobCommand() *cobra.Command

func NewSubRepJobCommand

func NewSubRepJobCommand() *cobra.Command

func NewSubWorkflowCommand

func NewSubWorkflowCommand() *cobra.Command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

func ParseTemplate

func ParseTemplate(content string, dstFile string, userInputs *UserInputs) error

func PrintErrList

func PrintErrList(errList parser.ErrorList)

func PrintExecutionList

func PrintExecutionList(execList []execv1alpha1.Execution, output string)

func PrintExecutionListWide

func PrintExecutionListWide(execList []execv1alpha1.Execution)

func ProcessWorkflow

func ProcessWorkflow(cmd *cobra.Command, workflowPath string, inputs map[string]interface{})

func SubJob

func SubJob(cmd *cobra.Command, args []string, userInputs *UserInputs)

func SubRepJob

func SubRepJob(cmd *cobra.Command, args []string, userInputs *UserInputs)

func SubWorkflow

func SubWorkflow(cmd *cobra.Command, args []string, workflowFlags *workflowFlags)

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)

type UserInputs

type UserInputs struct {
	Memory string
	Cpu    string
	Tool   string
	Shell  string
	// the absolute path of the shell script within the container.
	JobScript string
	PvcName   string
	MountPath string
	JobId     string
	Commands  []string
}

UserInputs parameters

Jump to

Keyboard shortcuts

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