Documentation ¶
Index ¶
- Constants
- 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 ¶
View Source
const ScriptExt = ""
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancellableScript ¶
type ConcreteJobScriptProvider ¶
type ConcreteJobScriptProvider struct {
// contains filtered or unexported fields
}
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, 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 ¶
Directories ¶
Path | Synopsis |
---|---|
fakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Package pathenv returns the OS specific PATH environment variable to use when shelling out to user scripts (e.g pre-start, drain).
|
Package pathenv returns the OS specific PATH environment variable to use when shelling out to user scripts (e.g pre-start, drain). |
Click to show internal directories.
Click to hide internal directories.