mocks

package
v0.0.0-...-7a069e2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IFILE

type IFILE struct {
	mock.Mock
}

IFILE is an autogenerated mock type for the IFILE type

func (*IFILE) CreateFolder

func (_m *IFILE) CreateFolder(name string, parents ...string) (interface{}, error)

CreateFolder provides a mock function with given fields: name, parents

func (*IFILE) Delete

func (_m *IFILE) Delete(fileIDs []string) error

Delete provides a mock function with given fields: fileIDs

func (*IFILE) Download

func (_m *IFILE) Download(fileID string) (interface{}, error)

Download provides a mock function with given fields: fileID

func (*IFILE) GetMetaData

func (_m *IFILE) GetMetaData(fileID string) (interface{}, error)

GetMetaData provides a mock function with given fields: fileID

func (*IFILE) List

func (_m *IFILE) List(pageSize int64, pageToken ...string) (interface{}, error)

List provides a mock function with given fields: pageSize, pageToken

func (*IFILE) Move

func (_m *IFILE) Move(fileID string, oldParentID string, newParentID string) (interface{}, error)

Move provides a mock function with given fields: fileID, oldParentID, newParentID

func (*IFILE) Upload

func (_m *IFILE) Upload(name string, fileContent io.Reader, parents ...string) (interface{}, error)

Upload provides a mock function with given fields: name, fileContent, parents

type INoSQLDocument

type INoSQLDocument struct {
	mock.Mock
}

INoSQLDocument is an autogenerated mock type for the INoSQLDocument type

func (*INoSQLDocument) Create

func (_m *INoSQLDocument) Create(databaseName string, collectionName string, documents []interface{}) (interface{}, error)

Create provides a mock function with given fields: databaseName, collectionName, documents

func (*INoSQLDocument) Delete

func (_m *INoSQLDocument) Delete(databaseName string, collectionName string, filter interface{}) (interface{}, error)

Delete provides a mock function with given fields: databaseName, collectionName, filter

func (*INoSQLDocument) Read

func (_m *INoSQLDocument) Read(databaseName string, collectionName string, filter interface{}, limit int64, dataModel reflect.Type) (interface{}, error)

Read provides a mock function with given fields: databaseName, collectionName, filter, limit, dataModel

func (*INoSQLDocument) Update

func (_m *INoSQLDocument) Update(databaseName string, collectionName string, filter interface{}, update interface{}) (interface{}, error)

Update provides a mock function with given fields: databaseName, collectionName, filter, update

type INoSQLKeyValue

type INoSQLKeyValue struct {
	mock.Mock
}

INoSQLKeyValue is an autogenerated mock type for the INoSQLKeyValue type

func (*INoSQLKeyValue) Close

func (_m *INoSQLKeyValue) Close() error

Close provides a mock function with given fields:

func (*INoSQLKeyValue) Delete

func (_m *INoSQLKeyValue) Delete(key string) error

Delete provides a mock function with given fields: key

func (*INoSQLKeyValue) Get

func (_m *INoSQLKeyValue) Get(key string) (interface{}, error)

Get provides a mock function with given fields: key

func (*INoSQLKeyValue) GetCapacity

func (_m *INoSQLKeyValue) GetCapacity() (interface{}, error)

GetCapacity provides a mock function with given fields:

func (*INoSQLKeyValue) GetNumberOfRecords

func (_m *INoSQLKeyValue) GetNumberOfRecords() int

GetNumberOfRecords provides a mock function with given fields:

func (*INoSQLKeyValue) Middleware

func (_m *INoSQLKeyValue) Middleware(_a0 hash.IHash) echo.MiddlewareFunc

Middleware provides a mock function with given fields: _a0

func (*INoSQLKeyValue) Set

func (_m *INoSQLKeyValue) Set(key string, value interface{}, expire time.Duration) error

Set provides a mock function with given fields: key, value, expire

func (*INoSQLKeyValue) Update

func (_m *INoSQLKeyValue) Update(key string, value interface{}, expire time.Duration) error

Update provides a mock function with given fields: key, value, expire

type ISQLRelational

type ISQLRelational struct {
	mock.Mock
}

ISQLRelational is an autogenerated mock type for the ISQLRelational type

func (*ISQLRelational) Execute

func (_m *ISQLRelational) Execute(query string, dataModel interface{}) (interface{}, error)

Execute provides a mock function with given fields: query, dataModel

Jump to

Keyboard shortcuts

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