Documentation ¶
Index ¶
- Variables
- func FreeValue(v bool) *bool
- func New(serviceBroker ServiceBroker, logger lager.Logger, ...) http.Handler
- type BindDetails
- type Binding
- type BrokerCredentials
- type CatalogResponse
- type DeprovisionDetails
- type EmptyResponse
- type ErrorResponse
- type IsAsync
- type LastOperation
- type LastOperationResponse
- type LastOperationState
- type PreviousValues
- type ProvisionDetails
- type ProvisionedServiceSpec
- type ProvisioningResponse
- type Service
- type ServiceBroker
- type ServiceCost
- type ServiceDashboardClient
- type ServiceMetadata
- type ServicePlan
- type ServicePlanMetadata
- type UnbindDetails
- type UpdateDetails
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") ErrAsyncRequired = errors.New("This service plan requires client support for asynchronous service operations") ErrPlanChangeNotSupported = errors.New("The requested plan migration cannot be performed") )
Functions ¶
func New ¶
func New(serviceBroker ServiceBroker, logger lager.Logger, brokerCredentials BrokerCredentials) http.Handler
Types ¶
type BindDetails ¶
type Binding ¶
type Binding struct { Credentials interface{} `json:"credentials"` SyslogDrainURL string `json:"syslog_drain_url,omitempty"` }
type BrokerCredentials ¶
type CatalogResponse ¶
type CatalogResponse struct {
Services []Service `json:"services"`
}
type DeprovisionDetails ¶
type EmptyResponse ¶
type EmptyResponse struct{}
type ErrorResponse ¶
type LastOperation ¶
type LastOperation struct { State LastOperationState Description string }
type LastOperationResponse ¶
type LastOperationState ¶
type LastOperationState string
const ( InProgress LastOperationState = "in progress" Succeeded LastOperationState = "succeeded" Failed LastOperationState = "failed" )
type PreviousValues ¶
type ProvisionDetails ¶
type ProvisionedServiceSpec ¶
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"` Tags []string `json:"tags,omitempty"` PlanUpdatable bool `json:"plan_updateable"` Plans []ServicePlan `json:"plans"` Metadata *ServiceMetadata `json:"metadata,omitempty"` DashboardClient *ServiceDashboardClient `json:"dashboard_client,omitempty"` }
type ServiceBroker ¶
type ServiceBroker interface { Services() []Service Provision(instanceID string, details ProvisionDetails, asyncAllowed bool) (ProvisionedServiceSpec, error) Deprovision(instanceID string, details DeprovisionDetails, asyncAllowed bool) (IsAsync, error) Bind(instanceID, bindingID string, details BindDetails) (Binding, error) Unbind(instanceID, bindingID string, details UnbindDetails) error Update(instanceID string, details UpdateDetails, asyncAllowed bool) (IsAsync, error) LastOperation(instanceID string) (LastOperation, error) }
type ServiceCost ¶
type ServiceDashboardClient ¶
type ServiceMetadata ¶
type ServiceMetadata struct { DisplayName string `json:"displayName,omitempty"` ImageUrl string `json:"imageUrl,omitempty"` LongDescription string `json:"longDescription,omitempty"` ProviderDisplayName string `json:"providerDisplayName,omitempty"` DocumentationUrl string `json:"documentationUrl,omitempty"` SupportUrl string `json:"supportUrl,omitempty"` }
type ServicePlan ¶
type ServicePlan struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Free *bool `json:"free,omitempty"` Metadata *ServicePlanMetadata `json:"metadata,omitempty"` }
type ServicePlanMetadata ¶
type ServicePlanMetadata struct { DisplayName string `json:"displayName,omitempty"` Bullets []string `json:"bullets,omitempty"` Costs []ServiceCost `json:"costs,omitempty"` }
type UnbindDetails ¶
type UpdateDetails ¶
type UpdateDetails struct { ServiceID string `json:"service_id"` PlanID string `json:"plan_id"` Parameters map[string]interface{} `json:"parameters"` PreviousValues PreviousValues `json:"previous_values"` }
Click to show internal directories.
Click to hide internal directories.