Documentation ¶ Index ¶ type Device func New(p string) (*Device, error) func (d *Device) BaseName() string func (d *Device) Copy() backend.DiskBackend func (d *Device) FullPath() string func (d *Device) IsAvailable() (bool, error) func (d *Device) IsLocal() bool func (d *Device) QdevID() string func (d *Device) Size() (uint64, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Device ¶ type Device struct { Path string } func New ¶ func New(p string) (*Device, error) func (*Device) BaseName ¶ func (d *Device) BaseName() string func (*Device) Copy ¶ added in v1.4.1 func (d *Device) Copy() backend.DiskBackend func (*Device) FullPath ¶ added in v1.4.1 func (d *Device) FullPath() string func (*Device) IsAvailable ¶ func (d *Device) IsAvailable() (bool, error) func (*Device) IsLocal ¶ func (d *Device) IsLocal() bool func (*Device) QdevID ¶ func (d *Device) QdevID() string func (*Device) Size ¶ func (d *Device) Size() (uint64, error) Source Files ¶ View all Source files device.go Click to show internal directories. Click to hide internal directories.