mocks

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 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.

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 Iterator

type Iterator struct {
	CloseStub func() error

	KeyStub func() (string, error)

	NextStub func() (bool, error)

	TagsStub func() ([]storage.Tag, error)

	TotalItemsStub func() (int, error)

	ValueStub func() ([]byte, error)
	// contains filtered or unexported fields
}

func (*Iterator) Close

func (fake *Iterator) Close() error

func (*Iterator) CloseCallCount

func (fake *Iterator) CloseCallCount() int

func (*Iterator) CloseCalls

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

func (*Iterator) CloseReturns

func (fake *Iterator) CloseReturns(result1 error)

func (*Iterator) CloseReturnsOnCall

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

func (*Iterator) Invocations

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

func (*Iterator) Key

func (fake *Iterator) Key() (string, error)

func (*Iterator) KeyCallCount

func (fake *Iterator) KeyCallCount() int

func (*Iterator) KeyCalls

func (fake *Iterator) KeyCalls(stub func() (string, error))

func (*Iterator) KeyReturns

func (fake *Iterator) KeyReturns(result1 string, result2 error)

func (*Iterator) KeyReturnsOnCall

func (fake *Iterator) KeyReturnsOnCall(i int, result1 string, result2 error)

func (*Iterator) Next

func (fake *Iterator) Next() (bool, error)

func (*Iterator) NextCallCount

func (fake *Iterator) NextCallCount() int

func (*Iterator) NextCalls

func (fake *Iterator) NextCalls(stub func() (bool, error))

func (*Iterator) NextReturns

func (fake *Iterator) NextReturns(result1 bool, result2 error)

func (*Iterator) NextReturnsOnCall

func (fake *Iterator) NextReturnsOnCall(i int, result1 bool, result2 error)

func (*Iterator) Tags

func (fake *Iterator) Tags() ([]storage.Tag, error)

func (*Iterator) TagsCallCount

func (fake *Iterator) TagsCallCount() int

func (*Iterator) TagsCalls

func (fake *Iterator) TagsCalls(stub func() ([]storage.Tag, error))

func (*Iterator) TagsReturns

func (fake *Iterator) TagsReturns(result1 []storage.Tag, result2 error)

func (*Iterator) TagsReturnsOnCall

func (fake *Iterator) TagsReturnsOnCall(i int, result1 []storage.Tag, result2 error)

func (*Iterator) TotalItems

func (fake *Iterator) TotalItems() (int, error)

func (*Iterator) TotalItemsCallCount

func (fake *Iterator) TotalItemsCallCount() int

func (*Iterator) TotalItemsCalls

func (fake *Iterator) TotalItemsCalls(stub func() (int, error))

func (*Iterator) TotalItemsReturns

func (fake *Iterator) TotalItemsReturns(result1 int, result2 error)

func (*Iterator) TotalItemsReturnsOnCall

func (fake *Iterator) TotalItemsReturnsOnCall(i int, result1 int, result2 error)

func (*Iterator) Value

func (fake *Iterator) Value() ([]byte, error)

func (*Iterator) ValueCallCount

func (fake *Iterator) ValueCallCount() int

func (*Iterator) ValueCalls

func (fake *Iterator) ValueCalls(stub func() ([]byte, error))

func (*Iterator) ValueReturns

func (fake *Iterator) ValueReturns(result1 []byte, result2 error)

func (*Iterator) ValueReturnsOnCall

func (fake *Iterator) ValueReturnsOnCall(i int, result1 []byte, result2 error)

type MongoDBIterator

type MongoDBIterator struct {
	CloseStub func() error

	KeyStub func() (string, error)

	NextStub func() (bool, error)

	TagsStub func() ([]storage.Tag, error)

	TotalItemsStub func() (int, error)

	ValueStub func() ([]byte, error)

	ValueAsRawMapStub func() (map[string]interface{}, error)
	// contains filtered or unexported fields
}

func (*MongoDBIterator) Close

func (fake *MongoDBIterator) Close() error

func (*MongoDBIterator) CloseCallCount

func (fake *MongoDBIterator) CloseCallCount() int

func (*MongoDBIterator) CloseCalls

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

func (*MongoDBIterator) CloseReturns

func (fake *MongoDBIterator) CloseReturns(result1 error)

func (*MongoDBIterator) CloseReturnsOnCall

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

func (*MongoDBIterator) Invocations

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

func (*MongoDBIterator) Key

func (fake *MongoDBIterator) Key() (string, error)

func (*MongoDBIterator) KeyCallCount

func (fake *MongoDBIterator) KeyCallCount() int

func (*MongoDBIterator) KeyCalls

func (fake *MongoDBIterator) KeyCalls(stub func() (string, error))

func (*MongoDBIterator) KeyReturns

func (fake *MongoDBIterator) KeyReturns(result1 string, result2 error)

func (*MongoDBIterator) KeyReturnsOnCall

func (fake *MongoDBIterator) KeyReturnsOnCall(i int, result1 string, result2 error)

func (*MongoDBIterator) Next

func (fake *MongoDBIterator) Next() (bool, error)

func (*MongoDBIterator) NextCallCount

func (fake *MongoDBIterator) NextCallCount() int

func (*MongoDBIterator) NextCalls

func (fake *MongoDBIterator) NextCalls(stub func() (bool, error))

func (*MongoDBIterator) NextReturns

func (fake *MongoDBIterator) NextReturns(result1 bool, result2 error)

func (*MongoDBIterator) NextReturnsOnCall

func (fake *MongoDBIterator) NextReturnsOnCall(i int, result1 bool, result2 error)

func (*MongoDBIterator) Tags

func (fake *MongoDBIterator) Tags() ([]storage.Tag, error)

func (*MongoDBIterator) TagsCallCount

func (fake *MongoDBIterator) TagsCallCount() int

func (*MongoDBIterator) TagsCalls

func (fake *MongoDBIterator) TagsCalls(stub func() ([]storage.Tag, error))

func (*MongoDBIterator) TagsReturns

func (fake *MongoDBIterator) TagsReturns(result1 []storage.Tag, result2 error)

func (*MongoDBIterator) TagsReturnsOnCall

func (fake *MongoDBIterator) TagsReturnsOnCall(i int, result1 []storage.Tag, result2 error)

func (*MongoDBIterator) TotalItems

func (fake *MongoDBIterator) TotalItems() (int, error)

func (*MongoDBIterator) TotalItemsCallCount

func (fake *MongoDBIterator) TotalItemsCallCount() int

func (*MongoDBIterator) TotalItemsCalls

func (fake *MongoDBIterator) TotalItemsCalls(stub func() (int, error))

func (*MongoDBIterator) TotalItemsReturns

func (fake *MongoDBIterator) TotalItemsReturns(result1 int, result2 error)

func (*MongoDBIterator) TotalItemsReturnsOnCall

func (fake *MongoDBIterator) TotalItemsReturnsOnCall(i int, result1 int, result2 error)

func (*MongoDBIterator) Value

func (fake *MongoDBIterator) Value() ([]byte, error)

func (*MongoDBIterator) ValueAsRawMap

func (fake *MongoDBIterator) ValueAsRawMap() (map[string]interface{}, error)

func (*MongoDBIterator) ValueAsRawMapCallCount

func (fake *MongoDBIterator) ValueAsRawMapCallCount() int

func (*MongoDBIterator) ValueAsRawMapCalls

func (fake *MongoDBIterator) ValueAsRawMapCalls(stub func() (map[string]interface{}, error))

func (*MongoDBIterator) ValueAsRawMapReturns

func (fake *MongoDBIterator) ValueAsRawMapReturns(result1 map[string]interface{}, result2 error)

func (*MongoDBIterator) ValueAsRawMapReturnsOnCall

func (fake *MongoDBIterator) ValueAsRawMapReturnsOnCall(i int, result1 map[string]interface{}, result2 error)

func (*MongoDBIterator) ValueCallCount

func (fake *MongoDBIterator) ValueCallCount() int

func (*MongoDBIterator) ValueCalls

func (fake *MongoDBIterator) ValueCalls(stub func() ([]byte, error))

func (*MongoDBIterator) ValueReturns

func (fake *MongoDBIterator) ValueReturns(result1 []byte, result2 error)

func (*MongoDBIterator) ValueReturnsOnCall

func (fake *MongoDBIterator) ValueReturnsOnCall(i int, result1 []byte, result2 error)

type MongoDBProvider

type MongoDBProvider struct {
	CloseStub func() error

	CreateCustomIndexesStub func(string, ...mongo.IndexModel) error

	GetOpenStoresStub func() []storage.Store

	GetStoreConfigStub func(string) (storage.StoreConfiguration, error)

	OpenStoreStub func(string) (storage.Store, error)

	PingStub func() error

	SetStoreConfigStub func(string, storage.StoreConfiguration) error
	// contains filtered or unexported fields
}

func (*MongoDBProvider) Close

func (fake *MongoDBProvider) Close() error

func (*MongoDBProvider) CloseCallCount

func (fake *MongoDBProvider) CloseCallCount() int

func (*MongoDBProvider) CloseCalls

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

func (*MongoDBProvider) CloseReturns

func (fake *MongoDBProvider) CloseReturns(result1 error)

func (*MongoDBProvider) CloseReturnsOnCall

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

func (*MongoDBProvider) CreateCustomIndexes

func (fake *MongoDBProvider) CreateCustomIndexes(arg1 string, arg2 ...mongo.IndexModel) error

func (*MongoDBProvider) CreateCustomIndexesArgsForCall

func (fake *MongoDBProvider) CreateCustomIndexesArgsForCall(i int) (string, []mongo.IndexModel)

func (*MongoDBProvider) CreateCustomIndexesCallCount

func (fake *MongoDBProvider) CreateCustomIndexesCallCount() int

func (*MongoDBProvider) CreateCustomIndexesCalls

func (fake *MongoDBProvider) CreateCustomIndexesCalls(stub func(string, ...mongo.IndexModel) error)

func (*MongoDBProvider) CreateCustomIndexesReturns

func (fake *MongoDBProvider) CreateCustomIndexesReturns(result1 error)

func (*MongoDBProvider) CreateCustomIndexesReturnsOnCall

func (fake *MongoDBProvider) CreateCustomIndexesReturnsOnCall(i int, result1 error)

func (*MongoDBProvider) GetOpenStores

func (fake *MongoDBProvider) GetOpenStores() []storage.Store

func (*MongoDBProvider) GetOpenStoresCallCount

func (fake *MongoDBProvider) GetOpenStoresCallCount() int

func (*MongoDBProvider) GetOpenStoresCalls

func (fake *MongoDBProvider) GetOpenStoresCalls(stub func() []storage.Store)

func (*MongoDBProvider) GetOpenStoresReturns

func (fake *MongoDBProvider) GetOpenStoresReturns(result1 []storage.Store)

func (*MongoDBProvider) GetOpenStoresReturnsOnCall

func (fake *MongoDBProvider) GetOpenStoresReturnsOnCall(i int, result1 []storage.Store)

func (*MongoDBProvider) GetStoreConfig

func (fake *MongoDBProvider) GetStoreConfig(arg1 string) (storage.StoreConfiguration, error)

func (*MongoDBProvider) GetStoreConfigArgsForCall

func (fake *MongoDBProvider) GetStoreConfigArgsForCall(i int) string

func (*MongoDBProvider) GetStoreConfigCallCount

func (fake *MongoDBProvider) GetStoreConfigCallCount() int

func (*MongoDBProvider) GetStoreConfigCalls

func (fake *MongoDBProvider) GetStoreConfigCalls(stub func(string) (storage.StoreConfiguration, error))

func (*MongoDBProvider) GetStoreConfigReturns

func (fake *MongoDBProvider) GetStoreConfigReturns(result1 storage.StoreConfiguration, result2 error)

func (*MongoDBProvider) GetStoreConfigReturnsOnCall

func (fake *MongoDBProvider) GetStoreConfigReturnsOnCall(i int, result1 storage.StoreConfiguration, result2 error)

func (*MongoDBProvider) Invocations

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

func (*MongoDBProvider) OpenStore

func (fake *MongoDBProvider) OpenStore(arg1 string) (storage.Store, error)

func (*MongoDBProvider) OpenStoreArgsForCall

func (fake *MongoDBProvider) OpenStoreArgsForCall(i int) string

func (*MongoDBProvider) OpenStoreCallCount

func (fake *MongoDBProvider) OpenStoreCallCount() int

func (*MongoDBProvider) OpenStoreCalls

func (fake *MongoDBProvider) OpenStoreCalls(stub func(string) (storage.Store, error))

func (*MongoDBProvider) OpenStoreReturns

func (fake *MongoDBProvider) OpenStoreReturns(result1 storage.Store, result2 error)

func (*MongoDBProvider) OpenStoreReturnsOnCall

func (fake *MongoDBProvider) OpenStoreReturnsOnCall(i int, result1 storage.Store, result2 error)

func (*MongoDBProvider) Ping

func (fake *MongoDBProvider) Ping() error

func (*MongoDBProvider) PingCallCount

func (fake *MongoDBProvider) PingCallCount() int

func (*MongoDBProvider) PingCalls

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

func (*MongoDBProvider) PingReturns

func (fake *MongoDBProvider) PingReturns(result1 error)

func (*MongoDBProvider) PingReturnsOnCall

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

func (*MongoDBProvider) SetStoreConfig

func (fake *MongoDBProvider) SetStoreConfig(arg1 string, arg2 storage.StoreConfiguration) error

func (*MongoDBProvider) SetStoreConfigArgsForCall

func (fake *MongoDBProvider) SetStoreConfigArgsForCall(i int) (string, storage.StoreConfiguration)

func (*MongoDBProvider) SetStoreConfigCallCount

func (fake *MongoDBProvider) SetStoreConfigCallCount() int

func (*MongoDBProvider) SetStoreConfigCalls

func (fake *MongoDBProvider) SetStoreConfigCalls(stub func(string, storage.StoreConfiguration) error)

func (*MongoDBProvider) SetStoreConfigReturns

func (fake *MongoDBProvider) SetStoreConfigReturns(result1 error)

func (*MongoDBProvider) SetStoreConfigReturnsOnCall

func (fake *MongoDBProvider) SetStoreConfigReturnsOnCall(i int, result1 error)

type MongoDBStore

type MongoDBStore struct {
	BatchStub func([]storage.Operation) error

	BulkWriteStub func([]mongo.WriteModel, ...*options.BulkWriteOptions) error

	CloseStub func() error

	CreateMongoDBFindOptionsStub func([]storage.QueryOption, bool) *options.FindOptions

	DeleteStub func(string) error

	FlushStub func() error

	GetStub func(string) ([]byte, error)

	GetAsRawMapStub func(string) (map[string]interface{}, error)

	GetBulkStub func(...string) ([][]byte, error)

	GetBulkAsRawMapStub func(...string) ([]map[string]interface{}, error)

	GetTagsStub func(string) ([]storage.Tag, error)

	PutStub func(string, []byte, ...storage.Tag) error

	PutAsJSONStub func(string, interface{}) error

	QueryStub func(string, ...storage.QueryOption) (storage.Iterator, error)

	QueryCustomStub func(interface{}, ...*options.FindOptions) (mongodb.Iterator, error)
	// contains filtered or unexported fields
}

func (*MongoDBStore) Batch

func (fake *MongoDBStore) Batch(arg1 []storage.Operation) error

func (*MongoDBStore) BatchArgsForCall

func (fake *MongoDBStore) BatchArgsForCall(i int) []storage.Operation

func (*MongoDBStore) BatchCallCount

func (fake *MongoDBStore) BatchCallCount() int

func (*MongoDBStore) BatchCalls

func (fake *MongoDBStore) BatchCalls(stub func([]storage.Operation) error)

func (*MongoDBStore) BatchReturns

func (fake *MongoDBStore) BatchReturns(result1 error)

func (*MongoDBStore) BatchReturnsOnCall

func (fake *MongoDBStore) BatchReturnsOnCall(i int, result1 error)

func (*MongoDBStore) BulkWrite

func (fake *MongoDBStore) BulkWrite(arg1 []mongo.WriteModel, arg2 ...*options.BulkWriteOptions) error

func (*MongoDBStore) BulkWriteArgsForCall

func (fake *MongoDBStore) BulkWriteArgsForCall(i int) ([]mongo.WriteModel, []*options.BulkWriteOptions)

func (*MongoDBStore) BulkWriteCallCount

func (fake *MongoDBStore) BulkWriteCallCount() int

func (*MongoDBStore) BulkWriteCalls

func (fake *MongoDBStore) BulkWriteCalls(stub func([]mongo.WriteModel, ...*options.BulkWriteOptions) error)

func (*MongoDBStore) BulkWriteReturns

func (fake *MongoDBStore) BulkWriteReturns(result1 error)

func (*MongoDBStore) BulkWriteReturnsOnCall

func (fake *MongoDBStore) BulkWriteReturnsOnCall(i int, result1 error)

func (*MongoDBStore) Close

func (fake *MongoDBStore) Close() error

func (*MongoDBStore) CloseCallCount

func (fake *MongoDBStore) CloseCallCount() int

func (*MongoDBStore) CloseCalls

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

func (*MongoDBStore) CloseReturns

func (fake *MongoDBStore) CloseReturns(result1 error)

func (*MongoDBStore) CloseReturnsOnCall

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

func (*MongoDBStore) CreateMongoDBFindOptions

func (fake *MongoDBStore) CreateMongoDBFindOptions(arg1 []storage.QueryOption, arg2 bool) *options.FindOptions

func (*MongoDBStore) CreateMongoDBFindOptionsArgsForCall

func (fake *MongoDBStore) CreateMongoDBFindOptionsArgsForCall(i int) ([]storage.QueryOption, bool)

func (*MongoDBStore) CreateMongoDBFindOptionsCallCount

func (fake *MongoDBStore) CreateMongoDBFindOptionsCallCount() int

func (*MongoDBStore) CreateMongoDBFindOptionsCalls

func (fake *MongoDBStore) CreateMongoDBFindOptionsCalls(stub func([]storage.QueryOption, bool) *options.FindOptions)

func (*MongoDBStore) CreateMongoDBFindOptionsReturns

func (fake *MongoDBStore) CreateMongoDBFindOptionsReturns(result1 *options.FindOptions)

func (*MongoDBStore) CreateMongoDBFindOptionsReturnsOnCall

func (fake *MongoDBStore) CreateMongoDBFindOptionsReturnsOnCall(i int, result1 *options.FindOptions)

func (*MongoDBStore) Delete

func (fake *MongoDBStore) Delete(arg1 string) error

func (*MongoDBStore) DeleteArgsForCall

func (fake *MongoDBStore) DeleteArgsForCall(i int) string

func (*MongoDBStore) DeleteCallCount

func (fake *MongoDBStore) DeleteCallCount() int

func (*MongoDBStore) DeleteCalls

func (fake *MongoDBStore) DeleteCalls(stub func(string) error)

func (*MongoDBStore) DeleteReturns

func (fake *MongoDBStore) DeleteReturns(result1 error)

func (*MongoDBStore) DeleteReturnsOnCall

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

func (*MongoDBStore) Flush

func (fake *MongoDBStore) Flush() error

func (*MongoDBStore) FlushCallCount

func (fake *MongoDBStore) FlushCallCount() int

func (*MongoDBStore) FlushCalls

func (fake *MongoDBStore) FlushCalls(stub func() error)

func (*MongoDBStore) FlushReturns

func (fake *MongoDBStore) FlushReturns(result1 error)

func (*MongoDBStore) FlushReturnsOnCall

func (fake *MongoDBStore) FlushReturnsOnCall(i int, result1 error)

func (*MongoDBStore) Get

func (fake *MongoDBStore) Get(arg1 string) ([]byte, error)

func (*MongoDBStore) GetArgsForCall

func (fake *MongoDBStore) GetArgsForCall(i int) string

func (*MongoDBStore) GetAsRawMap

func (fake *MongoDBStore) GetAsRawMap(arg1 string) (map[string]interface{}, error)

func (*MongoDBStore) GetAsRawMapArgsForCall

func (fake *MongoDBStore) GetAsRawMapArgsForCall(i int) string

func (*MongoDBStore) GetAsRawMapCallCount

func (fake *MongoDBStore) GetAsRawMapCallCount() int

func (*MongoDBStore) GetAsRawMapCalls

func (fake *MongoDBStore) GetAsRawMapCalls(stub func(string) (map[string]interface{}, error))

func (*MongoDBStore) GetAsRawMapReturns

func (fake *MongoDBStore) GetAsRawMapReturns(result1 map[string]interface{}, result2 error)

func (*MongoDBStore) GetAsRawMapReturnsOnCall

func (fake *MongoDBStore) GetAsRawMapReturnsOnCall(i int, result1 map[string]interface{}, result2 error)

func (*MongoDBStore) GetBulk

func (fake *MongoDBStore) GetBulk(arg1 ...string) ([][]byte, error)

func (*MongoDBStore) GetBulkArgsForCall

func (fake *MongoDBStore) GetBulkArgsForCall(i int) []string

func (*MongoDBStore) GetBulkAsRawMap

func (fake *MongoDBStore) GetBulkAsRawMap(arg1 ...string) ([]map[string]interface{}, error)

func (*MongoDBStore) GetBulkAsRawMapArgsForCall

func (fake *MongoDBStore) GetBulkAsRawMapArgsForCall(i int) []string

func (*MongoDBStore) GetBulkAsRawMapCallCount

func (fake *MongoDBStore) GetBulkAsRawMapCallCount() int

func (*MongoDBStore) GetBulkAsRawMapCalls

func (fake *MongoDBStore) GetBulkAsRawMapCalls(stub func(...string) ([]map[string]interface{}, error))

func (*MongoDBStore) GetBulkAsRawMapReturns

func (fake *MongoDBStore) GetBulkAsRawMapReturns(result1 []map[string]interface{}, result2 error)

func (*MongoDBStore) GetBulkAsRawMapReturnsOnCall

func (fake *MongoDBStore) GetBulkAsRawMapReturnsOnCall(i int, result1 []map[string]interface{}, result2 error)

func (*MongoDBStore) GetBulkCallCount

func (fake *MongoDBStore) GetBulkCallCount() int

func (*MongoDBStore) GetBulkCalls

func (fake *MongoDBStore) GetBulkCalls(stub func(...string) ([][]byte, error))

func (*MongoDBStore) GetBulkReturns

func (fake *MongoDBStore) GetBulkReturns(result1 [][]byte, result2 error)

func (*MongoDBStore) GetBulkReturnsOnCall

func (fake *MongoDBStore) GetBulkReturnsOnCall(i int, result1 [][]byte, result2 error)

func (*MongoDBStore) GetCallCount

func (fake *MongoDBStore) GetCallCount() int

func (*MongoDBStore) GetCalls

func (fake *MongoDBStore) GetCalls(stub func(string) ([]byte, error))

func (*MongoDBStore) GetReturns

func (fake *MongoDBStore) GetReturns(result1 []byte, result2 error)

func (*MongoDBStore) GetReturnsOnCall

func (fake *MongoDBStore) GetReturnsOnCall(i int, result1 []byte, result2 error)

func (*MongoDBStore) GetTags

func (fake *MongoDBStore) GetTags(arg1 string) ([]storage.Tag, error)

func (*MongoDBStore) GetTagsArgsForCall

func (fake *MongoDBStore) GetTagsArgsForCall(i int) string

func (*MongoDBStore) GetTagsCallCount

func (fake *MongoDBStore) GetTagsCallCount() int

func (*MongoDBStore) GetTagsCalls

func (fake *MongoDBStore) GetTagsCalls(stub func(string) ([]storage.Tag, error))

func (*MongoDBStore) GetTagsReturns

func (fake *MongoDBStore) GetTagsReturns(result1 []storage.Tag, result2 error)

func (*MongoDBStore) GetTagsReturnsOnCall

func (fake *MongoDBStore) GetTagsReturnsOnCall(i int, result1 []storage.Tag, result2 error)

func (*MongoDBStore) Invocations

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

func (*MongoDBStore) Put

func (fake *MongoDBStore) Put(arg1 string, arg2 []byte, arg3 ...storage.Tag) error

func (*MongoDBStore) PutArgsForCall

func (fake *MongoDBStore) PutArgsForCall(i int) (string, []byte, []storage.Tag)

func (*MongoDBStore) PutAsJSON

func (fake *MongoDBStore) PutAsJSON(arg1 string, arg2 interface{}) error

func (*MongoDBStore) PutAsJSONArgsForCall

func (fake *MongoDBStore) PutAsJSONArgsForCall(i int) (string, interface{})

func (*MongoDBStore) PutAsJSONCallCount

func (fake *MongoDBStore) PutAsJSONCallCount() int

func (*MongoDBStore) PutAsJSONCalls

func (fake *MongoDBStore) PutAsJSONCalls(stub func(string, interface{}) error)

func (*MongoDBStore) PutAsJSONReturns

func (fake *MongoDBStore) PutAsJSONReturns(result1 error)

func (*MongoDBStore) PutAsJSONReturnsOnCall

func (fake *MongoDBStore) PutAsJSONReturnsOnCall(i int, result1 error)

func (*MongoDBStore) PutCallCount

func (fake *MongoDBStore) PutCallCount() int

func (*MongoDBStore) PutCalls

func (fake *MongoDBStore) PutCalls(stub func(string, []byte, ...storage.Tag) error)

func (*MongoDBStore) PutReturns

func (fake *MongoDBStore) PutReturns(result1 error)

func (*MongoDBStore) PutReturnsOnCall

func (fake *MongoDBStore) PutReturnsOnCall(i int, result1 error)

func (*MongoDBStore) Query

func (fake *MongoDBStore) Query(arg1 string, arg2 ...storage.QueryOption) (storage.Iterator, error)

func (*MongoDBStore) QueryArgsForCall

func (fake *MongoDBStore) QueryArgsForCall(i int) (string, []storage.QueryOption)

func (*MongoDBStore) QueryCallCount

func (fake *MongoDBStore) QueryCallCount() int

func (*MongoDBStore) QueryCalls

func (fake *MongoDBStore) QueryCalls(stub func(string, ...storage.QueryOption) (storage.Iterator, error))

func (*MongoDBStore) QueryCustom

func (fake *MongoDBStore) QueryCustom(arg1 interface{}, arg2 ...*options.FindOptions) (mongodb.Iterator, error)

func (*MongoDBStore) QueryCustomArgsForCall

func (fake *MongoDBStore) QueryCustomArgsForCall(i int) (interface{}, []*options.FindOptions)

func (*MongoDBStore) QueryCustomCallCount

func (fake *MongoDBStore) QueryCustomCallCount() int

func (*MongoDBStore) QueryCustomCalls

func (fake *MongoDBStore) QueryCustomCalls(stub func(interface{}, ...*options.FindOptions) (mongodb.Iterator, error))

func (*MongoDBStore) QueryCustomReturns

func (fake *MongoDBStore) QueryCustomReturns(result1 mongodb.Iterator, result2 error)

func (*MongoDBStore) QueryCustomReturnsOnCall

func (fake *MongoDBStore) QueryCustomReturnsOnCall(i int, result1 mongodb.Iterator, result2 error)

func (*MongoDBStore) QueryReturns

func (fake *MongoDBStore) QueryReturns(result1 storage.Iterator, result2 error)

func (*MongoDBStore) QueryReturnsOnCall

func (fake *MongoDBStore) QueryReturnsOnCall(i int, result1 storage.Iterator, result2 error)

type Provider

type Provider struct {
	CloseStub func() error

	GetOpenStoresStub func() []storage.Store

	GetStoreConfigStub func(string) (storage.StoreConfiguration, error)

	OpenStoreStub func(string) (storage.Store, error)

	SetStoreConfigStub func(string, storage.StoreConfiguration) error
	// contains filtered or unexported fields
}

func (*Provider) Close

func (fake *Provider) Close() error

func (*Provider) CloseCallCount

func (fake *Provider) CloseCallCount() int

func (*Provider) CloseCalls

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

func (*Provider) CloseReturns

func (fake *Provider) CloseReturns(result1 error)

func (*Provider) CloseReturnsOnCall

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

func (*Provider) GetOpenStores

func (fake *Provider) GetOpenStores() []storage.Store

func (*Provider) GetOpenStoresCallCount

func (fake *Provider) GetOpenStoresCallCount() int

func (*Provider) GetOpenStoresCalls

func (fake *Provider) GetOpenStoresCalls(stub func() []storage.Store)

func (*Provider) GetOpenStoresReturns

func (fake *Provider) GetOpenStoresReturns(result1 []storage.Store)

func (*Provider) GetOpenStoresReturnsOnCall

func (fake *Provider) GetOpenStoresReturnsOnCall(i int, result1 []storage.Store)

func (*Provider) GetStoreConfig

func (fake *Provider) GetStoreConfig(arg1 string) (storage.StoreConfiguration, error)

func (*Provider) GetStoreConfigArgsForCall

func (fake *Provider) GetStoreConfigArgsForCall(i int) string

func (*Provider) GetStoreConfigCallCount

func (fake *Provider) GetStoreConfigCallCount() int

func (*Provider) GetStoreConfigCalls

func (fake *Provider) GetStoreConfigCalls(stub func(string) (storage.StoreConfiguration, error))

func (*Provider) GetStoreConfigReturns

func (fake *Provider) GetStoreConfigReturns(result1 storage.StoreConfiguration, result2 error)

func (*Provider) GetStoreConfigReturnsOnCall

func (fake *Provider) GetStoreConfigReturnsOnCall(i int, result1 storage.StoreConfiguration, result2 error)

func (*Provider) Invocations

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

func (*Provider) OpenStore

func (fake *Provider) OpenStore(arg1 string) (storage.Store, error)

func (*Provider) OpenStoreArgsForCall

func (fake *Provider) OpenStoreArgsForCall(i int) string

func (*Provider) OpenStoreCallCount

func (fake *Provider) OpenStoreCallCount() int

func (*Provider) OpenStoreCalls

func (fake *Provider) OpenStoreCalls(stub func(string) (storage.Store, error))

func (*Provider) OpenStoreReturns

func (fake *Provider) OpenStoreReturns(result1 storage.Store, result2 error)

func (*Provider) OpenStoreReturnsOnCall

func (fake *Provider) OpenStoreReturnsOnCall(i int, result1 storage.Store, result2 error)

func (*Provider) SetStoreConfig

func (fake *Provider) SetStoreConfig(arg1 string, arg2 storage.StoreConfiguration) error

func (*Provider) SetStoreConfigArgsForCall

func (fake *Provider) SetStoreConfigArgsForCall(i int) (string, storage.StoreConfiguration)

func (*Provider) SetStoreConfigCallCount

func (fake *Provider) SetStoreConfigCallCount() int

func (*Provider) SetStoreConfigCalls

func (fake *Provider) SetStoreConfigCalls(stub func(string, storage.StoreConfiguration) error)

func (*Provider) SetStoreConfigReturns

func (fake *Provider) SetStoreConfigReturns(result1 error)

func (*Provider) SetStoreConfigReturnsOnCall

func (fake *Provider) SetStoreConfigReturnsOnCall(i int, result1 error)

type Store

type Store struct {
	BatchStub func([]storage.Operation) error

	CloseStub func() error

	DeleteStub func(string) error

	FlushStub func() error

	GetStub func(string) ([]byte, error)

	GetBulkStub func(...string) ([][]byte, error)

	GetTagsStub func(string) ([]storage.Tag, error)

	PutStub func(string, []byte, ...storage.Tag) error

	QueryStub func(string, ...storage.QueryOption) (storage.Iterator, error)
	// contains filtered or unexported fields
}

func (*Store) Batch

func (fake *Store) Batch(arg1 []storage.Operation) error

func (*Store) BatchArgsForCall

func (fake *Store) BatchArgsForCall(i int) []storage.Operation

func (*Store) BatchCallCount

func (fake *Store) BatchCallCount() int

func (*Store) BatchCalls

func (fake *Store) BatchCalls(stub func([]storage.Operation) error)

func (*Store) BatchReturns

func (fake *Store) BatchReturns(result1 error)

func (*Store) BatchReturnsOnCall

func (fake *Store) BatchReturnsOnCall(i int, result1 error)

func (*Store) Close

func (fake *Store) Close() error

func (*Store) CloseCallCount

func (fake *Store) CloseCallCount() int

func (*Store) CloseCalls

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

func (*Store) CloseReturns

func (fake *Store) CloseReturns(result1 error)

func (*Store) CloseReturnsOnCall

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

func (*Store) Delete

func (fake *Store) Delete(arg1 string) error

func (*Store) DeleteArgsForCall

func (fake *Store) DeleteArgsForCall(i int) string

func (*Store) DeleteCallCount

func (fake *Store) DeleteCallCount() int

func (*Store) DeleteCalls

func (fake *Store) DeleteCalls(stub func(string) error)

func (*Store) DeleteReturns

func (fake *Store) DeleteReturns(result1 error)

func (*Store) DeleteReturnsOnCall

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

func (*Store) Flush

func (fake *Store) Flush() error

func (*Store) FlushCallCount

func (fake *Store) FlushCallCount() int

func (*Store) FlushCalls

func (fake *Store) FlushCalls(stub func() error)

func (*Store) FlushReturns

func (fake *Store) FlushReturns(result1 error)

func (*Store) FlushReturnsOnCall

func (fake *Store) FlushReturnsOnCall(i int, result1 error)

func (*Store) Get

func (fake *Store) Get(arg1 string) ([]byte, error)

func (*Store) GetArgsForCall

func (fake *Store) GetArgsForCall(i int) string

func (*Store) GetBulk

func (fake *Store) GetBulk(arg1 ...string) ([][]byte, error)

func (*Store) GetBulkArgsForCall

func (fake *Store) GetBulkArgsForCall(i int) []string

func (*Store) GetBulkCallCount

func (fake *Store) GetBulkCallCount() int

func (*Store) GetBulkCalls

func (fake *Store) GetBulkCalls(stub func(...string) ([][]byte, error))

func (*Store) GetBulkReturns

func (fake *Store) GetBulkReturns(result1 [][]byte, result2 error)

func (*Store) GetBulkReturnsOnCall

func (fake *Store) GetBulkReturnsOnCall(i int, result1 [][]byte, result2 error)

func (*Store) GetCallCount

func (fake *Store) GetCallCount() int

func (*Store) GetCalls

func (fake *Store) GetCalls(stub func(string) ([]byte, error))

func (*Store) GetReturns

func (fake *Store) GetReturns(result1 []byte, result2 error)

func (*Store) GetReturnsOnCall

func (fake *Store) GetReturnsOnCall(i int, result1 []byte, result2 error)

func (*Store) GetTags

func (fake *Store) GetTags(arg1 string) ([]storage.Tag, error)

func (*Store) GetTagsArgsForCall

func (fake *Store) GetTagsArgsForCall(i int) string

func (*Store) GetTagsCallCount

func (fake *Store) GetTagsCallCount() int

func (*Store) GetTagsCalls

func (fake *Store) GetTagsCalls(stub func(string) ([]storage.Tag, error))

func (*Store) GetTagsReturns

func (fake *Store) GetTagsReturns(result1 []storage.Tag, result2 error)

func (*Store) GetTagsReturnsOnCall

func (fake *Store) GetTagsReturnsOnCall(i int, result1 []storage.Tag, result2 error)

func (*Store) Invocations

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

func (*Store) Put

func (fake *Store) Put(arg1 string, arg2 []byte, arg3 ...storage.Tag) error

func (*Store) PutArgsForCall

func (fake *Store) PutArgsForCall(i int) (string, []byte, []storage.Tag)

func (*Store) PutCallCount

func (fake *Store) PutCallCount() int

func (*Store) PutCalls

func (fake *Store) PutCalls(stub func(string, []byte, ...storage.Tag) error)

func (*Store) PutReturns

func (fake *Store) PutReturns(result1 error)

func (*Store) PutReturnsOnCall

func (fake *Store) PutReturnsOnCall(i int, result1 error)

func (*Store) Query

func (fake *Store) Query(arg1 string, arg2 ...storage.QueryOption) (storage.Iterator, error)

func (*Store) QueryArgsForCall

func (fake *Store) QueryArgsForCall(i int) (string, []storage.QueryOption)

func (*Store) QueryCallCount

func (fake *Store) QueryCallCount() int

func (*Store) QueryCalls

func (fake *Store) QueryCalls(stub func(string, ...storage.QueryOption) (storage.Iterator, error))

func (*Store) QueryReturns

func (fake *Store) QueryReturns(result1 storage.Iterator, result2 error)

func (*Store) QueryReturnsOnCall

func (fake *Store) QueryReturnsOnCall(i int, result1 storage.Iterator, result2 error)

Jump to

Keyboard shortcuts

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