mock_s3

package
v0.0.0-...-ff35399 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_s3 is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateS3ObjectFromFile

func CreateS3ObjectFromFile(file string) (s3.Object, error)

CreateS3ObjectFromFile creates a mock S§ Object from a file

Types

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetObject

func (m *MockClient) GetObject(bucketName, objectName string) (s3.Object, error)

GetObject mocks base method.

func (*MockClient) RemoveObject

func (m *MockClient) RemoveObject(bucketName, key string) error

RemoveObject mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) GetObject

func (mr *MockClientMockRecorder) GetObject(bucketName, objectName any) *gomock.Call

GetObject indicates an expected call of GetObject.

func (*MockClientMockRecorder) RemoveObject

func (mr *MockClientMockRecorder) RemoveObject(bucketName, key any) *gomock.Call

RemoveObject indicates an expected call of RemoveObject.

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) Close

func (m *MockObject) Close() error

Close mocks base method.

func (*MockObject) EXPECT

func (m *MockObject) EXPECT() *MockObjectMockRecorder

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

func (*MockObject) Read

func (m *MockObject) Read(p []byte) (int, error)

Read mocks base method.

func (*MockObject) Stat

func (m *MockObject) Stat() (minio.ObjectInfo, error)

Stat mocks base method.

type MockObjectMockRecorder

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

MockObjectMockRecorder is the mock recorder for MockObject.

func (*MockObjectMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockObjectMockRecorder) Read

func (mr *MockObjectMockRecorder) Read(p any) *gomock.Call

Read indicates an expected call of Read.

func (*MockObjectMockRecorder) Stat

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

Stat indicates an expected call of Stat.

Jump to

Keyboard shortcuts

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