Documentation ¶
Overview ¶
Package minioservice is a generated GoMock package.
Index ¶
- Variables
- type MinioService
- type MockMinioService
- func (m *MockMinioService) CreateBucket(ctx context.Context, bucketName string) error
- func (m *MockMinioService) CreateProjectDirs(ctx context.Context, bucketName string) error
- func (m *MockMinioService) DeleteBucket(ctx context.Context, bucketName string) (string, error)
- func (m *MockMinioService) EXPECT() *MockMinioServiceMockRecorder
- type MockMinioServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
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 ¶
DeleteBucket mocks base method.
func (*MockMinioService) EXPECT ¶
func (m *MockMinioService) EXPECT() *MockMinioServiceMockRecorder
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.