osb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 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 BrokerRoundTripper) web.Controller

NewController returns new OSB controller

Types

type BrokerRoundTripper

type BrokerRoundTripper interface {
	http.RoundTripper

	Broker(ctx context.Context, brokerID string) (*types.Broker, error)
}

BrokerRoundTripper is implemented by OSB handler providers

type BrokerTransport

type BrokerTransport struct {
	BrokerStorage storage.Broker
	Encrypter     security.Encrypter
	Tr            http.RoundTripper
}

BrokerTransport provides handler for the Service Manager OSB business logic

func (*BrokerTransport) Broker

func (bt *BrokerTransport) Broker(ctx context.Context, brokerID string) (*types.Broker, error)

Broker obtains the broker coordinates (auth and URL)

func (*BrokerTransport) RoundTrip

func (bt *BrokerTransport) RoundTrip(request *http.Request) (*http.Response, error)

RoundTrip implements http.RoundTripper and invokes the RoundTripper delegate

Jump to

Keyboard shortcuts

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