Documentation
¶
Index ¶
- func NewStopFailureEventBinding(handler func(event StopFailureEvent) error) interfaces.Binding
- func NewStopFinishedEventBinding(handler func(event StopFinishedEvent) error) interfaces.Binding
- func NewStopStartedEventBinding(handler func(event StopStartedEvent) error) interfaces.Binding
- func NewStopSuccessEventBinding(handler func(event StopSuccessEvent) error) interfaces.Binding
- type StopController
- type StopFailureEvent
- type StopFinishedEvent
- type StopManager
- func (a StopManager) CleanUp()
- func (a StopManager) Create(environment S.Environment, response io.ReadWriter, foundationURL string) (I.Action, error)
- func (a StopManager) ExecuteError(executeErrors []error) error
- func (a StopManager) InitiallyError(initiallyErrors []error) error
- func (a StopManager) Logger() logger.DeploymentLogger
- func (a StopManager) OnFinish(env S.Environment, response io.ReadWriter, err error) I.DeployResponse
- func (a StopManager) OnStart() error
- func (a StopManager) SetUp() error
- func (a StopManager) SuccessError(successErrors []error) error
- func (a StopManager) UndoError(executeErrors, undoErrors []error) error
- type StopStartedEvent
- type StopSuccessEvent
- type Stopper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStopFailureEventBinding ¶
func NewStopFailureEventBinding(handler func(event StopFailureEvent) error) interfaces.Binding
func NewStopFinishedEventBinding ¶
func NewStopFinishedEventBinding(handler func(event StopFinishedEvent) error) interfaces.Binding
func NewStopStartedEventBinding ¶
func NewStopStartedEventBinding(handler func(event StopStartedEvent) error) interfaces.Binding
func NewStopSuccessEventBinding ¶
func NewStopSuccessEventBinding(handler func(event StopSuccessEvent) error) interfaces.Binding
Types ¶
type StopController ¶
type StopController struct {
Deployer I.Deployer
Log I.Logger
StopManagerFactory I.StopManagerFactory
Config config.Config
EventManager I.EventManager
ErrorFinder I.ErrorFinder
}
func (*StopController) StopDeployment ¶
func (c *StopController) StopDeployment(deployment *I.Deployment, data map[string]interface{}, response *bytes.Buffer) (deployResponse I.DeployResponse)
type StopFailureEvent ¶
type StopFailureEvent struct {
CFContext interfaces.CFContext
Data map[string]interface{}
Authorization interfaces.Authorization
Environment structs.Environment
Error error
Response io.ReadWriter
}
func (StopFailureEvent) Name ¶
func (e StopFailureEvent) Name() string
type StopFinishedEvent ¶
type StopFinishedEvent struct {
CFContext interfaces.CFContext
Data map[string]interface{}
Authorization interfaces.Authorization
Environment structs.Environment
Response io.ReadWriter
}
func (StopFinishedEvent) Name ¶
func (e StopFinishedEvent) Name() string
type StopManager ¶
type StopManager struct {
CourierCreator courierCreator
EventManager I.EventManager
Log logger.DeploymentLogger
DeployEventData S.DeployEventData
}
func (StopManager) CleanUp ¶
func (a StopManager) CleanUp()
func (StopManager) Create ¶
func (a StopManager) Create(environment S.Environment, response io.ReadWriter, foundationURL string) (I.Action, error)
func (StopManager) ExecuteError ¶
func (a StopManager) ExecuteError(executeErrors []error) error
func (StopManager) InitiallyError ¶
func (a StopManager) InitiallyError(initiallyErrors []error) error
func (StopManager) Logger ¶
func (a StopManager) Logger() logger.DeploymentLogger
func (StopManager) OnFinish ¶
func (a StopManager) OnFinish(env S.Environment, response io.ReadWriter, err error) I.DeployResponse
func (StopManager) OnStart ¶
func (a StopManager) OnStart() error
func (StopManager) SetUp ¶
func (a StopManager) SetUp() error
func (StopManager) SuccessError ¶
func (a StopManager) SuccessError(successErrors []error) error
func (StopManager) UndoError ¶
func (a StopManager) UndoError(executeErrors, undoErrors []error) error
type StopStartedEvent ¶
type StopStartedEvent struct {
CFContext interfaces.CFContext
Data map[string]interface{}
Environment structs.Environment
Authorization interfaces.Authorization
Response io.ReadWriter
}
func (StopStartedEvent) Name ¶
func (e StopStartedEvent) Name() string
type StopSuccessEvent ¶
type StopSuccessEvent struct {
CFContext interfaces.CFContext
Data map[string]interface{}
Authorization interfaces.Authorization
Environment structs.Environment
Response io.ReadWriter
}
func (StopSuccessEvent) Name ¶
func (e StopSuccessEvent) Name() string
Click to show internal directories.
Click to hide internal directories.