Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { DeviceID int MountPoint string DeviceSerial string AvailableSpace uint64 AllocatedSpace uint64 }
Device represents a mount point on the system that can be used for backing up files
func MakeDevice ¶
MakeDevice creates a device based on the provided path and optional serial
func (*Device) RemainingSpace ¶
RemainingSpace returns the amount of space remaining on the device
func (*Device) ReserveSpace ¶
ReserveSpace reserves the requested space on the device Space can be negative, to free allocated space
Click to show internal directories.
Click to hide internal directories.