executor

package
v0.0.0-...-89916a2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunScriptsInDocker

func RunScriptsInDocker(ciContext cictx.CiContext, impl *StageExecutorImpl, executionConf *executionConf) (map[string]string, error)

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

func (impl *ScriptExecutorImpl) RunScripts(ciContext cictx.CiContext, workDirectory string, scriptFileName string, script string, envInputVars map[string]string, outputVars []string) (map[string]string, error)

func (*ScriptExecutorImpl) RunScriptsV1

func (impl *ScriptExecutorImpl) RunScriptsV1(ciContext cictx.CiContext, outputPath string, bashScript string, script string, envVars map[string]string) error

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 (impl *StageExecutorImpl) RunCdStageTasks(ciContext cictx.CiContext, tasks []*helper.Task, scriptEnvs map[string]string) error

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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