pkg

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package pkg is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBucketAccessor

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

MockBucketAccessor is a mock of BucketAccessor interface.

func NewMockBucketAccessor

func NewMockBucketAccessor(ctrl *gomock.Controller) *MockBucketAccessor

NewMockBucketAccessor creates a new mock instance.

func (*MockBucketAccessor) BucketExists

func (m *MockBucketAccessor) BucketExists(ctx context.Context, bucketName string) (bool, error)

BucketExists mocks base method.

func (*MockBucketAccessor) EXPECT

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

func (*MockBucketAccessor) GetBucketLocation

func (m *MockBucketAccessor) GetBucketLocation(ctx context.Context, bucketName string) (string, error)

GetBucketLocation mocks base method.

func (*MockBucketAccessor) GetBucketName

func (m *MockBucketAccessor) GetBucketName() string

GetBucketName mocks base method.

func (*MockBucketAccessor) ListBuckets

func (m *MockBucketAccessor) ListBuckets(ctx context.Context) ([]minio.BucketInfo, error)

ListBuckets mocks base method.

func (*MockBucketAccessor) MakeBucket

func (m *MockBucketAccessor) MakeBucket(ctx context.Context, bucketName string, opts minio.MakeBucketOptions) error

MakeBucket mocks base method.

type MockBucketAccessorMockRecorder

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

MockBucketAccessorMockRecorder is the mock recorder for MockBucketAccessor.

func (*MockBucketAccessorMockRecorder) BucketExists

func (mr *MockBucketAccessorMockRecorder) BucketExists(ctx, bucketName interface{}) *gomock.Call

BucketExists indicates an expected call of BucketExists.

func (*MockBucketAccessorMockRecorder) GetBucketLocation

func (mr *MockBucketAccessorMockRecorder) GetBucketLocation(ctx, bucketName interface{}) *gomock.Call

GetBucketLocation indicates an expected call of GetBucketLocation.

func (*MockBucketAccessorMockRecorder) GetBucketName

func (mr *MockBucketAccessorMockRecorder) GetBucketName() *gomock.Call

GetBucketName indicates an expected call of GetBucketName.

func (*MockBucketAccessorMockRecorder) ListBuckets

func (mr *MockBucketAccessorMockRecorder) ListBuckets(ctx interface{}) *gomock.Call

ListBuckets indicates an expected call of ListBuckets.

func (*MockBucketAccessorMockRecorder) MakeBucket

func (mr *MockBucketAccessorMockRecorder) MakeBucket(ctx, bucketName, opts interface{}) *gomock.Call

MakeBucket indicates an expected call of MakeBucket.

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

func (m *MockClient) BucketExists(ctx context.Context, bucketName string) (bool, error)

BucketExists mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetBucketLocation

func (m *MockClient) GetBucketLocation(ctx context.Context, bucketName string) (string, error)

GetBucketLocation mocks base method.

func (*MockClient) GetBucketName

func (m *MockClient) GetBucketName() string

GetBucketName mocks base method.

func (*MockClient) GetObject

func (m *MockClient) GetObject(ctx context.Context, bucketName, objectName string, opts minio.GetObjectOptions) (*minio.Object, error)

GetObject mocks base method.

func (*MockClient) GetObjectTagging

func (m *MockClient) GetObjectTagging(ctx context.Context, bucketName, objectName string, opts minio.GetObjectTaggingOptions) (*tags.Tags, error)

GetObjectTagging mocks base method.

func (*MockClient) GetPluginName

func (m *MockClient) GetPluginName() string

GetPluginName mocks base method.

func (*MockClient) HealthCheck

func (m *MockClient) HealthCheck(hcDuration time.Duration) (context.CancelFunc, error)

HealthCheck mocks base method.

func (*MockClient) IsOffline

func (m *MockClient) IsOffline() bool

IsOffline mocks base method.

func (*MockClient) ListBuckets

func (m *MockClient) ListBuckets(ctx context.Context) ([]minio.BucketInfo, error)

ListBuckets mocks base method.

func (*MockClient) ListObjects

func (m *MockClient) ListObjects(ctx context.Context, bucketName string, opts minio.ListObjectsOptions) <-chan minio.ObjectInfo

ListObjects mocks base method.

func (*MockClient) MakeBucket

func (m *MockClient) MakeBucket(ctx context.Context, bucketName string, opts minio.MakeBucketOptions) error

MakeBucket mocks base method.

func (*MockClient) PutObject

func (m *MockClient) PutObject(ctx context.Context, bucketName, objectName string, reader io.Reader, objectSize int64, opts minio.PutObjectOptions) (minio.UploadInfo, error)

PutObject mocks base method.

func (*MockClient) RemoveObject

func (m *MockClient) RemoveObject(ctx context.Context, bucketName, objectName string, opts minio.RemoveObjectOptions) error

RemoveObject mocks base method.

func (*MockClient) StatObject

func (m *MockClient) StatObject(ctx context.Context, bucketName, objectName string, opts minio.StatObjectOptions) (minio.ObjectInfo, error)

StatObject mocks base method.

type MockClientChecker

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

MockClientChecker is a mock of ClientChecker interface.

func NewMockClientChecker

func NewMockClientChecker(ctrl *gomock.Controller) *MockClientChecker

NewMockClientChecker creates a new mock instance.

func (*MockClientChecker) EXPECT

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

func (*MockClientChecker) HealthCheck

func (m *MockClientChecker) HealthCheck(hcDuration time.Duration) (context.CancelFunc, error)

HealthCheck mocks base method.

func (*MockClientChecker) IsOffline

func (m *MockClientChecker) IsOffline() bool

IsOffline mocks base method.

type MockClientCheckerMockRecorder

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

MockClientCheckerMockRecorder is the mock recorder for MockClientChecker.

func (*MockClientCheckerMockRecorder) HealthCheck

func (mr *MockClientCheckerMockRecorder) HealthCheck(hcDuration interface{}) *gomock.Call

HealthCheck indicates an expected call of HealthCheck.

func (*MockClientCheckerMockRecorder) IsOffline

func (mr *MockClientCheckerMockRecorder) IsOffline() *gomock.Call

IsOffline indicates an expected call of IsOffline.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) BucketExists

func (mr *MockClientMockRecorder) BucketExists(ctx, bucketName interface{}) *gomock.Call

BucketExists indicates an expected call of BucketExists.

func (*MockClientMockRecorder) GetBucketLocation

func (mr *MockClientMockRecorder) GetBucketLocation(ctx, bucketName interface{}) *gomock.Call

GetBucketLocation indicates an expected call of GetBucketLocation.

func (*MockClientMockRecorder) GetBucketName

func (mr *MockClientMockRecorder) GetBucketName() *gomock.Call

GetBucketName indicates an expected call of GetBucketName.

func (*MockClientMockRecorder) GetObject

func (mr *MockClientMockRecorder) GetObject(ctx, bucketName, objectName, opts interface{}) *gomock.Call

GetObject indicates an expected call of GetObject.

func (*MockClientMockRecorder) GetObjectTagging

func (mr *MockClientMockRecorder) GetObjectTagging(ctx, bucketName, objectName, opts interface{}) *gomock.Call

GetObjectTagging indicates an expected call of GetObjectTagging.

func (*MockClientMockRecorder) GetPluginName

func (mr *MockClientMockRecorder) GetPluginName() *gomock.Call

GetPluginName indicates an expected call of GetPluginName.

func (*MockClientMockRecorder) HealthCheck

func (mr *MockClientMockRecorder) HealthCheck(hcDuration interface{}) *gomock.Call

HealthCheck indicates an expected call of HealthCheck.

func (*MockClientMockRecorder) IsOffline

func (mr *MockClientMockRecorder) IsOffline() *gomock.Call

IsOffline indicates an expected call of IsOffline.

func (*MockClientMockRecorder) ListBuckets

func (mr *MockClientMockRecorder) ListBuckets(ctx interface{}) *gomock.Call

ListBuckets indicates an expected call of ListBuckets.

func (*MockClientMockRecorder) ListObjects

func (mr *MockClientMockRecorder) ListObjects(ctx, bucketName, opts interface{}) *gomock.Call

ListObjects indicates an expected call of ListObjects.

func (*MockClientMockRecorder) MakeBucket

func (mr *MockClientMockRecorder) MakeBucket(ctx, bucketName, opts interface{}) *gomock.Call

MakeBucket indicates an expected call of MakeBucket.

func (*MockClientMockRecorder) PutObject

func (mr *MockClientMockRecorder) PutObject(ctx, bucketName, objectName, reader, objectSize, opts interface{}) *gomock.Call

PutObject indicates an expected call of PutObject.

func (*MockClientMockRecorder) RemoveObject

func (mr *MockClientMockRecorder) RemoveObject(ctx, bucketName, objectName, opts interface{}) *gomock.Call

RemoveObject indicates an expected call of RemoveObject.

func (*MockClientMockRecorder) StatObject

func (mr *MockClientMockRecorder) StatObject(ctx, bucketName, objectName, opts interface{}) *gomock.Call

StatObject indicates an expected call of StatObject.

type MockObjectAccessor

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

MockObjectAccessor is a mock of ObjectAccessor interface.

func NewMockObjectAccessor

func NewMockObjectAccessor(ctrl *gomock.Controller) *MockObjectAccessor

NewMockObjectAccessor creates a new mock instance.

func (*MockObjectAccessor) EXPECT

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

func (*MockObjectAccessor) GetObject

func (m *MockObjectAccessor) GetObject(ctx context.Context, bucketName, objectName string, opts minio.GetObjectOptions) (*minio.Object, error)

GetObject mocks base method.

func (*MockObjectAccessor) GetObjectTagging

func (m *MockObjectAccessor) GetObjectTagging(ctx context.Context, bucketName, objectName string, opts minio.GetObjectTaggingOptions) (*tags.Tags, error)

GetObjectTagging mocks base method.

func (*MockObjectAccessor) ListObjects

func (m *MockObjectAccessor) ListObjects(ctx context.Context, bucketName string, opts minio.ListObjectsOptions) <-chan minio.ObjectInfo

ListObjects mocks base method.

func (*MockObjectAccessor) PutObject

func (m *MockObjectAccessor) PutObject(ctx context.Context, bucketName, objectName string, reader io.Reader, objectSize int64, opts minio.PutObjectOptions) (minio.UploadInfo, error)

PutObject mocks base method.

func (*MockObjectAccessor) RemoveObject

func (m *MockObjectAccessor) RemoveObject(ctx context.Context, bucketName, objectName string, opts minio.RemoveObjectOptions) error

RemoveObject mocks base method.

func (*MockObjectAccessor) StatObject

func (m *MockObjectAccessor) StatObject(ctx context.Context, bucketName, objectName string, opts minio.StatObjectOptions) (minio.ObjectInfo, error)

StatObject mocks base method.

type MockObjectAccessorMockRecorder

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

MockObjectAccessorMockRecorder is the mock recorder for MockObjectAccessor.

func (*MockObjectAccessorMockRecorder) GetObject

func (mr *MockObjectAccessorMockRecorder) GetObject(ctx, bucketName, objectName, opts interface{}) *gomock.Call

GetObject indicates an expected call of GetObject.

func (*MockObjectAccessorMockRecorder) GetObjectTagging

func (mr *MockObjectAccessorMockRecorder) GetObjectTagging(ctx, bucketName, objectName, opts interface{}) *gomock.Call

GetObjectTagging indicates an expected call of GetObjectTagging.

func (*MockObjectAccessorMockRecorder) ListObjects

func (mr *MockObjectAccessorMockRecorder) ListObjects(ctx, bucketName, opts interface{}) *gomock.Call

ListObjects indicates an expected call of ListObjects.

func (*MockObjectAccessorMockRecorder) PutObject

func (mr *MockObjectAccessorMockRecorder) PutObject(ctx, bucketName, objectName, reader, objectSize, opts interface{}) *gomock.Call

PutObject indicates an expected call of PutObject.

func (*MockObjectAccessorMockRecorder) RemoveObject

func (mr *MockObjectAccessorMockRecorder) RemoveObject(ctx, bucketName, objectName, opts interface{}) *gomock.Call

RemoveObject indicates an expected call of RemoveObject.

func (*MockObjectAccessorMockRecorder) StatObject

func (mr *MockObjectAccessorMockRecorder) StatObject(ctx, bucketName, objectName, opts interface{}) *gomock.Call

StatObject indicates an expected call of StatObject.

Jump to

Keyboard shortcuts

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