Documentation

Index

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

type Stopper

type Stopper struct {
	Courier       I.Courier
	CFContext     I.CFContext
	Authorization I.Authorization
	EventManager  I.EventManager
	Response      io.ReadWriter
	Log           I.Logger
	FoundationURL string
	AppName       string
}

func (Stopper) Execute

func (s Stopper) Execute() error

func (Stopper) Finally

func (s Stopper) Finally() error

func (Stopper) Initially

func (s Stopper) Initially() error

    Login will login to a Cloud Foundry instance.

    func (Stopper) Success

    func (s Stopper) Success() error

    func (Stopper) Undo

    func (s Stopper) Undo() error

    func (Stopper) Verify

    func (s Stopper) Verify() error