Documentation ¶
Overview ¶
Package batch implements batch execution.
Index ¶
Constants ¶
View Source
const ( // EnvironmentDeployment is used when an environment is deployed. EnvironmentDeployment = EnvironmentSetupType("deployment") // EnvironmentInitialization is used when an environment is initialized. // Initialization occurs after deployment. EnvironmentInitialization = EnvironmentSetupType("initialization") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandInfo ¶
CommandInfo describes a batch command for reporting purposes.
type CommandResult ¶
CommandResult gives the result of a command, for reporting purposes.
type EnvironmentInfo ¶
EnvironmentInfo gives info on an environment a batch command executed with.
type EnvironmentSetupResult ¶
type EnvironmentSetupResult struct { EnvironmentInfo SetupType EnvironmentSetupType Err *string Started time.Time Completed time.Time }
EnvironmentSetupResult contains the result of setting up an environment.
type EnvironmentSetupType ¶
type EnvironmentSetupType string
EnvironmentSetupType is the type of environment setup for EnvironmentSetupResult.
type NoopReporter ¶
type NoopReporter struct{}
NoopReporter is a no-op reporter.
func (*NoopReporter) CommandOutput ¶
func (reporter *NoopReporter) CommandOutput(info *CommandInfo) (io.WriteCloser, error)
CommandOutput implements Reporter.
func (*NoopReporter) CommandResult ¶
func (reporter *NoopReporter) CommandResult(result *CommandResult)
CommandResult implements Reporter.
func (*NoopReporter) EnvironmentSetupResult ¶
func (reporter *NoopReporter) EnvironmentSetupResult(result *EnvironmentSetupResult)
EnvironmentSetupResult implements Reporter.
func (*NoopReporter) Finalize ¶
func (reporter *NoopReporter) Finalize() error
Finalize implements Reporter.
type Reporter ¶
type Reporter interface { EnvironmentSetupResult(result *EnvironmentSetupResult) CommandOutput(info *CommandInfo) (io.WriteCloser, error) CommandResult(result *CommandResult) Finalize() error }
Reporter is used by RunBatch to report on batch execution.
Click to show internal directories.
Click to hide internal directories.