Documentation ¶
Overview ¶
Package testdrive is used in testing and local development to take the broker for a test drive
Index ¶
- type Broker
- func (b *Broker) CreateBinding(s ServiceInstance, opts ...CreateBindingOption) (ServiceBinding, error)
- func (b *Broker) DeleteBinding(s ServiceInstance, serviceBindingGUID string) error
- func (b *Broker) Deprovision(s ServiceInstance) error
- func (b *Broker) LastOperation(serviceInstanceGUID string) (domain.LastOperation, error)
- func (b *Broker) LastOperationFinalState(serviceInstanceGUID string) (domain.LastOperationState, error)
- func (b *Broker) LastOperationFinalValue(serviceInstanceGUID string) (domain.LastOperation, error)
- func (b *Broker) Provision(serviceOfferingGUID, servicePlanGUID string, opts ...ProvisionOption) (ServiceInstance, error)
- func (b *Broker) Stop() error
- func (b *Broker) Terminate() error
- func (b *Broker) UpdateService(s ServiceInstance, opts ...UpdateOption) error
- func (b *Broker) UpgradeService(s ServiceInstance, version string, opts ...UpgradeOption) error
- type CreateBindingOption
- type ProvisionOption
- type ServiceBinding
- type ServiceInstance
- type StartBrokerOption
- type UnexpectedStatusError
- type UpdateOption
- type UpgradeOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct { Database string Port int Client *client.Client Username string Password string Stdout *bytes.Buffer Stderr *bytes.Buffer // contains filtered or unexported fields }
func StartBroker ¶
func StartBroker(csbPath, bpk, db string, opts ...StartBrokerOption) (*Broker, error)
func (*Broker) CreateBinding ¶
func (b *Broker) CreateBinding(s ServiceInstance, opts ...CreateBindingOption) (ServiceBinding, error)
func (*Broker) DeleteBinding ¶
func (b *Broker) DeleteBinding(s ServiceInstance, serviceBindingGUID string) error
func (*Broker) Deprovision ¶
func (b *Broker) Deprovision(s ServiceInstance) error
func (*Broker) LastOperation ¶
func (b *Broker) LastOperation(serviceInstanceGUID string) (domain.LastOperation, error)
func (*Broker) LastOperationFinalState ¶
func (b *Broker) LastOperationFinalState(serviceInstanceGUID string) (domain.LastOperationState, error)
func (*Broker) LastOperationFinalValue ¶
func (b *Broker) LastOperationFinalValue(serviceInstanceGUID string) (domain.LastOperation, error)
func (*Broker) Provision ¶
func (b *Broker) Provision(serviceOfferingGUID, servicePlanGUID string, opts ...ProvisionOption) (ServiceInstance, error)
func (*Broker) UpdateService ¶
func (b *Broker) UpdateService(s ServiceInstance, opts ...UpdateOption) error
func (*Broker) UpgradeService ¶
func (b *Broker) UpgradeService(s ServiceInstance, version string, opts ...UpgradeOption) error
type CreateBindingOption ¶
type CreateBindingOption func(*createBindingConfig) error
func WithBindingGUID ¶
func WithBindingGUID(guid string) CreateBindingOption
func WithBindingParams ¶
func WithBindingParams(params any) CreateBindingOption
type ProvisionOption ¶
type ProvisionOption func(*provisionConfig) error
func WithProvisionParams ¶
func WithProvisionParams(params any) ProvisionOption
func WithProvisionServiceInstanceGUID ¶
func WithProvisionServiceInstanceGUID(guid string) ProvisionOption
type ServiceBinding ¶
type ServiceInstance ¶
type StartBrokerOption ¶
type StartBrokerOption func(config *startBrokerConfig)
func WithAllowedEnvs ¶
func WithAllowedEnvs(allowed []string) StartBrokerOption
func WithEnv ¶
func WithEnv(extraEnv ...string) StartBrokerOption
func WithInvalidTLSConfig ¶ added in v2.3.0
func WithInvalidTLSConfig() StartBrokerOption
func WithOutputs ¶
func WithOutputs(stdout, stderr io.Writer) StartBrokerOption
func WithTLSConfig ¶ added in v2.3.0
func WithTLSConfig() StartBrokerOption
type UnexpectedStatusError ¶
func (*UnexpectedStatusError) Error ¶
func (u *UnexpectedStatusError) Error() string
type UpdateOption ¶
type UpdateOption func(*updateConfig) error
func WithUpdateMaintenanceInfo ¶
func WithUpdateMaintenanceInfo(m domain.MaintenanceInfo) UpdateOption
func WithUpdateParams ¶
func WithUpdateParams(params any) UpdateOption
func WithUpdatePlan ¶
func WithUpdatePlan(servicePlanGUID string) UpdateOption
func WithUpdatePreviousValues ¶
func WithUpdatePreviousValues(v domain.PreviousValues) UpdateOption
type UpgradeOption ¶
type UpgradeOption func(*upgradeConfig) error
func WithUpgradeParams ¶
func WithUpgradeParams(params any) UpgradeOption
func WithUpgradePreviousValues ¶
func WithUpgradePreviousValues(v domain.PreviousValues) UpgradeOption
Click to show internal directories.
Click to hide internal directories.