Documentation ¶
Index ¶
- Constants
- func AwaitServiceAvailable(serviceName string)
- func AwaitServiceDeletion(serviceName string)
- func Cf(args ...string) *gexec.Session
- func CfWithTimeout(timeout time.Duration, args ...string) *gexec.Session
- func CreateAndBindSecurityGroup(securityGroupName, orgName, spaceName string)
- func CreateService(serviceOffering, servicePlan, serviceName string)
- func CreateServiceKey(serviceName, keyName string)
- func DeleteApp(appName string)
- func DeleteSecurityGroup(securityGroupName string)
- func DeleteService(serviceName string)
- func DeleteServiceKey(serviceName, keyName string)
- func EnableTLSForODB(serviceName string)
- func GetServiceKey(serviceName, keyName string) []byte
- func LookupAppURL(appName string) string
- func PrintAppLogs(appName string)
- func PushAndBindApp(appName, serviceName, testAppPath string) string
- func ReceiveMessage(testAppURL, queueName string) string
- func SendMessage(testAppURL, queueName, message string)
- func UnbindService(appName, serviceName string)
- func UpdateService(serviceName, params string)
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 CreateAndBindSecurityGroup ¶
func CreateAndBindSecurityGroup(securityGroupName, orgName, spaceName string)
func CreateService ¶
func CreateService(serviceOffering, servicePlan, serviceName string)
func CreateServiceKey ¶
func CreateServiceKey(serviceName, keyName 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 LookupAppURL ¶
func PrintAppLogs ¶
func PrintAppLogs(appName string)
func PushAndBindApp ¶
func ReceiveMessage ¶
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.
Click to show internal directories.
Click to hide internal directories.