mocks

package
v0.0.0-...-e5cbba9 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockS3Client

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

MockS3Client is a mock of S3Client interface.

func NewMockS3Client

func NewMockS3Client(ctrl *gomock.Controller) *MockS3Client

NewMockS3Client creates a new mock instance.

func (*MockS3Client) CopyObject

func (m *MockS3Client) CopyObject(ctx context.Context, params *s3.CopyObjectInput, optFns ...func(*s3.Options)) (*s3.CopyObjectOutput, error)

CopyObject mocks base method.

func (*MockS3Client) DeleteObjects

func (m *MockS3Client) DeleteObjects(arg0 context.Context, arg1 *s3.DeleteObjectsInput, arg2 ...func(*s3.Options)) (*s3.DeleteObjectsOutput, error)

DeleteObjects mocks base method.

func (*MockS3Client) EXPECT

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

func (*MockS3Client) GetObject

func (m *MockS3Client) GetObject(arg0 context.Context, arg1 *s3.GetObjectInput, arg2 ...func(*s3.Options)) (*s3.GetObjectOutput, error)

GetObject mocks base method.

func (*MockS3Client) ListObjectsV2

func (m *MockS3Client) ListObjectsV2(arg0 context.Context, arg1 *s3.ListObjectsV2Input, arg2 ...func(*s3.Options)) (*s3.ListObjectsV2Output, error)

ListObjectsV2 mocks base method.

func (*MockS3Client) PutObject

func (m *MockS3Client) PutObject(arg0 context.Context, arg1 *s3.PutObjectInput, arg2 ...func(*s3.Options)) (*s3.PutObjectOutput, error)

PutObject mocks base method.

type MockS3ClientMockRecorder

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

MockS3ClientMockRecorder is the mock recorder for MockS3Client.

func (*MockS3ClientMockRecorder) CopyObject

func (mr *MockS3ClientMockRecorder) CopyObject(ctx, params interface{}, optFns ...interface{}) *gomock.Call

CopyObject indicates an expected call of CopyObject.

func (*MockS3ClientMockRecorder) DeleteObjects

func (mr *MockS3ClientMockRecorder) DeleteObjects(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

DeleteObjects indicates an expected call of DeleteObjects.

func (*MockS3ClientMockRecorder) GetObject

func (mr *MockS3ClientMockRecorder) GetObject(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetObject indicates an expected call of GetObject.

func (*MockS3ClientMockRecorder) ListObjectsV2

func (mr *MockS3ClientMockRecorder) ListObjectsV2(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ListObjectsV2 indicates an expected call of ListObjectsV2.

func (*MockS3ClientMockRecorder) PutObject

func (mr *MockS3ClientMockRecorder) PutObject(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

PutObject indicates an expected call of PutObject.

type MockService

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

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) Create

func (m *MockService) Create(ctx context.Context, user, size int, name, path, contentType string, file io.Reader) (*entity.File, error)

Create mocks base method.

func (*MockService) Delete

func (m *MockService) Delete(ctx context.Context, key string) error

Delete mocks base method.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

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

func (*MockService) Get

func (m *MockService) Get(ctx context.Context, id string) (*entity.File, error)

Get mocks base method.

func (*MockService) GetByUser

func (m *MockService) GetByUser(ctx context.Context, user int, prefix string) ([]*entity.File, error)

GetByUser mocks base method.

func (*MockService) Move

func (m *MockService) Move(ctx context.Context, user int, id, newPath string) (*entity.File, error)

Move mocks base method.

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) Create

func (mr *MockServiceMockRecorder) Create(ctx, user, size, name, path, contentType, file interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockServiceMockRecorder) Delete

func (mr *MockServiceMockRecorder) Delete(ctx, key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockServiceMockRecorder) Get

func (mr *MockServiceMockRecorder) Get(ctx, id interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockServiceMockRecorder) GetByUser

func (mr *MockServiceMockRecorder) GetByUser(ctx, user, prefix interface{}) *gomock.Call

GetByUser indicates an expected call of GetByUser.

func (*MockServiceMockRecorder) Move

func (mr *MockServiceMockRecorder) Move(ctx, user, id, newPath interface{}) *gomock.Call

Move indicates an expected call of Move.

Jump to

Keyboard shortcuts

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