Documentation ¶
Index ¶
- Variables
- func New(serviceBroker ServiceBroker, logger lager.Logger, ...) http.Handler
- type BindDetails
- type BindingResponse
- type BrokerCredentials
- type CatalogResponse
- type EmptyResponse
- type ErrorResponse
- type ProvisionDetails
- type ProvisioningResponse
- type Service
- type ServiceBroker
- type ServiceMetadata
- type ServiceMetadataListing
- type ServiceMetadataProvider
- type ServicePlan
- type ServicePlanMetadata
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInstanceAlreadyExists = errors.New("instance already exists") ErrInstanceDoesNotExist = errors.New("instance does not exist") ErrInstanceLimitMet = errors.New("instance limit for this service has been reached") ErrBindingAlreadyExists = errors.New("binding already exists") ErrBindingDoesNotExist = errors.New("binding does not exist") )
Functions ¶
func New ¶
func New(serviceBroker ServiceBroker, logger lager.Logger, brokerCredentials BrokerCredentials) http.Handler
Types ¶
type BindDetails ¶
type BindingResponse ¶
type BindingResponse struct {
Credentials interface{} `json:"credentials"`
}
type BrokerCredentials ¶
type CatalogResponse ¶
type CatalogResponse struct {
Services []Service `json:"services"`
}
type EmptyResponse ¶
type EmptyResponse struct{}
type ErrorResponse ¶
type ErrorResponse struct {
Description string `json:"description"`
}
type ProvisionDetails ¶
type ProvisioningResponse ¶
type ProvisioningResponse struct {
DashboardURL string `json:"dashboard_url,omitempty"`
}
type Service ¶
type Service struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Bindable bool `json:"bindable"` Plans []ServicePlan `json:"plans"` Metadata ServiceMetadata `json:"metadata"` Tags []string `json:"tags"` }
type ServiceBroker ¶
type ServiceMetadata ¶
type ServiceMetadata struct { DisplayName string `json:"displayName"` LongDescription string `json:"longDescription"` DocumentationUrl string `json:"documentationUrl"` SupportUrl string `json:"supportUrl"` Listing ServiceMetadataListing `json:"listing"` Provider ServiceMetadataProvider `json:"provider"` }
type ServiceMetadataListing ¶
type ServiceMetadataProvider ¶
type ServiceMetadataProvider struct {
Name string `json:"name"`
}
type ServicePlan ¶
type ServicePlan struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Metadata ServicePlanMetadata `json:"metadata"` }
type ServicePlanMetadata ¶
Click to show internal directories.
Click to hide internal directories.