Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStorage ¶
type FileStorage interface {
GetBucket(id bucket.ID) (path string, unlock func(), err error)
GetFile(bucketID bucket.ID, file string) (path string, unlock func(), err error)
CreateBucket(id bucket.ID, trashTime time.Time) (path string, commit, abort func() error, err error)
CreateFile(bucketID bucket.ID, file string) (path string, commit, abort func() error, err error)
DownloadBucket(ctx context.Context, endpoint string, id bucket.ID, trashTime time.Time) error
DownloadFile(ctx context.Context, endpoint string, bucketID bucket.ID, file string) error
DeleteFile(bucketID bucket.ID, file string) error
Shutdown()
}
Click to show internal directories.
Click to hide internal directories.