Documentation ¶
Index ¶
- type Storage
- func (s *Storage) AllocateNewFile(ctx context.Context, fileInfo *models.AllocatedFile) (id string, err error)
- func (s *Storage) AllocatedFileInfo(ctx context.Context, id string) (info *models.AllocatedFile, err error)
- func (s *Storage) Close(ctx context.Context) (err error)
- func (s *Storage) DeleteFile(ctx context.Context, id string) error
- func (s *Storage) DownloadFile(id string, stream io.Writer) error
- func (s *Storage) FileSize(ctx context.Context, id string) (size int, err error)
- func (s *Storage) MarkAsUnused(ctx context.Context, fileId string) error
- func (s *Storage) Open() (err error)
- func (s *Storage) RemoveFromUnused(ctx context.Context, fileId string) error
- func (s *Storage) UnusedFiles(ctx context.Context, until, limit int64) (ids []string, err error)
- func (s *Storage) UpdateStats(ctx context.Context, fileId string, inUse bool) (uses int, err error)
- func (s *Storage) UploadFileContent(id string, content io.Reader) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) AllocateNewFile ¶
func (*Storage) AllocatedFileInfo ¶
func (*Storage) MarkAsUnused ¶
func (*Storage) RemoveFromUnused ¶
func (*Storage) UnusedFiles ¶
func (*Storage) UpdateStats ¶
Click to show internal directories.
Click to hide internal directories.