courier

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package courier interfaces with the Executor to run specific Cloud Foundry CLI commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Courier

type Courier struct {
	Executor I.Executor
}

Courier has an Executor to execute Cloud Foundry commands.

func (Courier) CleanUp

func (c Courier) CleanUp() error

CleanUp removes the temporary directory created by the Executor.

func (Courier) Cups added in v0.4.0

func (c Courier) Cups(appName string, body string) ([]byte, error)

Cups runs the Cloud Foundry CUPS command to create user provided services.

Returns the combined standard output and standard error.

func (Courier) Delete

func (c Courier) Delete(appName string) ([]byte, error)

Delete runs the Cloud Foundry delete command.

Returns the combined standard output and standard error.

func (Courier) Domains added in v0.8.0

func (c Courier) Domains() ([]string, error)

Domains returns a list of domain in a foundation.

Returns the combined standard output and standard error.

func (Courier) Exists

func (c Courier) Exists(appName string) bool

Exists checks to see whether the application name exists already.

Returns true if the application exists.

func (Courier) Login

func (c Courier) Login(foundationURL, username, password, org, space string, skipSSL bool) ([]byte, error)

Login runs the Cloud Foundry login command.

Returns the combined standard output and standard error.

func (Courier) Logs added in v0.2.0

func (c Courier) Logs(appName string) ([]byte, error)

Logs runs the Cloud Foundry logs command.

Returns the combined standard output and standard error.

func (Courier) MapRoute

func (c Courier) MapRoute(appName, domain, hostname string) ([]byte, error)

MapRoute runs the Cloud Foundry map-route command.

Returns the combined standard output and standard error.

func (Courier) Push

func (c Courier) Push(appName, appLocation, hostname string, instances uint16) ([]byte, error)

Push runs the Cloud Foundry push command.

Returns the combined standard output and standard error.

func (Courier) Rename

func (c Courier) Rename(appName, newAppName string) ([]byte, error)

Rename runs the Cloud Foundry rename command.

Returns the combined standard output and standard error.

func (Courier) UnmapRoute added in v0.7.0

func (c Courier) UnmapRoute(appName, domain, hostname string) ([]byte, error)

UnmapRoute runs the Cloud Foundry unmap-route command.

Returns the combined standard output and standard error.

func (Courier) Uups added in v0.5.0

func (c Courier) Uups(appName string, body string) ([]byte, error)

Uups runs the Cloud Foundry UUPS command to update a user provided serivce

Directories

Path Synopsis
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