nbd

package
v0.0.0-...-4cdd93b Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

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

Jump to

Keyboard shortcuts

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