Documentation ¶
Index ¶
- type BrokerTester
- func (bt BrokerTester) Bind(instanceID, bindingID string, body RequestBody) *httptest.ResponseRecorder
- func (bt BrokerTester) Delete(path string, body io.Reader, params url.Values) *httptest.ResponseRecorder
- func (bt BrokerTester) Deprovision(instanceID, serviceID, planID string, async bool) *httptest.ResponseRecorder
- func (bt BrokerTester) Get(path string, params url.Values) *httptest.ResponseRecorder
- func (bt BrokerTester) LastOperation(instanceID, serviceID, planID, operation string) *httptest.ResponseRecorder
- func (bt BrokerTester) Patch(path string, body io.Reader, params url.Values) *httptest.ResponseRecorder
- func (bt BrokerTester) Provision(instanceID string, body RequestBody, async bool) *httptest.ResponseRecorder
- func (bt BrokerTester) Put(path string, body io.Reader, params url.Values) *httptest.ResponseRecorder
- func (bt BrokerTester) Services() *httptest.ResponseRecorder
- func (bt BrokerTester) Unbind(instanceID, bindingID string, body RequestBody) *httptest.ResponseRecorder
- func (bt BrokerTester) Update(instanceID string, body RequestBody, async bool) *httptest.ResponseRecorder
- type RequestBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrokerTester ¶
type BrokerTester struct {
// contains filtered or unexported fields
}
func New ¶
func New(credentials brokerapi.BrokerCredentials, brokerAPI http.Handler) BrokerTester
func (BrokerTester) Bind ¶
func (bt BrokerTester) Bind(instanceID, bindingID string, body RequestBody) *httptest.ResponseRecorder
func (BrokerTester) Delete ¶
func (bt BrokerTester) Delete(path string, body io.Reader, params url.Values) *httptest.ResponseRecorder
func (BrokerTester) Deprovision ¶
func (bt BrokerTester) Deprovision(instanceID, serviceID, planID string, async bool) *httptest.ResponseRecorder
func (BrokerTester) Get ¶
func (bt BrokerTester) Get(path string, params url.Values) *httptest.ResponseRecorder
func (BrokerTester) LastOperation ¶
func (bt BrokerTester) LastOperation(instanceID, serviceID, planID, operation string) *httptest.ResponseRecorder
func (BrokerTester) Patch ¶
func (bt BrokerTester) Patch(path string, body io.Reader, params url.Values) *httptest.ResponseRecorder
func (BrokerTester) Provision ¶
func (bt BrokerTester) Provision(instanceID string, body RequestBody, async bool) *httptest.ResponseRecorder
func (BrokerTester) Put ¶
func (bt BrokerTester) Put(path string, body io.Reader, params url.Values) *httptest.ResponseRecorder
func (BrokerTester) Services ¶
func (bt BrokerTester) Services() *httptest.ResponseRecorder
func (BrokerTester) Unbind ¶
func (bt BrokerTester) Unbind(instanceID, bindingID string, body RequestBody) *httptest.ResponseRecorder
func (BrokerTester) Update ¶
func (bt BrokerTester) Update(instanceID string, body RequestBody, async bool) *httptest.ResponseRecorder
type RequestBody ¶
type RequestBody struct { ServiceID string `json:"service_id,omitempty"` PlanID string `json:"plan_id,omitempty"` OrganizationGUID string `json:"organization_guid,omitempty"` SpaceGUID string `json:"space_guid,omitempty"` AppGUID string `json:"app_guid,omitempty"` PreviousValues *RequestBody `json:"previous_values,omitempty"` RawParameters json.RawMessage `json:"parameters,omitempty"` }
Click to show internal directories.
Click to hide internal directories.