fs

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filesystem

type Filesystem interface {
	// Make creates a new filesystem image.
	Make(tempdir string, rootfs string, eps *common.ExcludePaths, verity verity.VerityMetadata) (io.ReadCloser, string, string, error)
	// ExtractSingle extracts a filesystem image.
	ExtractSingle(fsImgFile string, extractDir string) error
	// Mount mounts a filesystem image on a given mountpoint.
	Mount(fsImgFile, mountpoint, rootHash string) error
	// Unmount umounts a filesystem image.
	Umount(mountpoint string) error
}

type FilesystemType

type FilesystemType string

type FsExtractor

type FsExtractor interface {
	Name() string
	IsAvailable() error
	// Mount - Mount or extract path to dest.
	//   Return nil on "already extracted"
	//   Return error on failure.
	Mount(path, dest string) error
}

Jump to

Keyboard shortcuts

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