Documentation ¶
Index ¶
- func RunScriptsInDocker(ciContext cictx.CiContext, impl *StageExecutorImpl, ...) (map[string]string, error)
- type ScriptExecutor
- type ScriptExecutorImpl
- type StageExecutor
- type StageExecutorImpl
- func (impl *StageExecutorImpl) RunCdStageTasks(ciContext cictx.CiContext, tasks []*helper.Task, scriptEnvs map[string]string) error
- func (impl *StageExecutorImpl) RunCiCdStep(stepType helper.StepType, ciCdRequest helper.CommonWorkflowRequest, index int, ...) (artifacts *helper.PluginArtifacts, failedStep *helper.StepObject, err error)
- func (impl *StageExecutorImpl) RunCiCdSteps(stepType helper.StepType, ciCdRequest *helper.CommonWorkflowRequest, ...) (*helper.PluginArtifacts, map[int]map[string]*helper.VariableObject, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunScriptsInDocker ¶
Types ¶
type ScriptExecutor ¶
type ScriptExecutor interface { RunScriptsV1(ciContext cictx.CiContext, outputPath string, bashScript string, script string, envVars map[string]string) error RunScripts(ciContext cictx.CiContext, string, scriptFileName string, script string, envInputVars map[string]string, outputVars []string) (map[string]string, error) }
type ScriptExecutorImpl ¶
type ScriptExecutorImpl struct {
// contains filtered or unexported fields
}
func NewScriptExecutorImpl ¶
func NewScriptExecutorImpl(cmdExecutor helper.CommandExecutor) *ScriptExecutorImpl
func (*ScriptExecutorImpl) RunScripts ¶
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) (pluginArtifacts *helper.PluginArtifacts, outVars map[int]map[string]*helper.VariableObject, failedStep *helper.StepObject, err error) RunCdStageTasks(ciContext cictx.CiContext, tasks []*helper.Task, scriptEnvs map[string]string) error }
type StageExecutorImpl ¶
type StageExecutorImpl struct {
// contains filtered or unexported fields
}
func NewStageExecutorImpl ¶
func NewStageExecutorImpl(cmdExecutor helper.CommandExecutor, scriptExecutor ScriptExecutor) *StageExecutorImpl
func (*StageExecutorImpl) RunCdStageTasks ¶
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) (artifacts *helper.PluginArtifacts, 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) (*helper.PluginArtifacts, map[int]map[string]*helper.VariableObject, *helper.StepObject, error)
Click to show internal directories.
Click to hide internal directories.