helper

package
v0.0.0-...-56b0c7e Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FiveSecondTimeout   = 5 * time.Second
	ThirtyMinuteTimeout = 30 * time.Minute
)
View Source
const COMMAND_TIMEOUT = 2 * time.Minute
View Source
const RETRY_LIMIT = 5

Variables

This section is empty.

Functions

func AwaitServiceAvailable

func AwaitServiceAvailable(serviceName string)

Keeps polling `cf service <service-name>` until service is created or updated. For on-demand offerings the operation of creating or updating a service instance is async, which means that cf-cli immediately return `exit 0` while the operation is been handled in the background by On-Demand broker. This should be fast for multitenant offering, given that it's a sync operation.

func AwaitServiceDeletion

func AwaitServiceDeletion(serviceName string)

Keeps polling `cf services` until service is no longer found in the services list. For On-Demand offerings this operation is async and might take longer.

func Cf

func Cf(args ...string) *gexec.Session

func CfWithTimeout

func CfWithTimeout(timeout time.Duration, args ...string) *gexec.Session

func CreateAndBindSecurityGroup

func CreateAndBindSecurityGroup(securityGroupName, orgName, spaceName string)

func CreateService

func CreateService(serviceOffering, servicePlan, serviceName string)

func CreateServiceKey

func CreateServiceKey(serviceName, keyName string)

func DeleteApp

func DeleteApp(appName string)

func DeleteSecurityGroup

func DeleteSecurityGroup(securityGroupName string)

func DeleteService

func DeleteService(serviceName string)

func DeleteServiceKey

func DeleteServiceKey(serviceName, keyName string)

func EnableTLSForODB

func EnableTLSForODB(serviceName string)

func GetServiceKey

func GetServiceKey(serviceName, keyName string) []byte

func LookupAppURL

func LookupAppURL(appName string) string

func PrintAppLogs

func PrintAppLogs(appName string)

func PushAndBindApp

func PushAndBindApp(appName, serviceName, testAppPath string) string

func ReceiveMessage

func ReceiveMessage(testAppURL, queueName string) string

func SendMessage

func SendMessage(testAppURL, queueName, message string)

func UnbindService

func UnbindService(appName, serviceName string)

func UpdateService

func UpdateService(serviceName, params string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL