Documentation
¶
Overview ¶
Package pusher handles pushing to individual Cloud Foundry instances.
Index ¶
- Constants
- type CloudFoundryGetLogsError
- type DeleteApplicationError
- type LoginError
- type MapRouteError
- type PushError
- type Pusher
- func (p Pusher) CleanUp() error
- func (p *Pusher) Exists(appName string)
- func (p Pusher) FinishPush(deploymentInfo S.DeploymentInfo) error
- func (p Pusher) Login(foundationURL string, deploymentInfo S.DeploymentInfo, response io.Writer) error
- func (p Pusher) Push(appPath string, deploymentInfo S.DeploymentInfo, response io.Writer) error
- func (p Pusher) UndoPush(deploymentInfo S.DeploymentInfo) error
- type RenameError
Constants ¶
const TemporaryNameSuffix = "-new-build-"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudFoundryGetLogsError ¶ added in v0.6.0
func (CloudFoundryGetLogsError) Error ¶ added in v0.6.0
func (e CloudFoundryGetLogsError) Error() string
type DeleteApplicationError ¶ added in v0.6.0
func (DeleteApplicationError) Error ¶ added in v0.6.0
func (e DeleteApplicationError) Error() string
type LoginError ¶ added in v0.6.0
func (LoginError) Error ¶ added in v0.6.0
func (e LoginError) Error() string
type MapRouteError ¶ added in v0.6.0
type MapRouteError struct{}
func (MapRouteError) Error ¶ added in v0.6.0
func (e MapRouteError) Error() string
type Pusher ¶
Pusher has a courier used to push applications to Cloud Foundry. It represents logging into a single foundation to perform operations.
func (*Pusher) Exists ¶
Exists uses the courier to check if the application already exists, meaning this is not the first time it has been pushed to Cloud Foundry.
func (Pusher) FinishPush ¶
func (p Pusher) FinishPush(deploymentInfo S.DeploymentInfo) error
FinishPush will delete the original application if it existed. It will always rename the the newly pushed application to the appName.
func (Pusher) Login ¶
func (p Pusher) Login(foundationURL string, deploymentInfo S.DeploymentInfo, response io.Writer) error
Login will login to a Cloud Foundry instance.
func (Pusher) Push ¶
Push pushes a single application to a Clound Foundry instance using blue green deployment. Blue green is done by pushing a new application with the appName+TemporaryNameSuffix+UUID. It pushes the new application with the existing appName route. It will map a load balanced domain if provided in the config.yml.
Returns Cloud Foundry logs if there is an error.
func (Pusher) UndoPush ¶ added in v0.6.0
func (p Pusher) UndoPush(deploymentInfo S.DeploymentInfo) error
UndoPush is only called when a Push fails. If it is not the first deployment, UndoPush will delete the temporary application that was pushed. If is the first deployment, UndoPush will rename the failed push to have the appName.
type RenameError ¶ added in v0.6.0
func (RenameError) Error ¶ added in v0.6.0
func (e RenameError) 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. |