osb

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: Apache-2.0, BSD-3-Clause, MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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