storagefakes

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0, BSD-3-Clause, MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

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 FakeCredentials

type FakeCredentials struct {
	GetStub func(context.Context, string) (*types.Credentials, error)
	// contains filtered or unexported fields
}

func (*FakeCredentials) Get

func (fake *FakeCredentials) Get(arg1 context.Context, arg2 string) (*types.Credentials, error)

func (*FakeCredentials) GetArgsForCall

func (fake *FakeCredentials) GetArgsForCall(i int) (context.Context, string)

func (*FakeCredentials) GetCallCount

func (fake *FakeCredentials) GetCallCount() int

func (*FakeCredentials) GetCalls added in v0.1.2

func (fake *FakeCredentials) GetCalls(stub func(context.Context, string) (*types.Credentials, error))

func (*FakeCredentials) GetReturns

func (fake *FakeCredentials) GetReturns(result1 *types.Credentials, result2 error)

func (*FakeCredentials) GetReturnsOnCall

func (fake *FakeCredentials) GetReturnsOnCall(i int, result1 *types.Credentials, result2 error)

func (*FakeCredentials) Invocations

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

type FakeServiceOffering added in v0.1.2

type FakeServiceOffering struct {
	CreateStub func(context.Context, *types.ServiceOffering) error

	DeleteStub func(context.Context, string) error

	GetStub func(context.Context, string) (*types.ServiceOffering, error)

	ListStub func(context.Context) ([]*types.ServiceOffering, error)

	ListByCatalogNameStub func(context.Context, string) ([]*types.ServiceOffering, error)

	ListWithServicePlansByBrokerIDStub func(context.Context, string) ([]*types.ServiceOffering, error)

	UpdateStub func(context.Context, *types.ServiceOffering) error
	// contains filtered or unexported fields
}

func (*FakeServiceOffering) Create added in v0.1.2

func (fake *FakeServiceOffering) Create(arg1 context.Context, arg2 *types.ServiceOffering) error

func (*FakeServiceOffering) CreateArgsForCall added in v0.1.2

func (fake *FakeServiceOffering) CreateArgsForCall(i int) (context.Context, *types.ServiceOffering)

func (*FakeServiceOffering) CreateCallCount added in v0.1.2

func (fake *FakeServiceOffering) CreateCallCount() int

func (*FakeServiceOffering) CreateCalls added in v0.1.2

func (fake *FakeServiceOffering) CreateCalls(stub func(context.Context, *types.ServiceOffering) error)

func (*FakeServiceOffering) CreateReturns added in v0.1.2

func (fake *FakeServiceOffering) CreateReturns(result1 error)

func (*FakeServiceOffering) CreateReturnsOnCall added in v0.1.2

func (fake *FakeServiceOffering) CreateReturnsOnCall(i int, result1 error)

func (*FakeServiceOffering) Delete added in v0.1.2

func (fake *FakeServiceOffering) Delete(arg1 context.Context, arg2 string) error

func (*FakeServiceOffering) DeleteArgsForCall added in v0.1.2

func (fake *FakeServiceOffering) DeleteArgsForCall(i int) (context.Context, string)

func (*FakeServiceOffering) DeleteCallCount added in v0.1.2

func (fake *FakeServiceOffering) DeleteCallCount() int

func (*FakeServiceOffering) DeleteCalls added in v0.1.2

func (fake *FakeServiceOffering) DeleteCalls(stub func(context.Context, string) error)

func (*FakeServiceOffering) DeleteReturns added in v0.1.2

func (fake *FakeServiceOffering) DeleteReturns(result1 error)

func (*FakeServiceOffering) DeleteReturnsOnCall added in v0.1.2

func (fake *FakeServiceOffering) DeleteReturnsOnCall(i int, result1 error)

func (*FakeServiceOffering) Get added in v0.1.2

func (*FakeServiceOffering) GetArgsForCall added in v0.1.2

func (fake *FakeServiceOffering) GetArgsForCall(i int) (context.Context, string)

func (*FakeServiceOffering) GetCallCount added in v0.1.2

func (fake *FakeServiceOffering) GetCallCount() int

func (*FakeServiceOffering) GetCalls added in v0.1.2

func (fake *FakeServiceOffering) GetCalls(stub func(context.Context, string) (*types.ServiceOffering, error))

func (*FakeServiceOffering) GetReturns added in v0.1.2

func (fake *FakeServiceOffering) GetReturns(result1 *types.ServiceOffering, result2 error)

func (*FakeServiceOffering) GetReturnsOnCall added in v0.1.2

func (fake *FakeServiceOffering) GetReturnsOnCall(i int, result1 *types.ServiceOffering, result2 error)

func (*FakeServiceOffering) Invocations added in v0.1.2

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

func (*FakeServiceOffering) List added in v0.1.2

func (*FakeServiceOffering) ListArgsForCall added in v0.1.2

func (fake *FakeServiceOffering) ListArgsForCall(i int) context.Context

func (*FakeServiceOffering) ListByCatalogName added in v0.1.2

func (fake *FakeServiceOffering) ListByCatalogName(arg1 context.Context, arg2 string) ([]*types.ServiceOffering, error)

func (*FakeServiceOffering) ListByCatalogNameArgsForCall added in v0.1.2

func (fake *FakeServiceOffering) ListByCatalogNameArgsForCall(i int) (context.Context, string)

func (*FakeServiceOffering) ListByCatalogNameCallCount added in v0.1.2

func (fake *FakeServiceOffering) ListByCatalogNameCallCount() int

func (*FakeServiceOffering) ListByCatalogNameCalls added in v0.1.2

func (fake *FakeServiceOffering) ListByCatalogNameCalls(stub func(context.Context, string) ([]*types.ServiceOffering, error))

func (*FakeServiceOffering) ListByCatalogNameReturns added in v0.1.2

func (fake *FakeServiceOffering) ListByCatalogNameReturns(result1 []*types.ServiceOffering, result2 error)

func (*FakeServiceOffering) ListByCatalogNameReturnsOnCall added in v0.1.2

func (fake *FakeServiceOffering) ListByCatalogNameReturnsOnCall(i int, result1 []*types.ServiceOffering, result2 error)

func (*FakeServiceOffering) ListCallCount added in v0.1.2

func (fake *FakeServiceOffering) ListCallCount() int

func (*FakeServiceOffering) ListCalls added in v0.1.2

func (fake *FakeServiceOffering) ListCalls(stub func(context.Context) ([]*types.ServiceOffering, error))

func (*FakeServiceOffering) ListReturns added in v0.1.2

func (fake *FakeServiceOffering) ListReturns(result1 []*types.ServiceOffering, result2 error)

func (*FakeServiceOffering) ListReturnsOnCall added in v0.1.2

func (fake *FakeServiceOffering) ListReturnsOnCall(i int, result1 []*types.ServiceOffering, result2 error)

func (*FakeServiceOffering) ListWithServicePlansByBrokerID added in v0.1.2

func (fake *FakeServiceOffering) ListWithServicePlansByBrokerID(arg1 context.Context, arg2 string) ([]*types.ServiceOffering, error)

func (*FakeServiceOffering) ListWithServicePlansByBrokerIDArgsForCall added in v0.1.2

func (fake *FakeServiceOffering) ListWithServicePlansByBrokerIDArgsForCall(i int) (context.Context, string)

func (*FakeServiceOffering) ListWithServicePlansByBrokerIDCallCount added in v0.1.2

func (fake *FakeServiceOffering) ListWithServicePlansByBrokerIDCallCount() int

func (*FakeServiceOffering) ListWithServicePlansByBrokerIDCalls added in v0.1.2

func (fake *FakeServiceOffering) ListWithServicePlansByBrokerIDCalls(stub func(context.Context, string) ([]*types.ServiceOffering, error))

func (*FakeServiceOffering) ListWithServicePlansByBrokerIDReturns added in v0.1.2

func (fake *FakeServiceOffering) ListWithServicePlansByBrokerIDReturns(result1 []*types.ServiceOffering, result2 error)

func (*FakeServiceOffering) ListWithServicePlansByBrokerIDReturnsOnCall added in v0.1.2

func (fake *FakeServiceOffering) ListWithServicePlansByBrokerIDReturnsOnCall(i int, result1 []*types.ServiceOffering, result2 error)

func (*FakeServiceOffering) Update added in v0.1.2

func (fake *FakeServiceOffering) Update(arg1 context.Context, arg2 *types.ServiceOffering) error

func (*FakeServiceOffering) UpdateArgsForCall added in v0.1.2

func (fake *FakeServiceOffering) UpdateArgsForCall(i int) (context.Context, *types.ServiceOffering)

func (*FakeServiceOffering) UpdateCallCount added in v0.1.2

func (fake *FakeServiceOffering) UpdateCallCount() int

func (*FakeServiceOffering) UpdateCalls added in v0.1.2

func (fake *FakeServiceOffering) UpdateCalls(stub func(context.Context, *types.ServiceOffering) error)

func (*FakeServiceOffering) UpdateReturns added in v0.1.2

func (fake *FakeServiceOffering) UpdateReturns(result1 error)

func (*FakeServiceOffering) UpdateReturnsOnCall added in v0.1.2

func (fake *FakeServiceOffering) UpdateReturnsOnCall(i int, result1 error)

type FakeStorage

type FakeStorage struct {
	BrokerStub func() storage.Broker

	CloseStub func() error

	CredentialsStub func() storage.Credentials

	InTransactionStub func(context.Context, func(ctx context.Context, storage storage.Warehouse) error) error

	OpenStub func(*storage.Settings) error

	PingStub func() error

	PlatformStub func() storage.Platform

	SecurityStub func() storage.Security

	ServiceOfferingStub func() storage.ServiceOffering

	ServicePlanStub func() storage.ServicePlan
	// contains filtered or unexported fields
}

func (*FakeStorage) Broker

func (fake *FakeStorage) Broker() storage.Broker

func (*FakeStorage) BrokerCallCount

func (fake *FakeStorage) BrokerCallCount() int

func (*FakeStorage) BrokerCalls added in v0.1.2

func (fake *FakeStorage) BrokerCalls(stub func() storage.Broker)

func (*FakeStorage) BrokerReturns

func (fake *FakeStorage) BrokerReturns(result1 storage.Broker)

func (*FakeStorage) BrokerReturnsOnCall

func (fake *FakeStorage) BrokerReturnsOnCall(i int, result1 storage.Broker)

func (*FakeStorage) Close

func (fake *FakeStorage) Close() error

func (*FakeStorage) CloseCallCount

func (fake *FakeStorage) CloseCallCount() int

func (*FakeStorage) CloseCalls added in v0.1.2

func (fake *FakeStorage) CloseCalls(stub func() error)

func (*FakeStorage) CloseReturns

func (fake *FakeStorage) CloseReturns(result1 error)

func (*FakeStorage) CloseReturnsOnCall

func (fake *FakeStorage) CloseReturnsOnCall(i int, result1 error)

func (*FakeStorage) Credentials

func (fake *FakeStorage) Credentials() storage.Credentials

func (*FakeStorage) CredentialsCallCount

func (fake *FakeStorage) CredentialsCallCount() int

func (*FakeStorage) CredentialsCalls added in v0.1.2

func (fake *FakeStorage) CredentialsCalls(stub func() storage.Credentials)

func (*FakeStorage) CredentialsReturns

func (fake *FakeStorage) CredentialsReturns(result1 storage.Credentials)

func (*FakeStorage) CredentialsReturnsOnCall

func (fake *FakeStorage) CredentialsReturnsOnCall(i int, result1 storage.Credentials)

func (*FakeStorage) InTransaction added in v0.1.2

func (fake *FakeStorage) InTransaction(arg1 context.Context, arg2 func(ctx context.Context, storage storage.Warehouse) error) error

func (*FakeStorage) InTransactionArgsForCall added in v0.1.2

func (fake *FakeStorage) InTransactionArgsForCall(i int) (context.Context, func(ctx context.Context, storage storage.Warehouse) error)

func (*FakeStorage) InTransactionCallCount added in v0.1.2

func (fake *FakeStorage) InTransactionCallCount() int

func (*FakeStorage) InTransactionCalls added in v0.1.2

func (fake *FakeStorage) InTransactionCalls(stub func(context.Context, func(ctx context.Context, storage storage.Warehouse) error) error)

func (*FakeStorage) InTransactionReturns added in v0.1.2

func (fake *FakeStorage) InTransactionReturns(result1 error)

func (*FakeStorage) InTransactionReturnsOnCall added in v0.1.2

func (fake *FakeStorage) InTransactionReturnsOnCall(i int, result1 error)

func (*FakeStorage) Invocations

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

func (*FakeStorage) Open

func (fake *FakeStorage) Open(arg1 *storage.Settings) error

func (*FakeStorage) OpenArgsForCall

func (fake *FakeStorage) OpenArgsForCall(i int) *storage.Settings

func (*FakeStorage) OpenCallCount

func (fake *FakeStorage) OpenCallCount() int

func (*FakeStorage) OpenCalls added in v0.1.2

func (fake *FakeStorage) OpenCalls(stub func(*storage.Settings) error)

func (*FakeStorage) OpenReturns

func (fake *FakeStorage) OpenReturns(result1 error)

func (*FakeStorage) OpenReturnsOnCall

func (fake *FakeStorage) OpenReturnsOnCall(i int, result1 error)

func (*FakeStorage) Ping

func (fake *FakeStorage) Ping() error

func (*FakeStorage) PingCallCount

func (fake *FakeStorage) PingCallCount() int

func (*FakeStorage) PingCalls added in v0.1.2

func (fake *FakeStorage) PingCalls(stub func() error)

func (*FakeStorage) PingReturns

func (fake *FakeStorage) PingReturns(result1 error)

func (*FakeStorage) PingReturnsOnCall

func (fake *FakeStorage) PingReturnsOnCall(i int, result1 error)

func (*FakeStorage) Platform

func (fake *FakeStorage) Platform() storage.Platform

func (*FakeStorage) PlatformCallCount

func (fake *FakeStorage) PlatformCallCount() int

func (*FakeStorage) PlatformCalls added in v0.1.2

func (fake *FakeStorage) PlatformCalls(stub func() storage.Platform)

func (*FakeStorage) PlatformReturns

func (fake *FakeStorage) PlatformReturns(result1 storage.Platform)

func (*FakeStorage) PlatformReturnsOnCall

func (fake *FakeStorage) PlatformReturnsOnCall(i int, result1 storage.Platform)

func (*FakeStorage) Security

func (fake *FakeStorage) Security() storage.Security

func (*FakeStorage) SecurityCallCount

func (fake *FakeStorage) SecurityCallCount() int

func (*FakeStorage) SecurityCalls added in v0.1.2

func (fake *FakeStorage) SecurityCalls(stub func() storage.Security)

func (*FakeStorage) SecurityReturns

func (fake *FakeStorage) SecurityReturns(result1 storage.Security)

func (*FakeStorage) SecurityReturnsOnCall

func (fake *FakeStorage) SecurityReturnsOnCall(i int, result1 storage.Security)

func (*FakeStorage) ServiceOffering added in v0.1.2

func (fake *FakeStorage) ServiceOffering() storage.ServiceOffering

func (*FakeStorage) ServiceOfferingCallCount added in v0.1.2

func (fake *FakeStorage) ServiceOfferingCallCount() int

func (*FakeStorage) ServiceOfferingCalls added in v0.1.2

func (fake *FakeStorage) ServiceOfferingCalls(stub func() storage.ServiceOffering)

func (*FakeStorage) ServiceOfferingReturns added in v0.1.2

func (fake *FakeStorage) ServiceOfferingReturns(result1 storage.ServiceOffering)

func (*FakeStorage) ServiceOfferingReturnsOnCall added in v0.1.2

func (fake *FakeStorage) ServiceOfferingReturnsOnCall(i int, result1 storage.ServiceOffering)

func (*FakeStorage) ServicePlan added in v0.1.2

func (fake *FakeStorage) ServicePlan() storage.ServicePlan

func (*FakeStorage) ServicePlanCallCount added in v0.1.2

func (fake *FakeStorage) ServicePlanCallCount() int

func (*FakeStorage) ServicePlanCalls added in v0.1.2

func (fake *FakeStorage) ServicePlanCalls(stub func() storage.ServicePlan)

func (*FakeStorage) ServicePlanReturns added in v0.1.2

func (fake *FakeStorage) ServicePlanReturns(result1 storage.ServicePlan)

func (*FakeStorage) ServicePlanReturnsOnCall added in v0.1.2

func (fake *FakeStorage) ServicePlanReturnsOnCall(i int, result1 storage.ServicePlan)

Jump to

Keyboard shortcuts

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