Documentation ¶
Overview ¶
Package courier interfaces with the Executor to run specific Cloud Foundry CLI commands.
Index ¶
- type Courier
- func (c Courier) CleanUp() error
- func (c Courier) Cups(appName string, body string) ([]byte, error)
- func (c Courier) Delete(appName string) ([]byte, error)
- func (c Courier) Domains() ([]string, error)
- func (c Courier) Exists(appName string) bool
- func (c Courier) Login(foundationURL, username, password, org, space string, skipSSL bool) ([]byte, error)
- func (c Courier) Logs(appName string) ([]byte, error)
- func (c Courier) MapRoute(appName, domain, hostname string) ([]byte, error)
- func (c Courier) Push(appName, appLocation, hostname string, instances uint16) ([]byte, error)
- func (c Courier) Rename(appName, newAppName string) ([]byte, error)
- func (c Courier) UnmapRoute(appName, domain, hostname string) ([]byte, error)
- func (c Courier) Uups(appName string, body string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Courier ¶
Courier has an Executor to execute Cloud Foundry commands.
func (Courier) Cups ¶ added in v0.4.0
Cups runs the Cloud Foundry CUPS command to create user provided services.
Returns the combined standard output and standard error.
func (Courier) Delete ¶
Delete runs the Cloud Foundry delete command.
Returns the combined standard output and standard error.
func (Courier) Domains ¶ added in v0.8.0
Domains returns a list of domain in a foundation.
Returns the combined standard output and standard error.
func (Courier) Exists ¶
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
Logs runs the Cloud Foundry logs command.
Returns the combined standard output and standard error.
func (Courier) MapRoute ¶
MapRoute runs the Cloud Foundry map-route command.
Returns the combined standard output and standard error.
func (Courier) Push ¶
Push runs the Cloud Foundry push command.
Returns the combined standard output and standard error.
func (Courier) Rename ¶
Rename runs the Cloud Foundry rename command.
Returns the combined standard output and standard error.
func (Courier) UnmapRoute ¶ added in v0.7.0
UnmapRoute runs the Cloud Foundry unmap-route command.
Returns the combined standard output and standard error.