Documentation
¶
Overview ¶
Package bluegreen is responsible for concurrently pushing an application to multiple Cloud Foundry instances.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlueGreen ¶
type BlueGreen struct {
PusherCreator I.PusherCreator
Log I.Logger
// contains filtered or unexported fields
}
BlueGreen has a PusherCreator to creater pushers for blue green deployments.
func (BlueGreen) Push ¶
func (bg BlueGreen) Push(environment S.Environment, appPath string, deploymentInfo S.DeploymentInfo, response io.ReadWriter) I.DeploymentError
Push will login to all the Cloud Foundry instances provided in the Config and then push the application to all the instances concurrently. If the application fails to start in any of the instances it handles rolling back the application in every instance, unless it is the first deploy.
type FinishDeployError ¶
type FinishDeployError struct {
Err error
}
func (FinishDeployError) Code ¶
func (e FinishDeployError) Code() string
func (FinishDeployError) Error ¶
func (e FinishDeployError) Error() string
type FinishPushError ¶ added in v0.6.0
type FinishPushError struct {
FinishPushError []error
}
func (FinishPushError) Code ¶
func (e FinishPushError) Code() string
func (FinishPushError) Error ¶ added in v0.6.0
func (e FinishPushError) Error() string
type InitializationError ¶
type InitializationError struct {
Err error
}
func (InitializationError) Code ¶
func (e InitializationError) Code() string
func (InitializationError) Error ¶
func (e InitializationError) Error() string
type LoginError ¶ added in v0.6.0
type LoginError struct {
LoginErrors []error
}
func (LoginError) Code ¶
func (e LoginError) Code() string
func (LoginError) Error ¶ added in v0.6.0
func (e LoginError) Error() string
type RollbackError ¶ added in v0.6.0
func (RollbackError) Code ¶
func (e RollbackError) Code() string
func (RollbackError) Error ¶ added in v0.6.0
func (e RollbackError) Error() string
Directories
¶
| Path | Synopsis |
|---|---|
|
Package pusher handles pushing to individual Cloud Foundry instances.
|
Package pusher handles pushing to individual Cloud Foundry instances. |
|
courier
Package courier interfaces with the Executor to run specific Cloud Foundry CLI commands.
|
Package courier interfaces with the Executor to run specific Cloud Foundry CLI commands. |
|
courier/executor
Package executor runs commands against the Cloud Foundry binary.
|
Package executor runs commands against the Cloud Foundry binary. |
Click to show internal directories.
Click to hide internal directories.