mock

package
v0.2.3-hf.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockObject

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

MockObject is a mock of Object interface.

func NewMockObject

func NewMockObject(ctrl *gomock.Controller) *MockObject

NewMockObject creates a new mock instance.

func (*MockObject) EXPECT

func (m *MockObject) EXPECT() *MockObjectMockRecorder

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

func (m *MockObject) IsSymlink() bool

IsSymlink mocks base method.

func (*MockObject) Key

func (m *MockObject) Key() string

Key mocks base method.

func (*MockObject) ModTime

func (m *MockObject) ModTime() time.Time

ModTime mocks base method.

func (*MockObject) Size

func (m *MockObject) Size() int64

Size mocks base method.

type MockObjectMockRecorder

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

MockObjectMockRecorder is the mock recorder for MockObject.

func (mr *MockObjectMockRecorder) IsSymlink() *gomock.Call

IsSymlink indicates an expected call of IsSymlink.

func (*MockObjectMockRecorder) Key

func (mr *MockObjectMockRecorder) Key() *gomock.Call

Key indicates an expected call of Key.

func (*MockObjectMockRecorder) ModTime

func (mr *MockObjectMockRecorder) ModTime() *gomock.Call

ModTime indicates an expected call of ModTime.

func (*MockObjectMockRecorder) Size

func (mr *MockObjectMockRecorder) Size() *gomock.Call

Size indicates an expected call of Size.

type MockObjectStorage

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

MockObjectStorage is a mock of ObjectStorage interface.

func NewMockObjectStorage

func NewMockObjectStorage(ctrl *gomock.Controller) *MockObjectStorage

NewMockObjectStorage creates a new mock instance.

func (*MockObjectStorage) CreateBucket

func (m *MockObjectStorage) CreateBucket(ctx context.Context) error

CreateBucket mocks base method.

func (*MockObjectStorage) DeleteObject

func (m *MockObjectStorage) DeleteObject(ctx context.Context, key string) error

DeleteObject mocks base method.

func (*MockObjectStorage) EXPECT

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

func (*MockObjectStorage) GetObject

func (m *MockObjectStorage) GetObject(ctx context.Context, key string, offset, limit int64) (io.ReadCloser, error)

GetObject mocks base method.

func (*MockObjectStorage) HeadBucket

func (m *MockObjectStorage) HeadBucket(ctx context.Context) error

HeadBucket mocks base method.

func (*MockObjectStorage) HeadObject

func (m *MockObjectStorage) HeadObject(ctx context.Context, key string) (storage.Object, error)

HeadObject mocks base method.

func (*MockObjectStorage) ListAllObjects

func (m *MockObjectStorage) ListAllObjects(ctx context.Context, prefix, marker string) (<-chan storage.Object, error)

ListAllObjects mocks base method.

func (*MockObjectStorage) ListObjects

func (m *MockObjectStorage) ListObjects(ctx context.Context, prefix, marker, delimiter string, limit int64) ([]storage.Object, error)

ListObjects mocks base method.

func (*MockObjectStorage) PutObject

func (m *MockObjectStorage) PutObject(ctx context.Context, key string, reader io.Reader) error

PutObject mocks base method.

func (*MockObjectStorage) String

func (m *MockObjectStorage) String() string

String mocks base method.

type MockObjectStorageMockRecorder

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

MockObjectStorageMockRecorder is the mock recorder for MockObjectStorage.

func (*MockObjectStorageMockRecorder) CreateBucket

func (mr *MockObjectStorageMockRecorder) CreateBucket(ctx interface{}) *gomock.Call

CreateBucket indicates an expected call of CreateBucket.

func (*MockObjectStorageMockRecorder) DeleteObject

func (mr *MockObjectStorageMockRecorder) DeleteObject(ctx, key interface{}) *gomock.Call

DeleteObject indicates an expected call of DeleteObject.

func (*MockObjectStorageMockRecorder) GetObject

func (mr *MockObjectStorageMockRecorder) GetObject(ctx, key, offset, limit interface{}) *gomock.Call

GetObject indicates an expected call of GetObject.

func (*MockObjectStorageMockRecorder) HeadBucket

func (mr *MockObjectStorageMockRecorder) HeadBucket(ctx interface{}) *gomock.Call

HeadBucket indicates an expected call of HeadBucket.

func (*MockObjectStorageMockRecorder) HeadObject

func (mr *MockObjectStorageMockRecorder) HeadObject(ctx, key interface{}) *gomock.Call

HeadObject indicates an expected call of HeadObject.

func (*MockObjectStorageMockRecorder) ListAllObjects

func (mr *MockObjectStorageMockRecorder) ListAllObjects(ctx, prefix, marker interface{}) *gomock.Call

ListAllObjects indicates an expected call of ListAllObjects.

func (*MockObjectStorageMockRecorder) ListObjects

func (mr *MockObjectStorageMockRecorder) ListObjects(ctx, prefix, marker, delimiter, limit interface{}) *gomock.Call

ListObjects indicates an expected call of ListObjects.

func (*MockObjectStorageMockRecorder) PutObject

func (mr *MockObjectStorageMockRecorder) PutObject(ctx, key, reader interface{}) *gomock.Call

PutObject indicates an expected call of PutObject.

func (*MockObjectStorageMockRecorder) String

String indicates an expected call of String.

Jump to

Keyboard shortcuts

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