bluegreen

package
v3.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2018 License: MIT Imports: 7 Imported by: 0

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

func NewActor

func NewActor(action I.Action) actor

Types

type ActorCommand

type ActorCommand func(action I.Action) error

type BlueGreen

type BlueGreen struct {
	Log I.Logger
}

BlueGreen has a PushManager to creater pushers for blue green deployments.

func (BlueGreen) Execute

func (bg BlueGreen) Execute(actionCreator I.ActionCreator, environment S.Environment, response io.ReadWriter) error

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 FinishStartError

type FinishStartError struct {
	FinishStartErrors []error
}

func (FinishStartError) Error

func (e FinishStartError) Error() string

type FinishStopError

type FinishStopError struct {
	FinishStopErrors []error
}

func (FinishStopError) Error

func (e FinishStopError) 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 PushError added in v0.6.0

type PushError struct {
	PushErrors []error
}

func (PushError) Code

func (e PushError) Code() string

func (PushError) Error added in v0.6.0

func (e PushError) Error() string

type RollbackError added in v0.6.0

type RollbackError struct {
	PushErrors     []error
	RollbackErrors []error
}

func (RollbackError) Code

func (e RollbackError) Code() string

func (RollbackError) Error added in v0.6.0

func (e RollbackError) Error() string

type RollbackStartError

type RollbackStartError struct {
	StartErrors    []error
	RollbackErrors []error
}

func (RollbackStartError) Error

func (e RollbackStartError) Error() string

type RollbackStopError

type RollbackStopError struct {
	StopErrors     []error
	RollbackErrors []error
}

func (RollbackStopError) Error

func (e RollbackStopError) Error() string

type StartError

type StartError struct {
	Errors []error
}

func (StartError) Code

func (e StartError) Code() string

func (StartError) Error

func (e StartError) Error() string

type StartStopError

type StartStopError struct {
	Err error
}

func (StartStopError) Error

func (e StartStopError) Error() string

type StopError

type StopError struct {
	Errors []error
}

func (StopError) Code

func (e StopError) Code() string

func (StopError) Error

func (e StopError) Error() string

Directories

Path Synopsis
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.
executor
Package executor runs commands against the Cloud Foundry binary.
Package executor runs commands against the Cloud Foundry binary.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL