Documentation
¶
Index ¶
- Variables
- func CheckCommandPath(name string, commandPath string, depth int) error
- func CommandStepHandler(corkDir string, executor *StepsExecutor, stream streamer.StepStream, ...) (map[string]string, error)
- func ContainerStepHandler(corkDir string, executor *StepsExecutor, stream streamer.StepStream, ...) (map[string]string, error)
- func ExportStepHandler(corkDir string, executor *StepsExecutor, stream streamer.StepStream, ...) (map[string]string, error)
- func IsCommandDoesNotExist(err error) bool
- func IsStepDoesNotExist(err error) bool
- func RegisterHandler(handlerName string, handler StepHandler)
- type Command
- type CommandDoesNotExist
- type CommandInvalid
- type Step
- type StepDoesNotExist
- type StepHandler
- type StepInvalid
- type StepsExecutor
Constants ¶
This section is empty.
Variables ¶
View Source
var StepHandlers map[string]StepHandler
Functions ¶
func CommandStepHandler ¶
func CommandStepHandler(corkDir string, executor *StepsExecutor, stream streamer.StepStream, step *definition.Step) (map[string]string, error)
CommandStepHandler - Handles executing a command step
func ContainerStepHandler ¶
func ContainerStepHandler(corkDir string, executor *StepsExecutor, stream streamer.StepStream, step *definition.Step) (map[string]string, error)
ContainerStepHandler - Handles executing a command step
func ExportStepHandler ¶
func ExportStepHandler(corkDir string, executor *StepsExecutor, stream streamer.StepStream, step *definition.Step) (map[string]string, error)
ExportStepHandler - Handles exporting variables from a stage execution
func IsCommandDoesNotExist ¶
func IsStepDoesNotExist ¶
func RegisterHandler ¶
func RegisterHandler(handlerName string, handler StepHandler)
Types ¶
type Command ¶
func (*Command) ExecCommand ¶
type CommandDoesNotExist ¶
func (CommandDoesNotExist) Error ¶
func (sdne CommandDoesNotExist) Error() string
type CommandInvalid ¶
func (CommandInvalid) Error ¶
func (si CommandInvalid) Error() string
type StepDoesNotExist ¶
func (StepDoesNotExist) Error ¶
func (sdne StepDoesNotExist) Error() string
type StepHandler ¶
type StepHandler func(corkDir string, executor *StepsExecutor, stream streamer.StepStream, step *definition.Step) (map[string]string, error)
StepHandler - Handles steps
type StepInvalid ¶
func (StepInvalid) Error ¶
func (si StepInvalid) Error() string
type StepsExecutor ¶
type StepsExecutor struct { Renderer *definition.CorkTemplateRenderer CorkDir string Stream streamer.StepStream }
func NewExecutor ¶
func NewExecutor(corkDir string, renderer *definition.CorkTemplateRenderer, stream streamer.StepStream) *StepsExecutor
func (*StepsExecutor) AddOutput ¶
func (se *StepsExecutor) AddOutput(stepName string, varName string, value string)
func (*StepsExecutor) ExecuteStep ¶
func (se *StepsExecutor) ExecuteStep(step *definition.Step) error
Click to show internal directories.
Click to hide internal directories.