Documentation ¶
Overview ¶
Package osb contains logic for building the Service Manager OSB API
Index ¶
- Constants
- func CatalogFetcher(doRequestFunc util.DoRequestFunc, brokerAPIVersion string) func(ctx context.Context, broker *types.ServiceBroker) ([]byte, error)
- type BrokerFetcherFunc
- type Controller
- type Response
- type StoreServiceInstancePlugin
- func (ssi *StoreServiceInstancePlugin) Deprovision(request *web.Request, next web.Handler) (*web.Response, error)
- func (*StoreServiceInstancePlugin) Name() string
- func (ssi *StoreServiceInstancePlugin) PollInstance(request *web.Request, next web.Handler) (*web.Response, error)
- func (ssi *StoreServiceInstancePlugin) Provision(request *web.Request, next web.Handler) (*web.Response, error)
- func (ssi *StoreServiceInstancePlugin) UpdateService(request *web.Request, next web.Handler) (*web.Response, error)
Constants ¶
View Source
const ( // BrokerIDPathParam is a service broker ID path parameter BrokerIDPathParam = "brokerID" InstanceIDPathParam = "instance_id" )
View Source
const (
// StoreServiceInstancePluginName is the plugin name
StoreServiceInstancePluginName = "StoreServiceInstancePlugin"
)
Variables ¶
This section is empty.
Functions ¶
func CatalogFetcher ¶ added in v0.1.6
func CatalogFetcher(doRequestFunc util.DoRequestFunc, brokerAPIVersion string) func(ctx context.Context, broker *types.ServiceBroker) ([]byte, error)
CatalogFetcher creates a broker catalog fetcher that uses the provided request function to call the specified broker's catalog endpoint
Types ¶
type BrokerFetcherFunc ¶ added in v0.3.3
BrokerFetcherFunc is implemented by OSB proxy providers
type Controller ¶ added in v0.3.3
type Controller struct {
BrokerFetcher BrokerFetcherFunc
}
Controller implements api.Controller by providing OSB API logic
func (*Controller) Routes ¶ added in v0.3.3
func (c *Controller) Routes() []web.Route
Routes implements api.Controller.Routes by providing the routes for the OSB API
type StoreServiceInstancePlugin ¶ added in v0.9.0
type StoreServiceInstancePlugin struct {
Repository storage.TransactionalRepository
}
StoreServiceInstancePlugin represents a plugin that stores service instances on OSB requests
func NewStoreServiceInstancesPlugin ¶ added in v0.9.0
func NewStoreServiceInstancesPlugin(repository storage.TransactionalRepository) *StoreServiceInstancePlugin
NewStoreServiceInstancesPlugin creates a plugin that stores service instances on OSB requests
func (*StoreServiceInstancePlugin) Deprovision ¶ added in v0.9.0
func (*StoreServiceInstancePlugin) Name ¶ added in v0.9.0
func (*StoreServiceInstancePlugin) Name() string
func (*StoreServiceInstancePlugin) PollInstance ¶ added in v0.9.0
func (*StoreServiceInstancePlugin) UpdateService ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.