Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct { Name string `json:"name"` Title string `json:"title,omitempty"` Catalogs []string `json:"catalogs"` URL *string `json:"url,omitempty"` }
Broker represents a Service Broker.
type BrokerError ¶
type BrokerError struct { // StatusCode is the HTTP status code returned by the broker. StatusCode int // ErrorDescription describes the failed result of the request. ErrorDescription string // ErrorBody is the response body returned by the broker. ErrorBody string }
BrokerError is the result of a failed broker request.
func (*BrokerError) Error ¶
func (e *BrokerError) Error() string
Error is the method inherited from "error" interface to print the error.
type CreateBrokerParams ¶
CreateBrokerParams is used as input to CreateBroker.
type GetCatalogParams ¶
GetCatalogParams is used as input to GetCatalog.
type GetCatalogResult ¶
type GetCatalogResult struct {
Services []Service `json:"services"`
}
GetCatalogResult is output of successful GetCatalog request.
type HttpAdapter ¶
type HttpAdapter struct {
// contains filtered or unexported fields
}
HttpAdapter is an implementation of Adapter that uses HTTP.
func NewHttpAdapter ¶
func NewHttpAdapter(client DoClient) *HttpAdapter
NewHttpAdapter returns an *HttpAdapter which uses the given client.
func (*HttpAdapter) CreateBroker ¶
func (adapter *HttpAdapter) CreateBroker(params *CreateBrokerParams) (int, []byte, error)
CreateBroker creates a broker in project with the given name, title, and catalogs using the URL.
func (*HttpAdapter) GetCatalog ¶
func (adapter *HttpAdapter) GetCatalog(params *GetCatalogParams) (*GetCatalogResult, error)
Click to show internal directories.
Click to hide internal directories.