osb

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: Apache-2.0, BSD-3-Clause, MIT Imports: 15 Imported by: 1

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(fetcher BrokerFetcher, _ 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 handler 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)

Jump to

Keyboard shortcuts

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