Documentation ¶
Index ¶
- func RunCdStageTasks(tasks []*helper.Task, scriptEnvs map[string]string) error
- func RunScripts(workDirectory string, scriptFileName string, script string, ...) (map[string]string, error)
- func RunScriptsInDocker(executionConf *executionConf) (map[string]string, error)
- func RunScriptsV1(outputPath string, bashScript string, script string, envVars map[string]string) error
- type StageExecutor
- type StageExecutorImpl
- func (impl *StageExecutorImpl) RunCiCdStep(stepType helper.StepType, ciCdRequest helper.CommonWorkflowRequest, index int, ...) (failedStep *helper.StepObject, err error)
- func (impl *StageExecutorImpl) RunCiCdSteps(stepType helper.StepType, ciCdRequest *helper.CommonWorkflowRequest, ...) (outVars map[int]map[string]*helper.VariableObject, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCdStageTasks ¶
func RunScripts ¶
func RunScriptsInDocker ¶
Types ¶
type StageExecutor ¶
type StageExecutor interface {
RunCiCdSteps(stepType helper.StepType, ciCdRequest *helper.CommonWorkflowRequest, steps []*helper.StepObject, refStageMap map[int][]*helper.StepObject, globalEnvironmentVariables map[string]string, preCiStageVariable map[int]map[string]*helper.VariableObject) (outVars map[int]map[string]*helper.VariableObject, failedStep *helper.StepObject, err error)
}
type StageExecutorImpl ¶
type StageExecutorImpl struct { }
func NewStageExecutorImpl ¶
func NewStageExecutorImpl() *StageExecutorImpl
func (*StageExecutorImpl) RunCiCdStep ¶
func (impl *StageExecutorImpl) RunCiCdStep(stepType helper.StepType, ciCdRequest helper.CommonWorkflowRequest, index int, step *helper.StepObject, refStageMap map[int][]*helper.StepObject, globalEnvironmentVariables map[string]string, preCiStageVariable map[int]map[string]*helper.VariableObject, stageVariable map[int]map[string]*helper.VariableObject) (failedStep *helper.StepObject, err error)
func (*StageExecutorImpl) RunCiCdSteps ¶
func (impl *StageExecutorImpl) RunCiCdSteps(stepType helper.StepType, ciCdRequest *helper.CommonWorkflowRequest, steps []*helper.StepObject, refStageMap map[int][]*helper.StepObject, globalEnvironmentVariables map[string]string, preCiStageVariable map[int]map[string]*helper.VariableObject) (outVars map[int]map[string]*helper.VariableObject, failedStep *helper.StepObject, err error)
Click to show internal directories.
Click to hide internal directories.