fakes

package
v4.2.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoFakeServiceBroker

func (*AutoFakeServiceBroker) Bind

func (fake *AutoFakeServiceBroker) Bind(arg1 context.Context, arg2 string, arg3 string, arg4 brokerapi.BindDetails, arg5 bool) (brokerapi.Binding, error)

func (*AutoFakeServiceBroker) BindArgsForCall

func (*AutoFakeServiceBroker) BindCallCount

func (fake *AutoFakeServiceBroker) BindCallCount() int

func (*AutoFakeServiceBroker) BindCalls

func (*AutoFakeServiceBroker) BindReturns

func (fake *AutoFakeServiceBroker) BindReturns(result1 brokerapi.Binding, result2 error)

func (*AutoFakeServiceBroker) BindReturnsOnCall

func (fake *AutoFakeServiceBroker) BindReturnsOnCall(i int, result1 brokerapi.Binding, result2 error)

func (*AutoFakeServiceBroker) Deprovision

func (*AutoFakeServiceBroker) DeprovisionArgsForCall

func (fake *AutoFakeServiceBroker) DeprovisionArgsForCall(i int) (context.Context, string, brokerapi.DeprovisionDetails, bool)

func (*AutoFakeServiceBroker) DeprovisionCallCount

func (fake *AutoFakeServiceBroker) DeprovisionCallCount() int

func (*AutoFakeServiceBroker) DeprovisionCalls

func (*AutoFakeServiceBroker) DeprovisionReturns

func (fake *AutoFakeServiceBroker) DeprovisionReturns(result1 brokerapi.DeprovisionServiceSpec, result2 error)

func (*AutoFakeServiceBroker) DeprovisionReturnsOnCall

func (fake *AutoFakeServiceBroker) DeprovisionReturnsOnCall(i int, result1 brokerapi.DeprovisionServiceSpec, result2 error)

func (*AutoFakeServiceBroker) GetBinding

func (fake *AutoFakeServiceBroker) GetBinding(arg1 context.Context, arg2 string, arg3 string) (brokerapi.GetBindingSpec, error)

func (*AutoFakeServiceBroker) GetBindingArgsForCall

func (fake *AutoFakeServiceBroker) GetBindingArgsForCall(i int) (context.Context, string, string)

func (*AutoFakeServiceBroker) GetBindingCallCount

func (fake *AutoFakeServiceBroker) GetBindingCallCount() int

func (*AutoFakeServiceBroker) GetBindingCalls

func (fake *AutoFakeServiceBroker) GetBindingCalls(stub func(context.Context, string, string) (brokerapi.GetBindingSpec, error))

func (*AutoFakeServiceBroker) GetBindingReturns

func (fake *AutoFakeServiceBroker) GetBindingReturns(result1 brokerapi.GetBindingSpec, result2 error)

func (*AutoFakeServiceBroker) GetBindingReturnsOnCall

func (fake *AutoFakeServiceBroker) GetBindingReturnsOnCall(i int, result1 brokerapi.GetBindingSpec, result2 error)

func (*AutoFakeServiceBroker) GetInstance

func (*AutoFakeServiceBroker) GetInstanceArgsForCall

func (fake *AutoFakeServiceBroker) GetInstanceArgsForCall(i int) (context.Context, string)

func (*AutoFakeServiceBroker) GetInstanceCallCount

func (fake *AutoFakeServiceBroker) GetInstanceCallCount() int

func (*AutoFakeServiceBroker) GetInstanceCalls

func (fake *AutoFakeServiceBroker) GetInstanceCalls(stub func(context.Context, string) (brokerapi.GetInstanceDetailsSpec, error))

func (*AutoFakeServiceBroker) GetInstanceReturns

func (fake *AutoFakeServiceBroker) GetInstanceReturns(result1 brokerapi.GetInstanceDetailsSpec, result2 error)

func (*AutoFakeServiceBroker) GetInstanceReturnsOnCall

func (fake *AutoFakeServiceBroker) GetInstanceReturnsOnCall(i int, result1 brokerapi.GetInstanceDetailsSpec, result2 error)

func (*AutoFakeServiceBroker) Invocations

func (fake *AutoFakeServiceBroker) Invocations() map[string][][]interface{}

func (*AutoFakeServiceBroker) LastBindingOperation

func (fake *AutoFakeServiceBroker) LastBindingOperation(arg1 context.Context, arg2 string, arg3 string, arg4 brokerapi.PollDetails) (brokerapi.LastOperation, error)

func (*AutoFakeServiceBroker) LastBindingOperationArgsForCall

func (fake *AutoFakeServiceBroker) LastBindingOperationArgsForCall(i int) (context.Context, string, string, brokerapi.PollDetails)

func (*AutoFakeServiceBroker) LastBindingOperationCallCount

func (fake *AutoFakeServiceBroker) LastBindingOperationCallCount() int

func (*AutoFakeServiceBroker) LastBindingOperationCalls

func (fake *AutoFakeServiceBroker) LastBindingOperationCalls(stub func(context.Context, string, string, brokerapi.PollDetails) (brokerapi.LastOperation, error))

func (*AutoFakeServiceBroker) LastBindingOperationReturns

func (fake *AutoFakeServiceBroker) LastBindingOperationReturns(result1 brokerapi.LastOperation, result2 error)

func (*AutoFakeServiceBroker) LastBindingOperationReturnsOnCall

func (fake *AutoFakeServiceBroker) LastBindingOperationReturnsOnCall(i int, result1 brokerapi.LastOperation, result2 error)

func (*AutoFakeServiceBroker) LastOperation

func (*AutoFakeServiceBroker) LastOperationArgsForCall

func (fake *AutoFakeServiceBroker) LastOperationArgsForCall(i int) (context.Context, string, brokerapi.PollDetails)

func (*AutoFakeServiceBroker) LastOperationCallCount

func (fake *AutoFakeServiceBroker) LastOperationCallCount() int

func (*AutoFakeServiceBroker) LastOperationCalls

func (fake *AutoFakeServiceBroker) LastOperationCalls(stub func(context.Context, string, brokerapi.PollDetails) (brokerapi.LastOperation, error))

func (*AutoFakeServiceBroker) LastOperationReturns

func (fake *AutoFakeServiceBroker) LastOperationReturns(result1 brokerapi.LastOperation, result2 error)

func (*AutoFakeServiceBroker) LastOperationReturnsOnCall

func (fake *AutoFakeServiceBroker) LastOperationReturnsOnCall(i int, result1 brokerapi.LastOperation, result2 error)

func (*AutoFakeServiceBroker) Provision

func (*AutoFakeServiceBroker) ProvisionArgsForCall

func (fake *AutoFakeServiceBroker) ProvisionArgsForCall(i int) (context.Context, string, brokerapi.ProvisionDetails, bool)

func (*AutoFakeServiceBroker) ProvisionCallCount

func (fake *AutoFakeServiceBroker) ProvisionCallCount() int

func (*AutoFakeServiceBroker) ProvisionCalls

func (*AutoFakeServiceBroker) ProvisionReturns

func (fake *AutoFakeServiceBroker) ProvisionReturns(result1 brokerapi.ProvisionedServiceSpec, result2 error)

func (*AutoFakeServiceBroker) ProvisionReturnsOnCall

func (fake *AutoFakeServiceBroker) ProvisionReturnsOnCall(i int, result1 brokerapi.ProvisionedServiceSpec, result2 error)

func (*AutoFakeServiceBroker) Services

func (fake *AutoFakeServiceBroker) Services(arg1 context.Context) ([]brokerapi.Service, error)

func (*AutoFakeServiceBroker) ServicesArgsForCall

func (fake *AutoFakeServiceBroker) ServicesArgsForCall(i int) context.Context

func (*AutoFakeServiceBroker) ServicesCallCount

func (fake *AutoFakeServiceBroker) ServicesCallCount() int

func (*AutoFakeServiceBroker) ServicesCalls

func (fake *AutoFakeServiceBroker) ServicesCalls(stub func(context.Context) ([]brokerapi.Service, error))

func (*AutoFakeServiceBroker) ServicesReturns

func (fake *AutoFakeServiceBroker) ServicesReturns(result1 []brokerapi.Service, result2 error)

func (*AutoFakeServiceBroker) ServicesReturnsOnCall

func (fake *AutoFakeServiceBroker) ServicesReturnsOnCall(i int, result1 []brokerapi.Service, result2 error)

func (*AutoFakeServiceBroker) Unbind

func (fake *AutoFakeServiceBroker) Unbind(arg1 context.Context, arg2 string, arg3 string, arg4 brokerapi.UnbindDetails, arg5 bool) (brokerapi.UnbindSpec, error)

func (*AutoFakeServiceBroker) UnbindArgsForCall

func (*AutoFakeServiceBroker) UnbindCallCount

func (fake *AutoFakeServiceBroker) UnbindCallCount() int

func (*AutoFakeServiceBroker) UnbindCalls

func (*AutoFakeServiceBroker) UnbindReturns

func (fake *AutoFakeServiceBroker) UnbindReturns(result1 brokerapi.UnbindSpec, result2 error)

func (*AutoFakeServiceBroker) UnbindReturnsOnCall

func (fake *AutoFakeServiceBroker) UnbindReturnsOnCall(i int, result1 brokerapi.UnbindSpec, result2 error)

func (*AutoFakeServiceBroker) Update

func (*AutoFakeServiceBroker) UpdateArgsForCall

func (fake *AutoFakeServiceBroker) UpdateArgsForCall(i int) (context.Context, string, brokerapi.UpdateDetails, bool)

func (*AutoFakeServiceBroker) UpdateCallCount

func (fake *AutoFakeServiceBroker) UpdateCallCount() int

func (*AutoFakeServiceBroker) UpdateCalls

func (*AutoFakeServiceBroker) UpdateReturns

func (fake *AutoFakeServiceBroker) UpdateReturns(result1 brokerapi.UpdateServiceSpec, result2 error)

func (*AutoFakeServiceBroker) UpdateReturnsOnCall

func (fake *AutoFakeServiceBroker) UpdateReturnsOnCall(i int, result1 brokerapi.UpdateServiceSpec, result2 error)

type FakeAsyncOnlyServiceBroker

type FakeAsyncOnlyServiceBroker struct {
	FakeServiceBroker
}

func (*FakeAsyncOnlyServiceBroker) Deprovision

func (fakeBroker *FakeAsyncOnlyServiceBroker) Deprovision(context context.Context, instanceID string, details brokerapi.DeprovisionDetails, asyncAllowed bool) (brokerapi.DeprovisionServiceSpec, error)

func (*FakeAsyncOnlyServiceBroker) Provision

func (fakeBroker *FakeAsyncOnlyServiceBroker) Provision(context context.Context, instanceID string, details brokerapi.ProvisionDetails, asyncAllowed bool) (brokerapi.ProvisionedServiceSpec, error)

type FakeAsyncServiceBroker

type FakeAsyncServiceBroker struct {
	FakeServiceBroker
	ShouldProvisionAsync bool
}

func (*FakeAsyncServiceBroker) Bind

func (fakeBroker *FakeAsyncServiceBroker) Bind(context context.Context, instanceID, bindingID string, details brokerapi.BindDetails, asyncAllowed bool) (brokerapi.Binding, error)

func (*FakeAsyncServiceBroker) Deprovision

func (fakeBroker *FakeAsyncServiceBroker) Deprovision(context context.Context, instanceID string, details brokerapi.DeprovisionDetails, asyncAllowed bool) (brokerapi.DeprovisionServiceSpec, error)

func (*FakeAsyncServiceBroker) Provision

func (fakeBroker *FakeAsyncServiceBroker) Provision(context context.Context, instanceID string, details brokerapi.ProvisionDetails, asyncAllowed bool) (brokerapi.ProvisionedServiceSpec, error)

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
	UpdateDetails      brokerapi.UpdateDetails
	DeprovisionDetails brokerapi.DeprovisionDetails

	ProvisionedInstanceIDs   []string
	DeprovisionedInstanceIDs []string
	UpdatedInstanceIDs       []string
	GetInstanceIDs           []string

	BoundInstanceIDs    []string
	BoundBindingIDs     []string
	BoundBindingDetails brokerapi.BindDetails
	SyslogDrainURL      string
	RouteServiceURL     string
	VolumeMounts        []brokerapi.VolumeMount

	UnbindingDetails brokerapi.UnbindDetails

	InstanceLimit int

	ProvisionError     error
	BindError          error
	UnbindError        error
	DeprovisionError   error
	LastOperationError error
	UpdateError        error
	GetInstanceError   error
	GetBindingError    error

	BrokerCalled             bool
	LastOperationState       brokerapi.LastOperationState
	LastOperationDescription string

	AsyncAllowed bool

	ShouldReturnAsync     bool
	DashboardURL          string
	OperationDataToReturn string

	LastOperationInstanceID string
	LastOperationData       string

	ReceivedContext bool

	ServiceID string
	PlanID    string
}

func (*FakeServiceBroker) Bind

func (fakeBroker *FakeServiceBroker) Bind(context context.Context, instanceID, bindingID string, details brokerapi.BindDetails, asyncAllowed bool) (brokerapi.Binding, error)

func (*FakeServiceBroker) Deprovision

func (fakeBroker *FakeServiceBroker) Deprovision(context context.Context, instanceID string, details brokerapi.DeprovisionDetails, asyncAllowed bool) (brokerapi.DeprovisionServiceSpec, error)

func (*FakeServiceBroker) GetBinding

func (fakeBroker *FakeServiceBroker) GetBinding(context context.Context, instanceID, bindingID string) (brokerapi.GetBindingSpec, error)

func (*FakeServiceBroker) GetInstance

func (fakeBroker *FakeServiceBroker) GetInstance(context context.Context, instanceID string) (brokerapi.GetInstanceDetailsSpec, error)

func (*FakeServiceBroker) LastBindingOperation

func (fakeBroker *FakeServiceBroker) LastBindingOperation(context context.Context, instanceID, bindingID string, details brokerapi.PollDetails) (brokerapi.LastOperation, error)

func (*FakeServiceBroker) LastOperation

func (fakeBroker *FakeServiceBroker) LastOperation(context context.Context, instanceID string, details brokerapi.PollDetails) (brokerapi.LastOperation, error)

func (*FakeServiceBroker) Provision

func (fakeBroker *FakeServiceBroker) Provision(context context.Context, instanceID string, details brokerapi.ProvisionDetails, asyncAllowed bool) (brokerapi.ProvisionedServiceSpec, error)

func (*FakeServiceBroker) Services

func (fakeBroker *FakeServiceBroker) Services(ctx context.Context) ([]brokerapi.Service, error)

func (*FakeServiceBroker) Unbind

func (fakeBroker *FakeServiceBroker) Unbind(context context.Context, instanceID, bindingID string, details brokerapi.UnbindDetails, asyncAllowed bool) (brokerapi.UnbindSpec, error)

func (*FakeServiceBroker) Update

func (fakeBroker *FakeServiceBroker) Update(context context.Context, instanceID string, details brokerapi.UpdateDetails, asyncAllowed bool) (brokerapi.UpdateServiceSpec, error)

Jump to

Keyboard shortcuts

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