Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(svc *ServiceExtension) bool
Types ¶
type CatalogExtension ¶
type CatalogExtension struct {
Services []*ServiceExtension `json:"services"`
}
CatalogExtension describes Cloud Foundry catalog but holds extended Service informations, also.
type ServiceConfiguration ¶
type ServiceCreationResponse ¶
type ServiceCreationResponse struct { cf.ServiceCreationResponse App types.CfAppResource `json:"-"` }
type ServiceExtension ¶
type ServiceExtension struct { cf.Service ReferenceApp types.CfAppResource `json:"app"` Configuration []*ServiceConfiguration `json:"configuration,omitempty"` }
ServiceExtension extends cf.Service with data describing application to clone.
func NewAutogeneratedService ¶
func NewAutogeneratedService() *ServiceExtension
type ServiceInstanceExtension ¶
type ServiceInstanceExtension struct { ID string `json:"id"` ServiceID string `json:"service_id"` App types.CfAppResource `json:"app"` }
type ServiceProviderExtension ¶
type ServiceProviderExtension interface { // Appends service to the catalog managed by this broker InsertToCatalog(*ServiceExtension) error // Updates service in the catalog managed by this broker UpdateCatalog(*ServiceExtension) error // Deletes service description from the catalog DeleteFromCatalog(serviceID string) error // GetCatalog returns the catalog of services managed by this broker GetCatalog() (*CatalogExtension, error) // CreateService creates a service instance for specific plan CreateService(r *cf.ServiceCreationRequest) (*cf.ServiceCreationResponse, error) // DeleteService deletes previously created service instance DeleteService(instanceID string) error // BindService binds to specified service instance and // Returns credentials necessary to establish connection to that service BindService(r *cf.ServiceBindingRequest) (*types.ServiceBindingResponse, error) }
ServiceProviderExtension beside standard cf.ServiceProvider introduces additional API endpoints.
Click to show internal directories.
Click to hide internal directories.