fakes

package
v11.0.14 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 7 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 domain.BindDetails, arg5 bool) (domain.Binding, error)

func (*AutoFakeServiceBroker) BindArgsForCall

func (fake *AutoFakeServiceBroker) BindArgsForCall(i int) (context.Context, string, string, domain.BindDetails, bool)

func (*AutoFakeServiceBroker) BindCallCount

func (fake *AutoFakeServiceBroker) BindCallCount() int

func (*AutoFakeServiceBroker) BindCalls

func (*AutoFakeServiceBroker) BindReturns

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

func (*AutoFakeServiceBroker) BindReturnsOnCall

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

func (*AutoFakeServiceBroker) Deprovision

func (*AutoFakeServiceBroker) DeprovisionArgsForCall

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

func (*AutoFakeServiceBroker) DeprovisionCallCount

func (fake *AutoFakeServiceBroker) DeprovisionCallCount() int

func (*AutoFakeServiceBroker) DeprovisionCalls

func (*AutoFakeServiceBroker) DeprovisionReturns

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

func (*AutoFakeServiceBroker) DeprovisionReturnsOnCall

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

func (*AutoFakeServiceBroker) GetBinding

func (*AutoFakeServiceBroker) GetBindingArgsForCall

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

func (*AutoFakeServiceBroker) GetBindingCallCount

func (fake *AutoFakeServiceBroker) GetBindingCallCount() int

func (*AutoFakeServiceBroker) GetBindingCalls

func (*AutoFakeServiceBroker) GetBindingReturns

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

func (*AutoFakeServiceBroker) GetBindingReturnsOnCall

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

func (*AutoFakeServiceBroker) GetInstance

func (*AutoFakeServiceBroker) GetInstanceArgsForCall

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

func (*AutoFakeServiceBroker) GetInstanceCallCount

func (fake *AutoFakeServiceBroker) GetInstanceCallCount() int

func (*AutoFakeServiceBroker) GetInstanceCalls

func (*AutoFakeServiceBroker) GetInstanceReturns

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

func (*AutoFakeServiceBroker) GetInstanceReturnsOnCall

func (fake *AutoFakeServiceBroker) GetInstanceReturnsOnCall(i int, result1 domain.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 domain.PollDetails) (domain.LastOperation, error)

func (*AutoFakeServiceBroker) LastBindingOperationArgsForCall

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

func (*AutoFakeServiceBroker) LastBindingOperationCallCount

func (fake *AutoFakeServiceBroker) LastBindingOperationCallCount() int

func (*AutoFakeServiceBroker) LastBindingOperationCalls

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

func (*AutoFakeServiceBroker) LastBindingOperationReturns

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

func (*AutoFakeServiceBroker) LastBindingOperationReturnsOnCall

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

func (*AutoFakeServiceBroker) LastOperation

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

func (*AutoFakeServiceBroker) LastOperationArgsForCall

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

func (*AutoFakeServiceBroker) LastOperationCallCount

func (fake *AutoFakeServiceBroker) LastOperationCallCount() int

func (*AutoFakeServiceBroker) LastOperationCalls

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

func (*AutoFakeServiceBroker) LastOperationReturns

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

func (*AutoFakeServiceBroker) LastOperationReturnsOnCall

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

func (*AutoFakeServiceBroker) Provision

func (*AutoFakeServiceBroker) ProvisionArgsForCall

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

func (*AutoFakeServiceBroker) ProvisionCallCount

func (fake *AutoFakeServiceBroker) ProvisionCallCount() int

func (*AutoFakeServiceBroker) ProvisionCalls

func (*AutoFakeServiceBroker) ProvisionReturns

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

func (*AutoFakeServiceBroker) ProvisionReturnsOnCall

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

func (*AutoFakeServiceBroker) Services

func (fake *AutoFakeServiceBroker) Services(arg1 context.Context) ([]domain.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) ([]domain.Service, error))

func (*AutoFakeServiceBroker) ServicesReturns

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

func (*AutoFakeServiceBroker) ServicesReturnsOnCall

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

func (*AutoFakeServiceBroker) Unbind

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

func (*AutoFakeServiceBroker) UnbindArgsForCall

func (fake *AutoFakeServiceBroker) UnbindArgsForCall(i int) (context.Context, string, string, domain.UnbindDetails, bool)

func (*AutoFakeServiceBroker) UnbindCallCount

func (fake *AutoFakeServiceBroker) UnbindCallCount() int

func (*AutoFakeServiceBroker) UnbindCalls

func (*AutoFakeServiceBroker) UnbindReturns

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

func (*AutoFakeServiceBroker) UnbindReturnsOnCall

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

func (*AutoFakeServiceBroker) Update

func (*AutoFakeServiceBroker) UpdateArgsForCall

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

func (*AutoFakeServiceBroker) UpdateCallCount

func (fake *AutoFakeServiceBroker) UpdateCallCount() int

func (*AutoFakeServiceBroker) UpdateCalls

func (*AutoFakeServiceBroker) UpdateReturns

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

func (*AutoFakeServiceBroker) UpdateReturnsOnCall

func (fake *AutoFakeServiceBroker) UpdateReturnsOnCall(i int, result1 domain.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 FakeBrokerContextKeyType

type FakeBrokerContextKeyType string
const (
	FakeBrokerContextDataKey  FakeBrokerContextKeyType = "test_context"
	FakeBrokerContextFailsKey FakeBrokerContextKeyType = "fails"
)

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 {
	ProvisionedInstances map[string]brokerapi.ProvisionDetails

	InstanceFetchDetails domain.FetchInstanceDetails
	UpdateDetails        brokerapi.UpdateDetails
	DeprovisionDetails   brokerapi.DeprovisionDetails

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

	BoundInstanceIDs []string
	BoundBindings    map[string]brokerapi.BindDetails
	SyslogDrainURL   string
	RouteServiceURL  string
	BackupAgentURL   string
	VolumeMounts     []brokerapi.VolumeMount

	BindingFetchDetails domain.FetchBindingDetails
	UnbindingDetails    brokerapi.UnbindDetails

	InstanceLimit int

	ProvisionError            error
	BindError                 error
	UnbindError               error
	DeprovisionError          error
	LastOperationError        error
	LastBindingOperationError 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, details domain.FetchBindingDetails) (brokerapi.GetBindingSpec, error)

func (*FakeServiceBroker) GetInstance

func (fakeBroker *FakeServiceBroker) GetInstance(context context.Context, instanceID string, details domain.FetchInstanceDetails) (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