pusher

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package pusher handles pushing to individual Cloud Foundry instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pusher

type Pusher struct {
	Courier I.Courier
	Log     *logging.Logger
}

Pusher has a courier used to push applications to Cloud Foundry.

func (Pusher) CleanUp

func (p Pusher) CleanUp() error

CleanUp removes the temporary directory created by the Executor.

func (Pusher) Exists

func (p Pusher) Exists(appName string) bool

Exists uses the courier to check if the application exists.

func (Pusher) FinishPush

func (p Pusher) FinishPush(deploymentInfo S.DeploymentInfo) error

FinishPush will delete the venerable instance of your application.

func (Pusher) Login

func (p Pusher) Login(foundationURL string, deploymentInfo S.DeploymentInfo, out io.Writer) error

Login will login to a Cloud Foundry instance.

func (Pusher) Push

func (p Pusher) Push(appPath, domain string, deploymentInfo S.DeploymentInfo, out io.Writer) ([]byte, error)

Push pushes a single application to a Clound Foundry instance using blue green deployment. Blue green is done by renaming the current application to appName-venerable. Pushes the new application to the existing appName route with an included load balanced domain if provided.

Returns Cloud Foundry logs if there is an error.

func (Pusher) Rollback

func (p Pusher) Rollback(deploymentInfo S.DeploymentInfo) error

Rollback will rollback Push. Deletes the new application and renames appName-venerable back to appName.

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