mock_interfaces

package
v0.0.0-...-4181ed6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package mock_interfaces is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIPFSClient

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

MockIPFSClient is a mock of IPFSClient interface.

func NewMockIPFSClient

func NewMockIPFSClient(ctrl *gomock.Controller) *MockIPFSClient

NewMockIPFSClient creates a new mock instance.

func (*MockIPFSClient) EXPECT

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

func (*MockIPFSClient) FilesCp

func (m *MockIPFSClient) FilesCp(ctx context.Context, src, dest string) error

FilesCp mocks base method.

func (*MockIPFSClient) FilesLs

func (m *MockIPFSClient) FilesLs(ctx context.Context, path string, options ...shell.FilesOpt) ([]*shell.MfsLsEntry, error)

FilesLs mocks base method.

func (*MockIPFSClient) FilesMkdir

func (m *MockIPFSClient) FilesMkdir(ctx context.Context, path string, options ...shell.FilesOpt) error

FilesMkdir mocks base method.

func (*MockIPFSClient) FilesMv

func (m *MockIPFSClient) FilesMv(ctx context.Context, src, dest string) error

FilesMv mocks base method.

func (*MockIPFSClient) FilesRead

func (m *MockIPFSClient) FilesRead(ctx context.Context, path string, options ...shell.FilesOpt) (io.ReadCloser, error)

FilesRead mocks base method.

func (*MockIPFSClient) FilesRm

func (m *MockIPFSClient) FilesRm(ctx context.Context, path string, force bool) error

FilesRm mocks base method.

func (*MockIPFSClient) FilesStat

func (m *MockIPFSClient) FilesStat(ctx context.Context, path string, options ...shell.FilesOpt) (*shell.FilesStatObject, error)

FilesStat mocks base method.

func (*MockIPFSClient) FilesWrite

func (m *MockIPFSClient) FilesWrite(ctx context.Context, path string, data io.Reader, options ...shell.FilesOpt) error

FilesWrite mocks base method.

func (*MockIPFSClient) GetClientFor

func (m *MockIPFSClient) GetClientFor(ctx context.Context, path string) (interfaces.IPFSFilesAPI, error)

GetClientFor mocks base method.

type MockIPFSClientMockRecorder

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

MockIPFSClientMockRecorder is the mock recorder for MockIPFSClient.

func (*MockIPFSClientMockRecorder) FilesCp

func (mr *MockIPFSClientMockRecorder) FilesCp(ctx, src, dest interface{}) *gomock.Call

FilesCp indicates an expected call of FilesCp.

func (*MockIPFSClientMockRecorder) FilesLs

func (mr *MockIPFSClientMockRecorder) FilesLs(ctx, path interface{}, options ...interface{}) *gomock.Call

FilesLs indicates an expected call of FilesLs.

func (*MockIPFSClientMockRecorder) FilesMkdir

func (mr *MockIPFSClientMockRecorder) FilesMkdir(ctx, path interface{}, options ...interface{}) *gomock.Call

FilesMkdir indicates an expected call of FilesMkdir.

func (*MockIPFSClientMockRecorder) FilesMv

func (mr *MockIPFSClientMockRecorder) FilesMv(ctx, src, dest interface{}) *gomock.Call

FilesMv indicates an expected call of FilesMv.

func (*MockIPFSClientMockRecorder) FilesRead

func (mr *MockIPFSClientMockRecorder) FilesRead(ctx, path interface{}, options ...interface{}) *gomock.Call

FilesRead indicates an expected call of FilesRead.

func (*MockIPFSClientMockRecorder) FilesRm

func (mr *MockIPFSClientMockRecorder) FilesRm(ctx, path, force interface{}) *gomock.Call

FilesRm indicates an expected call of FilesRm.

func (*MockIPFSClientMockRecorder) FilesStat

func (mr *MockIPFSClientMockRecorder) FilesStat(ctx, path interface{}, options ...interface{}) *gomock.Call

FilesStat indicates an expected call of FilesStat.

func (*MockIPFSClientMockRecorder) FilesWrite

func (mr *MockIPFSClientMockRecorder) FilesWrite(ctx, path, data interface{}, options ...interface{}) *gomock.Call

FilesWrite indicates an expected call of FilesWrite.

func (*MockIPFSClientMockRecorder) GetClientFor

func (mr *MockIPFSClientMockRecorder) GetClientFor(ctx, path interface{}) *gomock.Call

GetClientFor indicates an expected call of GetClientFor.

type MockIPFSFilesAPI

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

MockIPFSFilesAPI is a mock of IPFSFilesAPI interface.

func NewMockIPFSFilesAPI

func NewMockIPFSFilesAPI(ctrl *gomock.Controller) *MockIPFSFilesAPI

NewMockIPFSFilesAPI creates a new mock instance.

func (*MockIPFSFilesAPI) EXPECT

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

func (*MockIPFSFilesAPI) FilesCp

func (m *MockIPFSFilesAPI) FilesCp(ctx context.Context, src, dest string) error

FilesCp mocks base method.

func (*MockIPFSFilesAPI) FilesLs

func (m *MockIPFSFilesAPI) FilesLs(ctx context.Context, path string, options ...shell.FilesOpt) ([]*shell.MfsLsEntry, error)

FilesLs mocks base method.

func (*MockIPFSFilesAPI) FilesMkdir

func (m *MockIPFSFilesAPI) FilesMkdir(ctx context.Context, path string, options ...shell.FilesOpt) error

FilesMkdir mocks base method.

func (*MockIPFSFilesAPI) FilesMv

func (m *MockIPFSFilesAPI) FilesMv(ctx context.Context, src, dest string) error

FilesMv mocks base method.

func (*MockIPFSFilesAPI) FilesRead

func (m *MockIPFSFilesAPI) FilesRead(ctx context.Context, path string, options ...shell.FilesOpt) (io.ReadCloser, error)

FilesRead mocks base method.

func (*MockIPFSFilesAPI) FilesRm

func (m *MockIPFSFilesAPI) FilesRm(ctx context.Context, path string, force bool) error

FilesRm mocks base method.

func (*MockIPFSFilesAPI) FilesStat

func (m *MockIPFSFilesAPI) FilesStat(ctx context.Context, path string, options ...shell.FilesOpt) (*shell.FilesStatObject, error)

FilesStat mocks base method.

func (*MockIPFSFilesAPI) FilesWrite

func (m *MockIPFSFilesAPI) FilesWrite(ctx context.Context, path string, data io.Reader, options ...shell.FilesOpt) error

FilesWrite mocks base method.

type MockIPFSFilesAPIMockRecorder

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

MockIPFSFilesAPIMockRecorder is the mock recorder for MockIPFSFilesAPI.

func (*MockIPFSFilesAPIMockRecorder) FilesCp

func (mr *MockIPFSFilesAPIMockRecorder) FilesCp(ctx, src, dest interface{}) *gomock.Call

FilesCp indicates an expected call of FilesCp.

func (*MockIPFSFilesAPIMockRecorder) FilesLs

func (mr *MockIPFSFilesAPIMockRecorder) FilesLs(ctx, path interface{}, options ...interface{}) *gomock.Call

FilesLs indicates an expected call of FilesLs.

func (*MockIPFSFilesAPIMockRecorder) FilesMkdir

func (mr *MockIPFSFilesAPIMockRecorder) FilesMkdir(ctx, path interface{}, options ...interface{}) *gomock.Call

FilesMkdir indicates an expected call of FilesMkdir.

func (*MockIPFSFilesAPIMockRecorder) FilesMv

func (mr *MockIPFSFilesAPIMockRecorder) FilesMv(ctx, src, dest interface{}) *gomock.Call

FilesMv indicates an expected call of FilesMv.

func (*MockIPFSFilesAPIMockRecorder) FilesRead

func (mr *MockIPFSFilesAPIMockRecorder) FilesRead(ctx, path interface{}, options ...interface{}) *gomock.Call

FilesRead indicates an expected call of FilesRead.

func (*MockIPFSFilesAPIMockRecorder) FilesRm

func (mr *MockIPFSFilesAPIMockRecorder) FilesRm(ctx, path, force interface{}) *gomock.Call

FilesRm indicates an expected call of FilesRm.

func (*MockIPFSFilesAPIMockRecorder) FilesStat

func (mr *MockIPFSFilesAPIMockRecorder) FilesStat(ctx, path interface{}, options ...interface{}) *gomock.Call

FilesStat indicates an expected call of FilesStat.

func (*MockIPFSFilesAPIMockRecorder) FilesWrite

func (mr *MockIPFSFilesAPIMockRecorder) FilesWrite(ctx, path, data interface{}, options ...interface{}) *gomock.Call

FilesWrite indicates an expected call of FilesWrite.

type MockR2Client

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

MockR2Client is a mock of R2Client interface.

func NewMockR2Client

func NewMockR2Client(ctrl *gomock.Controller) *MockR2Client

NewMockR2Client creates a new mock instance.

func (*MockR2Client) AbortMultipartUpload

func (m *MockR2Client) AbortMultipartUpload(arg0 context.Context, arg1 *s3.AbortMultipartUploadInput, arg2 ...func(*s3.Options)) (*s3.AbortMultipartUploadOutput, error)

AbortMultipartUpload mocks base method.

func (*MockR2Client) CompleteMultipartUpload

func (m *MockR2Client) CompleteMultipartUpload(arg0 context.Context, arg1 *s3.CompleteMultipartUploadInput, arg2 ...func(*s3.Options)) (*s3.CompleteMultipartUploadOutput, error)

CompleteMultipartUpload mocks base method.

func (*MockR2Client) CopyObject

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

CopyObject mocks base method.

func (*MockR2Client) CreateMultipartUpload

func (m *MockR2Client) CreateMultipartUpload(arg0 context.Context, arg1 *s3.CreateMultipartUploadInput, arg2 ...func(*s3.Options)) (*s3.CreateMultipartUploadOutput, error)

CreateMultipartUpload mocks base method.

func (*MockR2Client) DeleteObjects

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

DeleteObjects mocks base method.

func (*MockR2Client) EXPECT

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

func (*MockR2Client) GetObject

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

GetObject mocks base method.

func (*MockR2Client) HeadObject

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

HeadObject mocks base method.

func (*MockR2Client) ListMultipartUploads

func (m *MockR2Client) ListMultipartUploads(arg0 context.Context, arg1 *s3.ListMultipartUploadsInput, arg2 ...func(*s3.Options)) (*s3.ListMultipartUploadsOutput, error)

ListMultipartUploads mocks base method.

func (*MockR2Client) ListObjectsV2

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

ListObjectsV2 mocks base method.

func (*MockR2Client) ListParts

func (m *MockR2Client) ListParts(arg0 context.Context, arg1 *s3.ListPartsInput, arg2 ...func(*s3.Options)) (*s3.ListPartsOutput, error)

ListParts mocks base method.

func (*MockR2Client) PutObject

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

PutObject mocks base method.

func (*MockR2Client) UploadPart

func (m *MockR2Client) UploadPart(arg0 context.Context, arg1 *s3.UploadPartInput, arg2 ...func(*s3.Options)) (*s3.UploadPartOutput, error)

UploadPart mocks base method.

func (*MockR2Client) UploadPartCopy

func (m *MockR2Client) UploadPartCopy(ctx context.Context, params *s3.UploadPartCopyInput, optFns ...func(*s3.Options)) (*s3.UploadPartCopyOutput, error)

UploadPartCopy mocks base method.

type MockR2ClientMockRecorder

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

MockR2ClientMockRecorder is the mock recorder for MockR2Client.

func (*MockR2ClientMockRecorder) AbortMultipartUpload

func (mr *MockR2ClientMockRecorder) AbortMultipartUpload(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

AbortMultipartUpload indicates an expected call of AbortMultipartUpload.

func (*MockR2ClientMockRecorder) CompleteMultipartUpload

func (mr *MockR2ClientMockRecorder) CompleteMultipartUpload(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

CompleteMultipartUpload indicates an expected call of CompleteMultipartUpload.

func (*MockR2ClientMockRecorder) CopyObject

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

CopyObject indicates an expected call of CopyObject.

func (*MockR2ClientMockRecorder) CreateMultipartUpload

func (mr *MockR2ClientMockRecorder) CreateMultipartUpload(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

CreateMultipartUpload indicates an expected call of CreateMultipartUpload.

func (*MockR2ClientMockRecorder) DeleteObjects

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

DeleteObjects indicates an expected call of DeleteObjects.

func (*MockR2ClientMockRecorder) GetObject

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

GetObject indicates an expected call of GetObject.

func (*MockR2ClientMockRecorder) HeadObject

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

HeadObject indicates an expected call of HeadObject.

func (*MockR2ClientMockRecorder) ListMultipartUploads

func (mr *MockR2ClientMockRecorder) ListMultipartUploads(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ListMultipartUploads indicates an expected call of ListMultipartUploads.

func (*MockR2ClientMockRecorder) ListObjectsV2

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

ListObjectsV2 indicates an expected call of ListObjectsV2.

func (*MockR2ClientMockRecorder) ListParts

func (mr *MockR2ClientMockRecorder) ListParts(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ListParts indicates an expected call of ListParts.

func (*MockR2ClientMockRecorder) PutObject

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

PutObject indicates an expected call of PutObject.

func (*MockR2ClientMockRecorder) UploadPart

func (mr *MockR2ClientMockRecorder) UploadPart(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

UploadPart indicates an expected call of UploadPart.

func (*MockR2ClientMockRecorder) UploadPartCopy

func (mr *MockR2ClientMockRecorder) UploadPartCopy(ctx, params interface{}, optFns ...interface{}) *gomock.Call

UploadPartCopy indicates an expected call of UploadPartCopy.

type MockStorageDriver

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

MockStorageDriver is a mock of StorageDriver interface.

func NewMockStorageDriver

func NewMockStorageDriver(ctrl *gomock.Controller) *MockStorageDriver

NewMockStorageDriver creates a new mock instance.

func (*MockStorageDriver) Delete

func (m *MockStorageDriver) Delete(ctx context.Context, path string) error

Delete mocks base method.

func (*MockStorageDriver) EXPECT

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

func (*MockStorageDriver) GetContent

func (m *MockStorageDriver) GetContent(ctx context.Context, path string) ([]byte, error)

GetContent mocks base method.

func (*MockStorageDriver) List

func (m *MockStorageDriver) List(ctx context.Context, path string) ([]string, error)

List mocks base method.

func (*MockStorageDriver) Move

func (m *MockStorageDriver) Move(ctx context.Context, sourcePath, destPath string) error

Move mocks base method.

func (*MockStorageDriver) Name

func (m *MockStorageDriver) Name() string

Name mocks base method.

func (*MockStorageDriver) PutContent

func (m *MockStorageDriver) PutContent(ctx context.Context, path string, content []byte) error

PutContent mocks base method.

func (*MockStorageDriver) Reader

func (m *MockStorageDriver) Reader(ctx context.Context, path string, offset int64) (io.ReadCloser, error)

Reader mocks base method.

func (*MockStorageDriver) Stat

Stat mocks base method.

func (*MockStorageDriver) URLFor

func (m *MockStorageDriver) URLFor(ctx context.Context, path string, options map[string]interface{}) (string, error)

URLFor mocks base method.

func (*MockStorageDriver) Walk

func (m *MockStorageDriver) Walk(ctx context.Context, path string, f driver.WalkFn) error

Walk mocks base method.

func (*MockStorageDriver) Writer

func (m *MockStorageDriver) Writer(ctx context.Context, path string, append bool) (driver.FileWriter, error)

Writer mocks base method.

type MockStorageDriverMockRecorder

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

MockStorageDriverMockRecorder is the mock recorder for MockStorageDriver.

func (*MockStorageDriverMockRecorder) Delete

func (mr *MockStorageDriverMockRecorder) Delete(ctx, path interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockStorageDriverMockRecorder) GetContent

func (mr *MockStorageDriverMockRecorder) GetContent(ctx, path interface{}) *gomock.Call

GetContent indicates an expected call of GetContent.

func (*MockStorageDriverMockRecorder) List

func (mr *MockStorageDriverMockRecorder) List(ctx, path interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockStorageDriverMockRecorder) Move

func (mr *MockStorageDriverMockRecorder) Move(ctx, sourcePath, destPath interface{}) *gomock.Call

Move indicates an expected call of Move.

func (*MockStorageDriverMockRecorder) Name

Name indicates an expected call of Name.

func (*MockStorageDriverMockRecorder) PutContent

func (mr *MockStorageDriverMockRecorder) PutContent(ctx, path, content interface{}) *gomock.Call

PutContent indicates an expected call of PutContent.

func (*MockStorageDriverMockRecorder) Reader

func (mr *MockStorageDriverMockRecorder) Reader(ctx, path, offset interface{}) *gomock.Call

Reader indicates an expected call of Reader.

func (*MockStorageDriverMockRecorder) Stat

func (mr *MockStorageDriverMockRecorder) Stat(ctx, path interface{}) *gomock.Call

Stat indicates an expected call of Stat.

func (*MockStorageDriverMockRecorder) URLFor

func (mr *MockStorageDriverMockRecorder) URLFor(ctx, path, options interface{}) *gomock.Call

URLFor indicates an expected call of URLFor.

func (*MockStorageDriverMockRecorder) Walk

func (mr *MockStorageDriverMockRecorder) Walk(ctx, path, f interface{}) *gomock.Call

Walk indicates an expected call of Walk.

func (*MockStorageDriverMockRecorder) Writer

func (mr *MockStorageDriverMockRecorder) Writer(ctx, path, append interface{}) *gomock.Call

Writer indicates an expected call of Writer.

Jump to

Keyboard shortcuts

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