loopback

package
v0.0.0-...-e377a08 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loopback

type Loopback struct {
	Name string
	// contains filtered or unexported fields
}

Loopback defines a loopback device

func New

func New() (*Loopback, error)

New finds the first unused loopback device

func (*Loopback) Attach

func (l *Loopback) Attach(file *os.File) error

Attach attaches a given raw file to an loop back device

func (*Loopback) Detach

func (l *Loopback) Detach() error

Detach detaches the device

Jump to

Keyboard shortcuts

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