Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrKernelModuleNotLoaded = errors.New("nbd kernel module is not loaded") ErrNoDeviceAvailable = errors.New("no device is available") )
Functions ¶
func IsModuleLoaded ¶
func IsModuleLoaded() bool
func IsSupported ¶
func IsSupported() bool
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func ConnectImage ¶
func ConnectImage(path string) (conn *Connection, err error)
func (*Connection) DevPath ¶
func (c *Connection) DevPath() string
func (*Connection) Disconnect ¶
func (c *Connection) Disconnect() error
func (*Connection) SourcePath ¶
func (c *Connection) SourcePath() string
Click to show internal directories.
Click to hide internal directories.