executor

package
v0.0.0-...-f5614d7 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCdStageTasks

func RunCdStageTasks(tasks []*helper.Task, scriptEnvs map[string]string) error

func RunScripts

func RunScripts(workDirectory string, scriptFileName string, script string, envInputVars map[string]string, outputVars []string) (map[string]string, error)

func RunScriptsInDocker

func RunScriptsInDocker(executionConf *executionConf) (map[string]string, error)

func RunScriptsV1

func RunScriptsV1(outputPath string, bashScript string, script string, envVars map[string]string) error

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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