Documentation ¶
Overview ¶
Package courier interfaces with the Executor to run specific Cloud Foundry CLI commands.
Index ¶
- func NewCourier(executor I.Executor) I.Courier
- type Courier
- func (c Courier) BindService(appName, dbName string) ([]byte, error)
- func (c Courier) CleanUp() error
- func (c Courier) CreateService(service, plan, name string) ([]byte, error)
- func (c Courier) Cups(appName string, body string) ([]byte, error)
- func (c Courier) Delete(appName string) ([]byte, error)
- func (c Courier) DeleteRoute(domain, hostname string) ([]byte, error)
- func (c Courier) DeleteService(serviceName 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) MapRouteWithPath(appName, domain, hostname, path 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) Restage(appName string) ([]byte, error)
- func (c Courier) Start(appName string) ([]byte, error)
- func (c Courier) Stop(appName string) ([]byte, error)
- func (c Courier) UnbindService(appName, dbName string) ([]byte, error)
- func (c Courier) UnmapRoute(appName, domain, hostname string) ([]byte, error)
- func (c Courier) UnmapRouteWithPath(appName, domain, hostname, path string) ([]byte, error)
- func (c Courier) Uups(appName string, body string) ([]byte, error)
- type CourierConstructor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Courier ¶
Courier has an Executor to execute Cloud Foundry commands.
func (Courier) CreateService ¶
func (Courier) Cups ¶
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 ¶
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 ¶
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) MapRouteWithPath ¶
MapRoute runs the Cloud Foundry map-route command and added path arguement
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) UnbindService ¶
func (Courier) UnmapRoute ¶
UnmapRoute runs the Cloud Foundry unmap-route command.
Returns the combined standard output and standard error.
func (Courier) UnmapRouteWithPath ¶
UnmapRoute runs the Cloud Foundry unmap-route command.
Returns the combined standard output and standard error.