fakes

package
Version: v0.0.0-...-6c5c0f3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 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 {
	ProvisionDetails brokerapi.ProvisionDetails

	ProvisionedInstanceIDs   []string
	DeprovisionedInstanceIDs []string

	BoundInstanceIDs    []string
	BoundBindingIDs     []string
	BoundBindingDetails brokerapi.BindDetails

	InstanceLimit int

	ProvisionError   error
	BindError        error
	DeprovisionError error

	BrokerCalled bool
}

func (*FakeServiceBroker) Bind

func (fakeBroker *FakeServiceBroker) Bind(instanceID, bindingID string, details brokerapi.BindDetails) (interface{}, error)

func (*FakeServiceBroker) Deprovision

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

func (*FakeServiceBroker) Provision

func (fakeBroker *FakeServiceBroker) Provision(instanceID string, details brokerapi.ProvisionDetails) 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL