Documentation ¶
Index ¶
- type CF
- func (cf *CF) API(endpoint string, skipSSLValidation bool) func()
- func (cf *CF) Auth(user, password string) func()
- func (cf *CF) BindService(appName, instanceName string) func()
- func (cf *CF) CreateAndBindSecurityGroup(securityGroup, appName, org, space string) func()
- func (cf *CF) CreateOrg(org, quota string) func()
- func (cf *CF) CreateQuota(name string, args ...string) func()
- func (cf *CF) CreateService(serviceName, planName, instanceName string, skip *bool) func()
- func (cf *CF) CreateSpace(space string) func()
- func (cf *CF) CreateUser(name, password string) func()
- func (cf *CF) Delete(appName string) func()
- func (cf *CF) DeleteOrg(name string) func()
- func (cf *CF) DeleteSecurityGroup(securityGroup string) func()
- func (cf *CF) DeleteService(instanceName string) func()
- func (cf *CF) DeleteUser(name string) func()
- func (cf *CF) EnableServiceAccess(org, service string) func()
- func (cf *CF) EnsureAllServiceInstancesGone() func()
- func (cf *CF) EnsureServiceInstanceGone(instanceName string) func()
- func (cf *CF) Logout() func()
- func (cf *CF) Push(appName string, args ...string) func()
- func (cf *CF) SetEnv(appName, environmentVariable, instanceName string) func()
- func (cf *CF) SetSpaceRole(name, org, space, role string) func()
- func (cf *CF) Start(appName string) func()
- func (cf *CF) TargetOrg(org string) func()
- func (cf *CF) TargetOrgAndSpace(org, space string) func()
- func (cf *CF) UnbindService(appName, instanceName string) func()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CF ¶
type CF struct { ShortTimeout time.Duration LongTimeout time.Duration MaxRetries int RetryBackoff retry.Backoff }
CF is a testing wrapper around the cf cli
func (*CF) BindService ¶
BindService is equivalent to `cf bind-service {appName} {instanceName}`
func (*CF) CreateAndBindSecurityGroup ¶
CreateSecurityGroup is equivalent to `cf create-security-group {securityGroup} {configPath}`
func (*CF) CreateQuota ¶
CreateQuota is equivalent to `cf create-quota {name} [args...]`
func (*CF) CreateService ¶
CreateService is equivalent to `cf create-service {serviceName} {planName} {instanceName}`
func (*CF) CreateSpace ¶
CreateSpace is equivalent to `cf create-space {space}`
func (*CF) CreateUser ¶
CreateUser is equivalent to `cf create-user {name} {password}`
func (*CF) DeleteSecurityGroup ¶
DeleteSecurityGroup is equivalent to `cf delete-security-group {securityGroup} -f`
func (*CF) DeleteService ¶
DeleteService is equivalent to `cf delete-service {instanceName} -f`
func (*CF) DeleteUser ¶
DeleteUser is equivalent to `cf delete-user -f {name}`
func (*CF) EnableServiceAccess ¶
EnableServiceAccess is equivalent to `cf enable-service-access -o {org} {service-offering}` In order to run enable-service-access idempotently we disable-service-access before.
func (*CF) EnsureAllServiceInstancesGone ¶
func (cf *CF) EnsureAllServiceInstancesGone() func()
func (*CF) EnsureServiceInstanceGone ¶
func (*CF) SetSpaceRole ¶
SetSpaceRole is equivalent to `cf set-space-role {name} {org} {space} {role}`
func (*CF) TargetOrgAndSpace ¶
TargetOrgAndSpace is equivalent to `cf target -o {org} -s {space}`
func (*CF) UnbindService ¶
UnbindService is equivalent to `cf unbind-service {appName} {instanceName}`