nbd

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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) 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)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL