minioservice

package
v0.0.0-...-f20d134 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package minioservice is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBucketAlreadyExists = errors.New("bucket already exists in Minio")
)

Functions

This section is empty.

Types

type MinioService

type MinioService interface {
	CreateBucket(ctx context.Context, bucketName string) error
	CreateProjectDirs(ctx context.Context, bucketName string) error
	DeleteBucket(ctx context.Context, bucketName string) (string, error)
}

MinioService defines all Minio operations.

func NewMinioService

func NewMinioService(logger logr.Logger, url, accessKey, secretKey string) (MinioService, error)

NewMinioService is a constructor function.

type MockMinioService

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

MockMinioService is a mock of MinioService interface.

func NewMockMinioService

func NewMockMinioService(ctrl *gomock.Controller) *MockMinioService

NewMockMinioService creates a new mock instance.

func (*MockMinioService) CreateBucket

func (m *MockMinioService) CreateBucket(ctx context.Context, bucketName string) error

CreateBucket mocks base method.

func (*MockMinioService) CreateProjectDirs

func (m *MockMinioService) CreateProjectDirs(ctx context.Context, bucketName string) error

CreateProjectDirs mocks base method.

func (*MockMinioService) DeleteBucket

func (m *MockMinioService) DeleteBucket(ctx context.Context, bucketName string) (string, error)

DeleteBucket mocks base method.

func (*MockMinioService) EXPECT

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

type MockMinioServiceMockRecorder

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

MockMinioServiceMockRecorder is the mock recorder for MockMinioService.

func (*MockMinioServiceMockRecorder) CreateBucket

func (mr *MockMinioServiceMockRecorder) CreateBucket(ctx, bucketName interface{}) *gomock.Call

CreateBucket indicates an expected call of CreateBucket.

func (*MockMinioServiceMockRecorder) CreateProjectDirs

func (mr *MockMinioServiceMockRecorder) CreateProjectDirs(ctx, bucketName interface{}) *gomock.Call

CreateProjectDirs indicates an expected call of CreateProjectDirs.

func (*MockMinioServiceMockRecorder) DeleteBucket

func (mr *MockMinioServiceMockRecorder) DeleteBucket(ctx, bucketName interface{}) *gomock.Call

DeleteBucket indicates an expected call of DeleteBucket.

Jump to

Keyboard shortcuts

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