Documentation ¶
Overview ¶
spaceallocator helper used to allocate disk space.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoAllocation = errors.New("no allocation in progress") ErrNoSpace = errors.New("not enough space") )
Functions ¶
This section is empty.
Types ¶
type Allocator ¶
type Allocator interface { AllocateSpace(size uint64) (Space, error) FreeSpace(size uint64) AddOutdatedItem(id string, size uint64, timestamp time.Time) error RestoreOutdatedItem(id string) Close() error }
Allocator space allocator interface.
type ItemRemover ¶
ItemRemover requests to remove item in order to free space.
Click to show internal directories.
Click to hide internal directories.