Documentation
¶
Overview ¶
package executor
It uses the mvdan.sh shell implementation in Go. injects a custom environment per execution
not all *nix* commands are available, should only be used for a limited number of scenarios
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsExitStatus ¶
IsExitStatus checks if given `err` is an exit status
Types ¶
type DefaultExecutor ¶
type DefaultExecutor struct {
// contains filtered or unexported fields
}
DefaultExecutor is a default executor used for jobs Uses `mvdan.cc/sh/v3/interp` under the hood
func NewDefaultExecutor ¶
NewDefaultExecutor creates new default executor
func (*DefaultExecutor) Execute ¶
Execute executes given job with provided context Returns job output
func (*DefaultExecutor) WithReset ¶ added in v1.6.3
func (e *DefaultExecutor) WithReset(doReset bool) *DefaultExecutor
type Job ¶
type Job struct { Command string Dir string Env variables.Container Vars variables.Container Timeout *time.Duration Stdout, Stderr io.Writer Stdin io.Reader Next *Job }
Job is a linked list of jobs to execute by Executor
func NewJobFromCommand ¶
NewJobFromCommand creates new Job instance from given command
Click to show internal directories.
Click to hide internal directories.