Documentation ¶ Index ¶ type Device func New(p string) (*Device, error) func (d *Device) BaseName() string func (d *Device) IsAvailable() (bool, error) func (d *Device) IsLocal() bool func (d *Device) QdevID() string func (d *Device) Size() (uint64, error) type URI func ParseURI(rawuri string) (*URI, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Device ¶ type Device struct { Path string URI *URI } func New ¶ func New(p string) (*Device, error) func (*Device) BaseName ¶ func (d *Device) BaseName() 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) type URI ¶ type URI struct { Scheme string Authority string Host string Port int ExportName string } func ParseURI ¶ func ParseURI(rawuri string) (*URI, error) nbd://example.com:10809/export Source Files ¶ View all Source files device.go uri.go Click to show internal directories. Click to hide internal directories.