osb

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2018 License: Apache-2.0, BSD-3-Clause, MIT Imports: 16 Imported by: 0

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

type StorageBrokerFetcher struct {
	BrokerStorage storage.Broker
	Encrypter     security.Encrypter
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL