Documentation ¶
Overview ¶
nbd provides methods for working with Network Block Devices. This relies on the nbd kernel module which can be checked for using the Ready() function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoDeviceAvailable = errors.New("no available nbds found")
)
View Source
var ExternalDependencies = []string{
"lsmod",
"modprobe",
"qemu-nbd",
}
Functions ¶
func ConnectImage ¶
ConnectImage exports a image using the NBD protocol using the qemu-nbd. If successful, returns the NBD device.
func DisconnectDevice ¶
DisconnectDevice disconnects a given NBD using qemu-nbd.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.