mocks

package
v0.0.0-...-e462338 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storage

NewStorage creates a new instance of Storage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Storage) AllocateNewFile

func (_m *Storage) AllocateNewFile(ctx context.Context, info *models.AllocatedFile) (string, error)

AllocateNewFile provides a mock function with given fields: ctx, info

func (*Storage) AllocatedFileInfo

func (_m *Storage) AllocatedFileInfo(ctx context.Context, id string) (*models.AllocatedFile, error)

AllocatedFileInfo provides a mock function with given fields: ctx, id

func (*Storage) DeleteFile

func (_m *Storage) DeleteFile(ctx context.Context, id string) error

DeleteFile provides a mock function with given fields: ctx, id

func (*Storage) DownloadFile

func (_m *Storage) DownloadFile(id string, stream io.Writer) error

DownloadFile provides a mock function with given fields: id, stream

func (*Storage) FileSize

func (_m *Storage) FileSize(ctx context.Context, id string) (int, error)

FileSize provides a mock function with given fields: ctx, id

func (*Storage) MarkAsUnused

func (_m *Storage) MarkAsUnused(ctx context.Context, fileId string) error

MarkAsUnused provides a mock function with given fields: ctx, fileId

func (*Storage) UploadFileContent

func (_m *Storage) UploadFileContent(id string, content io.Reader) error

UploadFileContent provides a mock function with given fields: id, content

Jump to

Keyboard shortcuts

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