Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudFoundryAPIStub ¶
type CloudFoundryAPIStub struct { APIFake *fakes.FakeCloudFoundryClient // Each of these types maps the content of the // API query's "q" parameter to a slice of // the relevant type. Services map[string][]cf.Service ServicePlans map[string][]cf.ServicePlan ServiceInstances map[string][]cf.ServiceInstance // Each of these types maps a GUID to an instance of the type Orgs map[string]cf.Org Spaces map[string]cf.Space }
Provides a pre-configured stub of the CloudFoundry API client for use in tests.
It doesn't cover every part of the API, just those bits needed by tests.
func NewCloudFoundryAPIStub ¶
func NewCloudFoundryAPIStub() *CloudFoundryAPIStub
Click to show internal directories.
Click to hide internal directories.