cf_helpers

package
v0.0.0-...-fb356ce Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CfTimeout     = 2 * time.Minute
	LongCfTimeout = 60 * time.Minute // This is only so long to support a stressed director. It should be combined with smart fail-fast
)
View Source
const COMMAND_TIMEOUT = CfTimeout
View Source
const RETRY_LIMIT = 3

Variables

This section is empty.

Functions

func AppBindingCreds

func AppBindingCreds(appName, serviceName string) (interface{}, error)

func AwaitInProgressOperations

func AwaitInProgressOperations(serviceName string)

func AwaitServiceCreation

func AwaitServiceCreation(serviceName string)

func AwaitServiceCreationFailure

func AwaitServiceCreationFailure(serviceName string)

func AwaitServiceCreationWithTimeout

func AwaitServiceCreationWithTimeout(serviceName string, timeout time.Duration)

func AwaitServiceDeletion

func AwaitServiceDeletion(serviceName string)

func AwaitServiceUpdate

func AwaitServiceUpdate(serviceName string)

func Cf

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

func CfWithStdin

func CfWithStdin(stdin io.Reader, args ...string) *gexec.Session

func CfWithTimeout

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

func CreateOrg

func CreateOrg(orgName string)

func CreateService

func CreateService(serviceOffering, servicePlan, serviceName, arbitraryParams string)

func CreateServiceKey

func CreateServiceKey(serviceName, serviceKeyName string)

func CreateServiceWithoutWaiting

func CreateServiceWithoutWaiting(serviceOffering, servicePlan, serviceName, arbitraryParams string)

func CreateSpace

func CreateSpace(orgName, spaceName string)

func DeleteApp

func DeleteApp(appName string)

func DeleteOrg

func DeleteOrg(orgName string)

func DeleteService

func DeleteService(serviceName string)

func DeleteServiceKey

func DeleteServiceKey(serviceName, serviceKeyName string)

func DeleteServiceKeyWithoutChecking

func DeleteServiceKeyWithoutChecking(serviceName, serviceKeyName string)

func DeleteServiceWithoutChecking

func DeleteServiceWithoutChecking(serviceName string)

func DeleteSpace

func DeleteSpace(orgName, spaceName string)

func ExerciseApp

func ExerciseApp(serviceType service_helpers.ServiceType, appURL string)

func GetAppPath

func GetAppPath(serviceType service_helpers.ServiceType) string

func GetDashboardURL

func GetDashboardURL(instanceGUID string) string

func GetFromTestApp

func GetFromTestApp(testAppURL, key string) string

func GetOAuthToken

func GetOAuthToken() string

func GetServiceInstanceGUID

func GetServiceInstanceGUID(serviceName string) string

func GetServiceKey

func GetServiceKey(serviceName, serviceKeyName string) string

func LooksLikeAServiceKey

func LooksLikeAServiceKey(key string)

func PopFromTestAppQueue

func PopFromTestAppQueue(testAppURL, queueName string) string

func PushAndBindApp

func PushAndBindApp(appName, serviceName, testAppPath string) string

func PushToTestAppQueue

func PushToTestAppQueue(testAppURL, queueName, message string)

func PutToTestApp

func PutToTestApp(testAppURL, key, value string)

func ServiceInstanceGUID

func ServiceInstanceGUID(serviceName string) string

func TargetOrgAndSpace

func TargetOrgAndSpace(orgName, spaceName string)

func UnbindAndDeleteApp

func UnbindAndDeleteApp(appName, serviceName string)

func UpdateServiceToPlan

func UpdateServiceToPlan(serviceName, newPlanName string)

func UpdateServiceWithArbitraryParams

func UpdateServiceWithArbitraryParams(serviceName, arbitraryParams string)

func UpdateServiceWithUpgrade

func UpdateServiceWithUpgrade(serviceName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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