losetup

package
v1.12.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachLoopDevice

func AttachLoopDevice(ctx context.Context, executor exec.Interface, imagePath string) (string, error)

func DetachLoopDevice

func DetachLoopDevice(ctx context.Context, executor exec.Interface, devicePath string) error

Types

type LoopDevice

type LoopDevice struct {
	Name        string `json:"name"`
	BackingFile string `json:"back-file"`
}

func ListLoopDevices

func ListLoopDevices(ctx context.Context, executor exec.Interface) ([]*LoopDevice, error)

Jump to

Keyboard shortcuts

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