broker

package
v0.0.0-...-310a06b Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PksServiceBroker

type PksServiceBroker struct {
	Logger      lager.Logger
	ServiceID   string
	ServiceName string
	// contains filtered or unexported fields
}

PksServiceBroker contains values passed in from configuration necessary for broker's work.

func NewPksServiceBroker

func NewPksServiceBroker(serviceID string, serviceName string, registryConfig *config.RegistryConfig, cluster k8s.Cluster, myHelmClient my_helm.MyHelmClient, myChart *my_helm.MyChart, logger lager.Logger) *PksServiceBroker

func (*PksServiceBroker) Bind

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

func (*PksServiceBroker) Deprovision

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

func (*PksServiceBroker) LastOperation

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

LastOperation is for async

func (*PksServiceBroker) Provision

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

func (*PksServiceBroker) Services

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

func (*PksServiceBroker) Unbind

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

Unbind reverses bind

func (*PksServiceBroker) Update

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

Update is perhaps not needed for MVP. Its purpose may be for changing plans, so if we only have a single default plan it is out of scope.

Jump to

Keyboard shortcuts

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