Documentation ¶
Overview ¶
Package osb contains logic for building the Service Manager OSB API
Index ¶
Constants ¶
View Source
const (
// BrokerIDPathParam is a service broker ID path parameter
BrokerIDPathParam = "brokerID"
)
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
func NewController(brokerFetcher BrokerFetcher, catalogFetcher CatalogFetcher, _ http.RoundTripper) web.Controller
NewController returns new OSB controller
Types ¶
type BrokerFetcher ¶ added in v0.1.1
type BrokerFetcher interface {
FetchBroker(ctx context.Context, brokerID string) (*types.Broker, error)
}
BrokerFetcher is implemented by OSB proxy providers
type CatalogFetcher ¶ added in v0.1.6
type CatalogFetcher interface {
FetchCatalog(ctx context.Context, brokerID string) (*types.ServiceOfferings, error)
}
CatalogFetcher is implemented by OSB catalog providers
type StorageBrokerFetcher ¶ added in v0.1.1
StorageBrokerFetcher provides logic for fetching the broker coordinates from the storage
func (*StorageBrokerFetcher) FetchBroker ¶ added in v0.1.1
func (sbf *StorageBrokerFetcher) FetchBroker(ctx context.Context, brokerID string) (*types.Broker, error)
FetchBroker obtains the broker coordinates (auth and URL)
type StorageCatalogFetcher ¶ added in v0.1.6
type StorageCatalogFetcher struct {
CatalogStorage storage.ServiceOffering
}
StorageCatalogFetcher fetches the broker's catalog from SM DB
func (*StorageCatalogFetcher) FetchCatalog ¶ added in v0.1.6
func (scf *StorageCatalogFetcher) FetchCatalog(ctx context.Context, brokerID string) (*types.ServiceOfferings, error)
FetchCatalog implements osb.CatalogFetcher and fetches the catalog for the broker with the specified broker id from SM DB
Click to show internal directories.
Click to hide internal directories.