image

package
v0.0.0-...-f15602e Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package image is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStorage

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

MockStorage is a mock of Storage interface.

func NewMockStorage

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

NewMockStorage creates a new mock instance.

func (*MockStorage) BulkRemove

func (m *MockStorage) BulkRemove(ctx context.Context, names []string) error

BulkRemove mocks base method.

func (*MockStorage) BulkUpload

func (m *MockStorage) BulkUpload(ctx context.Context, props []*StorageProps) error

BulkUpload mocks base method.

func (*MockStorage) EXPECT

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

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

func (*MockStorage) Remove

func (m *MockStorage) Remove(ctx context.Context, name string) error

Remove mocks base method.

func (*MockStorage) Upload

func (m *MockStorage) Upload(ctx context.Context, props *StorageProps) error

Upload mocks base method.

type MockStorageMockRecorder

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

MockStorageMockRecorder is the mock recorder for MockStorage.

func (*MockStorageMockRecorder) BulkRemove

func (mr *MockStorageMockRecorder) BulkRemove(ctx, names any) *gomock.Call

BulkRemove indicates an expected call of BulkRemove.

func (*MockStorageMockRecorder) BulkUpload

func (mr *MockStorageMockRecorder) BulkUpload(ctx, props any) *gomock.Call

BulkUpload indicates an expected call of BulkUpload.

func (*MockStorageMockRecorder) Remove

func (mr *MockStorageMockRecorder) Remove(ctx, name any) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockStorageMockRecorder) Upload

func (mr *MockStorageMockRecorder) Upload(ctx, props any) *gomock.Call

Upload indicates an expected call of Upload.

type Storage

type Storage interface {
	Upload(ctx context.Context, props *StorageProps) error
	BulkUpload(ctx context.Context, props []*StorageProps) error
	Remove(ctx context.Context, name string) error
	BulkRemove(ctx context.Context, names []string) error
}

Storage represents file store.

type StorageProps

type StorageProps struct {
	Name        string
	Reader      io.Reader
	Size        int64
	ContentType string
}

StorageProps represents image storage fields.

Directories

Path Synopsis
Package storage contains implementations for file storage
Package storage contains implementations for file storage

Jump to

Keyboard shortcuts

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