sbproxy

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: Apache-2.0 Imports: 25 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// BrokerPathParam for the broker id
	BrokerPathParam = "brokerID"

	// APIPrefix for the Proxy OSB API
	APIPrefix = "/v1/osb"

	// Path for the Proxy OSB API
	Path = APIPrefix + "/{" + BrokerPathParam + "}"
)

Variables

This section is empty.

Functions

func AddPFlags added in v0.1.1

func AddPFlags(set *pflag.FlagSet)

AddPFlags adds the SM config flags to the provided flag set

func DefaultEnv

func DefaultEnv(additionalPFlags ...func(set *pflag.FlagSet)) env.Environment

DefaultEnv creates a default environment that can be used to boot up a Service Broker proxy

Types

type SMProxy

type SMProxy struct {
	*server.Server
	// contains filtered or unexported fields
}

SMProxy struct

func (*SMProxy) Run

func (p *SMProxy) Run()

Run starts the proxy

type SMProxyBuilder

type SMProxyBuilder struct {
	*web.API
	// contains filtered or unexported fields
}

SMProxyBuilder type is an extension point that allows adding additional filters, plugins and controllers before running SMProxy.

func New

func New(ctx context.Context, cancel context.CancelFunc, env env.Environment, platformClient platform.Client) *SMProxyBuilder

New creates service broker proxy that is configured from the provided environment and platform client.

func (*SMProxyBuilder) Build

func (smb *SMProxyBuilder) Build() *SMProxy

Build builds the Service Manager

type Settings added in v0.1.1

type Settings struct {
	Server    *server.Settings                `mapstructure:"server"`
	Log       *log.Settings                   `mapstructure:"log"`
	Sm        *sm.Settings                    `mapstructure:"sm"`
	Reconcile *reconcile.Settings             `mapstructure:"app"`
	Producer  *notifications.ProducerSettings `mapstructure:"producer"`
}

Settings type holds all config properties for the sbproxy

func DefaultSettings added in v0.1.1

func DefaultSettings() *Settings

DefaultSettings returns default value for the proxy settings

func NewSettings added in v0.1.1

func NewSettings(env env.Environment) (*Settings, error)

NewSettings creates new proxy settings from the specified environment

func (*Settings) Validate added in v0.1.1

func (c *Settings) Validate() error

Validate validates that the configuration contains all mandatory properties

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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