Documentation ¶
Index ¶
- type CancellableScript
- type ConcreteJobScriptProvider
- func (p ConcreteJobScriptProvider) NewDrainScript(jobName string, params boshdrain.ScriptParams) CancellableScript
- func (p ConcreteJobScriptProvider) NewParallelScript(scriptName string, scripts []Script) CancellableScript
- func (p ConcreteJobScriptProvider) NewScript(jobName string, scriptName string) Script
- type GenericScript
- type JobScriptProvider
- type ParallelScript
- type Script
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancellableScript ¶
type ConcreteJobScriptProvider ¶
type ConcreteJobScriptProvider struct {
// contains filtered or unexported fields
}
func NewConcreteJobScriptProvider ¶
func NewConcreteJobScriptProvider( cmdRunner boshsys.CmdRunner, fs boshsys.FileSystem, dirProvider boshdir.Provider, scriptCommandFactory boshsys.ScriptCommandFactory, timeService clock.Clock, logger boshlog.Logger, ) ConcreteJobScriptProvider
func (ConcreteJobScriptProvider) NewDrainScript ¶
func (p ConcreteJobScriptProvider) NewDrainScript(jobName string, params boshdrain.ScriptParams) CancellableScript
func (ConcreteJobScriptProvider) NewParallelScript ¶
func (p ConcreteJobScriptProvider) NewParallelScript(scriptName string, scripts []Script) CancellableScript
type GenericScript ¶
type GenericScript struct {
// contains filtered or unexported fields
}
func NewScript ¶
func NewScript( fs boshsys.FileSystem, runner boshsys.CmdRunner, scriptCommandFactory boshsys.ScriptCommandFactory, tag string, path string, stdoutLogPath string, stderrLogPath string, ) GenericScript
func (GenericScript) Exists ¶
func (s GenericScript) Exists() bool
func (GenericScript) Path ¶
func (s GenericScript) Path() string
func (GenericScript) Run ¶
func (s GenericScript) Run() error
func (GenericScript) Tag ¶
func (s GenericScript) Tag() string
type JobScriptProvider ¶
type JobScriptProvider interface { NewScript(jobName string, scriptName string) Script NewDrainScript(jobName string, params boshdrain.ScriptParams) CancellableScript NewParallelScript(scriptName string, scripts []Script) CancellableScript }
type ParallelScript ¶
type ParallelScript struct {
// contains filtered or unexported fields
}
func NewParallelScript ¶
func NewParallelScript(name string, scripts []Script, logger boshlog.Logger) ParallelScript
func (ParallelScript) Cancel ¶
func (s ParallelScript) Cancel() error
func (ParallelScript) Exists ¶
func (s ParallelScript) Exists() bool
func (ParallelScript) Path ¶
func (s ParallelScript) Path() string
func (ParallelScript) Run ¶
func (s ParallelScript) Run() error
func (ParallelScript) Tag ¶
func (s ParallelScript) Tag() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.