Documentation ¶
Index ¶
- type ServiceBroker
- func (broker *ServiceBroker) Bind(ctx context.Context, instanceID string, bindID string, ...) (brokerapi.Binding, error)
- func (broker *ServiceBroker) Deprovision(ctx context.Context, instanceID string, details brokerapi.DeprovisionDetails, ...) (brokerapi.DeprovisionServiceSpec, error)
- func (broker *ServiceBroker) LastOperation(ctx context.Context, instanceID string, operationData string) (brokerapi.LastOperation, error)
- func (broker *ServiceBroker) ProcessPlans() error
- func (broker *ServiceBroker) Provision(ctx context.Context, instanceID string, details brokerapi.ProvisionDetails, ...) (brokerapi.ProvisionedServiceSpec, error)
- func (broker *ServiceBroker) Services(ctx context.Context) []brokerapi.Service
- func (broker *ServiceBroker) Unbind(ctx context.Context, instanceID string, bindID string, ...) error
- func (broker *ServiceBroker) Update(ctx context.Context, instanceID string, details brokerapi.UpdateDetails, ...) (brokerapi.UpdateServiceSpec, error)
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