mock_storage

package
v0.0.0-...-6237511 Latest Latest
Warning

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

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

Documentation

Overview

Package mock_storage is a generated GoMock package.

Package mock_storage is a generated GoMock package.

Package mock_storage is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCache

type MockCache struct {
	// contains filtered or unexported fields
}

MockCache is a mock of Cache interface

func NewMockCache

func NewMockCache(ctrl *gomock.Controller) *MockCache

NewMockCache creates a new mock instance

func (*MockCache) EXPECT

func (m *MockCache) EXPECT() *MockCacheMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockCache) Exists

func (m *MockCache) Exists(arg0 string) bool

Exists mocks base method

func (*MockCache) Retrieve

func (m *MockCache) Retrieve(arg0 string) (io.ReadCloser, error)

Retrieve mocks base method

func (*MockCache) Store

func (m *MockCache) Store(arg0 io.Reader, arg1 string) error

Store mocks base method

type MockCacheMockRecorder

type MockCacheMockRecorder struct {
	// contains filtered or unexported fields
}

MockCacheMockRecorder is the mock recorder for MockCache

func (*MockCacheMockRecorder) Exists

func (mr *MockCacheMockRecorder) Exists(arg0 interface{}) *gomock.Call

Exists indicates an expected call of Exists

func (*MockCacheMockRecorder) Retrieve

func (mr *MockCacheMockRecorder) Retrieve(arg0 interface{}) *gomock.Call

Retrieve indicates an expected call of Retrieve

func (*MockCacheMockRecorder) Store

func (mr *MockCacheMockRecorder) Store(arg0, arg1 interface{}) *gomock.Call

Store indicates an expected call of Store

type MockFileRepository

type MockFileRepository struct {
	// contains filtered or unexported fields
}

MockFileRepository is a mock of FileRepository interface

func NewMockFileRepository

func NewMockFileRepository(ctrl *gomock.Controller) *MockFileRepository

NewMockFileRepository creates a new mock instance

func (*MockFileRepository) Create

func (m *MockFileRepository) Create(arg0 context.Context, arg1 storage.File) (storage.File, error)

Create mocks base method

func (*MockFileRepository) Delete

func (m *MockFileRepository) Delete(arg0 context.Context, arg1 interface{}) error

Delete mocks base method

func (*MockFileRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockFileRepository) FindAllByIDs

func (m *MockFileRepository) FindAllByIDs(arg0 context.Context, arg1 interface{}) ([]storage.File, error)

FindAllByIDs mocks base method

func (*MockFileRepository) FindByID

func (m *MockFileRepository) FindByID(arg0 context.Context, arg1 interface{}) (storage.File, error)

FindByID mocks base method

type MockFileRepositoryMockRecorder

type MockFileRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockFileRepositoryMockRecorder is the mock recorder for MockFileRepository

func (*MockFileRepositoryMockRecorder) Create

func (mr *MockFileRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockFileRepositoryMockRecorder) Delete

func (mr *MockFileRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockFileRepositoryMockRecorder) FindAllByIDs

func (mr *MockFileRepositoryMockRecorder) FindAllByIDs(arg0, arg1 interface{}) *gomock.Call

FindAllByIDs indicates an expected call of FindAllByIDs

func (*MockFileRepositoryMockRecorder) FindByID

func (mr *MockFileRepositoryMockRecorder) FindByID(arg0, arg1 interface{}) *gomock.Call

FindByID indicates an expected call of FindByID

type MockStorage

type MockStorage struct {
	// contains filtered or unexported fields
}

MockStorage is a mock of Storage interface

func NewMockStorage

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

NewMockStorage creates a new mock instance

func (*MockStorage) Delete

func (m *MockStorage) Delete(arg0 context.Context, arg1 string) error

Delete mocks base method

func (*MockStorage) Download

func (m *MockStorage) Download(arg0 context.Context, arg1 string) (io.ReadCloser, error)

Download mocks base method

func (*MockStorage) EXPECT

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockStorage) Upload

func (m *MockStorage) Upload(arg0 context.Context, arg1 io.Reader, arg2 string) error

Upload mocks base method

type MockStorageMockRecorder

type MockStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockStorageMockRecorder is the mock recorder for MockStorage

func (*MockStorageMockRecorder) Delete

func (mr *MockStorageMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockStorageMockRecorder) Download

func (mr *MockStorageMockRecorder) Download(arg0, arg1 interface{}) *gomock.Call

Download indicates an expected call of Download

func (*MockStorageMockRecorder) Upload

func (mr *MockStorageMockRecorder) Upload(arg0, arg1, arg2 interface{}) *gomock.Call

Upload indicates an expected call of Upload

Jump to

Keyboard shortcuts

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