Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdOptions ¶ added in v0.94.3
type CmdOptions struct {
// contains filtered or unexported fields
}
type Config ¶
type Config struct { Name string Executable string ScriptArgs []string // ScriptEnv is the environment variables that are always passed to the script. ScriptEnv []string // ScriptEnv are environment variables that are only set on the first script run. FirstRunEnv []string AbsWorkingDir string Logger *zap.Logger }
type ScriptRunner ¶
type ScriptRunner struct {
// contains filtered or unexported fields
}
func NewScriptRunner ¶
func NewScriptRunner(config *Config) *ScriptRunner
func (*ScriptRunner) Error ¶ added in v0.112.0
func (b *ScriptRunner) Error() error
func (*ScriptRunner) ExitCode ¶ added in v0.100.0
func (b *ScriptRunner) ExitCode() int
func (*ScriptRunner) Run ¶
func (b *ScriptRunner) Run(ctx context.Context) chan struct{}
func (*ScriptRunner) Stop ¶
func (b *ScriptRunner) Stop() error
func (*ScriptRunner) Successful ¶ added in v0.100.0
func (b *ScriptRunner) Successful() bool
Successful returns true if the script exited with <= 0 and without an error. This method should only be called after the script is done.
Click to show internal directories.
Click to hide internal directories.