storagemock

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package storagemock is a generated GoMock package.

Package storagemock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBackend

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

MockBackend is a mock of Backend interface.

func NewMockBackend

func NewMockBackend(ctrl *gomock.Controller) *MockBackend

NewMockBackend creates a new mock instance.

func (*MockBackend) Delete

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

Delete mocks base method.

func (*MockBackend) EXPECT

func (m *MockBackend) EXPECT() *MockBackendMockRecorder

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

func (*MockBackend) Get

func (m *MockBackend) Get(arg0 context.Context, arg1 string) (io.ReadCloser, error)

Get mocks base method.

func (*MockBackend) Info added in v1.2.0

func (m *MockBackend) Info(arg0 context.Context, arg1 string) (types.Info, error)

Info mocks base method.

func (*MockBackend) List added in v1.3.0

func (m *MockBackend) List(arg0 context.Context, arg1 string, arg2 types.ListOpts) ([]string, error)

List mocks base method.

func (*MockBackend) Move added in v1.3.0

func (m *MockBackend) Move(arg0 context.Context, arg1, arg2 string) error

Move mocks base method.

func (*MockBackend) Size

func (m *MockBackend) Size(arg0 context.Context, arg1 string) (int64, error)

Size mocks base method.

func (*MockBackend) Upload

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

Upload mocks base method.

type MockBackendMockRecorder

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

MockBackendMockRecorder is the mock recorder for MockBackend.

func (*MockBackendMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockBackendMockRecorder) Get

func (mr *MockBackendMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockBackendMockRecorder) Info added in v1.2.0

func (mr *MockBackendMockRecorder) Info(arg0, arg1 interface{}) *gomock.Call

Info indicates an expected call of Info.

func (*MockBackendMockRecorder) List added in v1.3.0

func (mr *MockBackendMockRecorder) List(arg0, arg1, arg2 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockBackendMockRecorder) Move added in v1.3.0

func (mr *MockBackendMockRecorder) Move(arg0, arg1, arg2 interface{}) *gomock.Call

Move indicates an expected call of Move.

func (*MockBackendMockRecorder) Size

func (mr *MockBackendMockRecorder) Size(arg0, arg1 interface{}) *gomock.Call

Size indicates an expected call of Size.

func (*MockBackendMockRecorder) Upload

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

Upload indicates an expected call of Upload.

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 added in v1.3.0

func (m *MockS3Client) CopyObject(arg0 context.Context, arg1 *s3.CopyObjectInput, arg2 ...func(*s3.Options)) (*s3.CopyObjectOutput, error)

CopyObject mocks base method.

func (*MockS3Client) DeleteObject

func (m *MockS3Client) DeleteObject(arg0 context.Context, arg1 *s3.DeleteObjectInput, arg2 ...func(*s3.Options)) (*s3.DeleteObjectOutput, error)

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

func (m *MockS3Client) HeadObject(arg0 context.Context, arg1 *s3.HeadObjectInput, arg2 ...func(*s3.Options)) (*s3.HeadObjectOutput, error)

HeadObject mocks base method.

func (*MockS3Client) ListObjectsV2 added in v1.3.0

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

ListObjectsV2 mocks base method.

type MockS3ClientMockRecorder

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

MockS3ClientMockRecorder is the mock recorder for MockS3Client.

func (*MockS3ClientMockRecorder) CopyObject added in v1.3.0

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

CopyObject indicates an expected call of CopyObject.

func (*MockS3ClientMockRecorder) DeleteObject

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

DeleteObject indicates an expected call of DeleteObject.

func (*MockS3ClientMockRecorder) GetObject

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

GetObject indicates an expected call of GetObject.

func (*MockS3ClientMockRecorder) HeadObject

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

HeadObject indicates an expected call of HeadObject.

func (*MockS3ClientMockRecorder) ListObjectsV2 added in v1.3.0

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

ListObjectsV2 indicates an expected call of ListObjectsV2.

Jump to

Keyboard shortcuts

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