Documentation ¶
Index ¶
- func NewStartFailureEventBinding(handler func(event StartFailureEvent) error) interfaces.Binding
- func NewStartFinishedEventBinding(handler func(event StartFinishedEvent) error) interfaces.Binding
- func NewStartStartedEventBinding(handler func(event StartStartedEvent) error) interfaces.Binding
- func NewStartSuccessEventBinding(handler func(event StartSuccessEvent) error) interfaces.Binding
- type StartController
- type StartFailureEvent
- type StartFinishedEvent
- type StartManager
- func (a StartManager) CleanUp()
- func (a StartManager) Create(environment S.Environment, response io.ReadWriter, foundationURL string) (I.Action, error)
- func (a StartManager) ExecuteError(executeErrors []error) error
- func (a StartManager) InitiallyError(initiallyErrors []error) error
- func (a StartManager) OnFinish(env S.Environment, response io.ReadWriter, err error) I.DeployResponse
- func (a StartManager) OnStart() error
- func (a StartManager) SetUp() error
- func (a StartManager) SuccessError(successErrors []error) error
- func (a StartManager) UndoError(executeErrors, undoErrors []error) error
- type StartStartedEvent
- type StartSuccessEvent
- type Starter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStartFailureEventBinding ¶
func NewStartFailureEventBinding(handler func(event StartFailureEvent) error) interfaces.Binding
func NewStartFinishedEventBinding ¶
func NewStartFinishedEventBinding(handler func(event StartFinishedEvent) error) interfaces.Binding
func NewStartStartedEventBinding ¶
func NewStartStartedEventBinding(handler func(event StartStartedEvent) error) interfaces.Binding
func NewStartSuccessEventBinding ¶
func NewStartSuccessEventBinding(handler func(event StartSuccessEvent) error) interfaces.Binding
Types ¶
type StartController ¶
type StartController struct { Log I.Logger StartManagerFactory I.StartManagerFactory Deployer I.Deployer Config config.Config EventManager I.EventManager ErrorFinder I.ErrorFinder }
StartController is used to determine the type of request and process it accordingly.
func (*StartController) StartDeployment ¶
func (c *StartController) StartDeployment(deployment *I.Deployment, data map[string]interface{}, response *bytes.Buffer) (deployResponse I.DeployResponse)
type StartFailureEvent ¶
type StartFailureEvent struct { CFContext interfaces.CFContext Data map[string]interface{} Environment structs.Environment Authorization interfaces.Authorization Response io.ReadWriter Error error }
func (StartFailureEvent) Name ¶
func (e StartFailureEvent) Name() string
type StartFinishedEvent ¶
type StartFinishedEvent struct { CFContext interfaces.CFContext Data map[string]interface{} Authorization interfaces.Authorization Response io.ReadWriter Environment structs.Environment }
func (StartFinishedEvent) Name ¶
func (e StartFinishedEvent) Name() string
type StartManager ¶
type StartManager struct { CourierCreator courierCreator EventManager I.EventManager Logger logger.DeploymentLogger DeployEventData S.DeployEventData }
func (StartManager) CleanUp ¶
func (a StartManager) CleanUp()
func (StartManager) Create ¶
func (a StartManager) Create(environment S.Environment, response io.ReadWriter, foundationURL string) (I.Action, error)
func (StartManager) ExecuteError ¶
func (a StartManager) ExecuteError(executeErrors []error) error
func (StartManager) InitiallyError ¶
func (a StartManager) InitiallyError(initiallyErrors []error) error
func (StartManager) OnFinish ¶
func (a StartManager) OnFinish(env S.Environment, response io.ReadWriter, err error) I.DeployResponse
func (StartManager) OnStart ¶
func (a StartManager) OnStart() error
func (StartManager) SetUp ¶
func (a StartManager) SetUp() error
func (StartManager) SuccessError ¶
func (a StartManager) SuccessError(successErrors []error) error
func (StartManager) UndoError ¶
func (a StartManager) UndoError(executeErrors, undoErrors []error) error
type StartStartedEvent ¶
type StartStartedEvent struct { CFContext interfaces.CFContext Data map[string]interface{} Environment structs.Environment Authorization interfaces.Authorization Response io.ReadWriter }
func (StartStartedEvent) Name ¶
func (e StartStartedEvent) Name() string
type StartSuccessEvent ¶
type StartSuccessEvent struct { CFContext interfaces.CFContext Data map[string]interface{} Environment structs.Environment Authorization interfaces.Authorization Response io.ReadWriter }
func (StartSuccessEvent) Name ¶
func (e StartSuccessEvent) Name() string
type Starter ¶
type Starter struct { Courier I.Courier CFContext I.CFContext Authorization I.Authorization EventManager I.EventManager Response io.ReadWriter Log I.Logger FoundationURL string AppName string Data map[string]interface{} }
Click to show internal directories.
Click to hide internal directories.