Documentation ¶
Overview ¶
Package pusher handles pushing to individual Cloud Foundry instances.
Index ¶
Constants ¶
const TemporaryNameSuffix = "-new-build-"
TemporaryNameSuffix is used when deploying the new application in order to not overide the existing application name.
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 {
Out []byte
}
func (MapRouteError) Error ¶ added in v0.6.0
func (e MapRouteError) Error() string
type Pusher ¶
type Pusher struct { Courier I.Courier DeploymentInfo S.DeploymentInfo EventManager I.EventManager Response io.ReadWriter Log I.Logger // contains filtered or unexported fields }
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 ¶
FinishPush will delete the original application if it existed. It will always rename the the newly pushed application to the appName.
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.
type RenameError ¶ added in v0.6.0
func (RenameError) Error ¶ added in v0.6.0
func (e RenameError) Error() string
type UnmapRouteError ¶ added in v0.7.0
func (UnmapRouteError) Error ¶ added in v0.7.0
func (e UnmapRouteError) 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. |