servicebroker

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceBroker

type ServiceBroker struct {
	Config *config.ServiceBrokerConfig

	Handler http.Handler
	// contains filtered or unexported fields
}

ServiceBroker for F5 services

func NewServiceBroker

func NewServiceBroker(
	c *config.Config,
	logger cfLogger.Logger,
	router f5router.Router,
) (*ServiceBroker, error)

NewServiceBroker returns an http.Handler for a service brokers routes

func (*ServiceBroker) Bind

func (broker *ServiceBroker) Bind(
	ctx context.Context,
	instanceID string,
	bindID string,
	details brokerapi.BindDetails,
) (brokerapi.Binding, error)

Bind apply bigip configurations to bigip objects based on requested bind route

func (*ServiceBroker) Deprovision

func (broker *ServiceBroker) Deprovision(
	ctx context.Context,
	instanceID string,
	details brokerapi.DeprovisionDetails,
	asyncAllowed bool,
) (brokerapi.DeprovisionServiceSpec, error)

Deprovision stubbed since the bigip service will not be deprovisioned for now

func (*ServiceBroker) LastOperation

func (broker *ServiceBroker) LastOperation(
	ctx context.Context,
	instanceID string,
	operationData string,
) (brokerapi.LastOperation, error)

LastOperation stubbed since we do not allow for async operations

func (*ServiceBroker) ProcessPlans

func (broker *ServiceBroker) ProcessPlans() error

ProcessPlans pulls plans from the env and validates them against the schema

func (*ServiceBroker) Provision

func (broker *ServiceBroker) Provision(
	ctx context.Context,
	instanceID string,
	details brokerapi.ProvisionDetails,
	asyncAllowed bool,
) (brokerapi.ProvisionedServiceSpec, error)

Provision verify that the requested plan exists for the bigip service

func (*ServiceBroker) Services

func (broker *ServiceBroker) Services(ctx context.Context) []brokerapi.Service

Services that are available for provisioning

func (*ServiceBroker) Unbind

func (broker *ServiceBroker) Unbind(
	ctx context.Context,
	instanceID string,
	bindID string,
	details brokerapi.UnbindDetails,
) error

Unbind remove applied bigip configurations and bigip objects based on requested unbind route

func (*ServiceBroker) Update

func (broker *ServiceBroker) Update(
	ctx context.Context,
	instanceID string,
	details brokerapi.UpdateDetails,
	asyncAllowed bool,
) (brokerapi.UpdateServiceSpec, error)

Update stubbed since we do not currently have route context to apply these updates

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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