storagefakes

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0, BSD-3-Clause, MIT Imports: 5 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(ctx context.Context, username string) (*types.Credentials, error)
	// contains filtered or unexported fields
}

func (*FakeCredentials) Get

func (fake *FakeCredentials) Get(ctx context.Context, username 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) 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(ctx context.Context, serviceOffering *types.ServiceOffering) (string, error)

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

	ListStub func(ctx context.Context, criteria ...query.Criterion) ([]*types.ServiceOffering, error)

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

	DeleteStub func(ctx context.Context, criteria ...query.Criterion) error

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

func (*FakeServiceOffering) Create added in v0.1.2

func (fake *FakeServiceOffering) Create(ctx context.Context, serviceOffering *types.ServiceOffering) (string, 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) CreateReturns added in v0.1.2

func (fake *FakeServiceOffering) CreateReturns(result1 string, result2 error)

func (*FakeServiceOffering) CreateReturnsOnCall added in v0.1.2

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

func (*FakeServiceOffering) Delete added in v0.1.2

func (fake *FakeServiceOffering) Delete(ctx context.Context, criteria ...query.Criterion) error

func (*FakeServiceOffering) DeleteArgsForCall added in v0.1.2

func (fake *FakeServiceOffering) DeleteArgsForCall(i int) (context.Context, []query.Criterion)

func (*FakeServiceOffering) DeleteCallCount added in v0.1.2

func (fake *FakeServiceOffering) DeleteCallCount() int

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) 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 (fake *FakeServiceOffering) List(ctx context.Context, criteria ...query.Criterion) ([]*types.ServiceOffering, error)

func (*FakeServiceOffering) ListArgsForCall added in v0.1.2

func (fake *FakeServiceOffering) ListArgsForCall(i int) (context.Context, []query.Criterion)

func (*FakeServiceOffering) ListCallCount added in v0.1.2

func (fake *FakeServiceOffering) ListCallCount() int

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(ctx context.Context, brokerID 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) 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(ctx context.Context, serviceOffering *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) 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 {
	OpenStub func(options *storage.Settings) error

	CloseStub func() error

	PingStub func() error

	BrokerStub func() storage.Broker

	ServiceOfferingStub func() storage.ServiceOffering

	ServicePlanStub func() storage.ServicePlan

	VisibilityStub func() storage.Visibility

	PlatformStub func() storage.Platform

	CredentialsStub func() storage.Credentials

	SecurityStub func() storage.Security

	InTransactionStub func(ctx context.Context, f func(ctx context.Context, storage storage.Warehouse) error) error
	// contains filtered or unexported fields
}

func (*FakeStorage) Broker

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

func (*FakeStorage) BrokerCallCount

func (fake *FakeStorage) BrokerCallCount() int

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) 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) 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(ctx context.Context, f 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) 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(options *storage.Settings) error

func (*FakeStorage) OpenArgsForCall

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

func (*FakeStorage) OpenCallCount

func (fake *FakeStorage) OpenCallCount() int

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) 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) 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) 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) 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) 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)

func (*FakeStorage) Visibility added in v0.1.6

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

func (*FakeStorage) VisibilityCallCount added in v0.1.6

func (fake *FakeStorage) VisibilityCallCount() int

func (*FakeStorage) VisibilityReturns added in v0.1.6

func (fake *FakeStorage) VisibilityReturns(result1 storage.Visibility)

func (*FakeStorage) VisibilityReturnsOnCall added in v0.1.6

func (fake *FakeStorage) VisibilityReturnsOnCall(i int, result1 storage.Visibility)

Jump to

Keyboard shortcuts

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