Documentation ¶
Index ¶
- type Storage
- func (_m *Storage) AllocateNewFile(ctx context.Context, info *models.AllocatedFile) (string, error)
- func (_m *Storage) AllocatedFileInfo(ctx context.Context, id string) (*models.AllocatedFile, error)
- func (_m *Storage) DeleteFile(ctx context.Context, id string) error
- func (_m *Storage) DownloadFile(id string, stream io.Writer) error
- func (_m *Storage) FileSize(ctx context.Context, id string) (int, error)
- func (_m *Storage) MarkAsUnused(ctx context.Context, fileId string) error
- func (_m *Storage) UploadFileContent(id string, content io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶
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 ¶
AllocateNewFile provides a mock function with given fields: ctx, info
func (*Storage) AllocatedFileInfo ¶
AllocatedFileInfo provides a mock function with given fields: ctx, id
func (*Storage) DeleteFile ¶
DeleteFile provides a mock function with given fields: ctx, id
func (*Storage) DownloadFile ¶
DownloadFile provides a mock function with given fields: id, stream
func (*Storage) MarkAsUnused ¶
MarkAsUnused provides a mock function with given fields: ctx, fileId
Click to show internal directories.
Click to hide internal directories.