fakes

package
v0.0.0-...-9b3b468 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2015 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCredentials

type FakeCredentials struct {
	Host     string `json:"host"`
	Port     int    `json:"port"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type FakeServiceBroker

type FakeServiceBroker struct {
	ServiceDetails brokerapi.ServiceDetails

	ProvisionedInstanceIDs   []string
	DeprovisionedInstanceIDs []string

	BoundInstanceIDs []string
	BoundBindingIDs  []string

	InstanceLimit int

	ProvisionError   error
	BindError        error
	DeprovisionError error

	BrokerCalled bool
}

func (*FakeServiceBroker) Bind

func (fakeBroker *FakeServiceBroker) Bind(instanceID, bindingID string) (interface{}, error)

func (*FakeServiceBroker) Deprovision

func (fakeBroker *FakeServiceBroker) Deprovision(instanceID string) error

func (*FakeServiceBroker) Provision

func (fakeBroker *FakeServiceBroker) Provision(instanceID string, serviceDetails brokerapi.ServiceDetails) error

func (*FakeServiceBroker) Services

func (fakeBroker *FakeServiceBroker) Services() []brokerapi.Service

func (*FakeServiceBroker) Unbind

func (fakeBroker *FakeServiceBroker) Unbind(instanceID, bindingID string) error

Jump to

Keyboard shortcuts

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