erofs

package
v1.77.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployer

type Deployer struct {
	// contains filtered or unexported fields
}

Deployer handles package lifecycle using erofs images with dm-verity integrity. Operations are serialized via mutex to prevent concurrent mount/unmount conflicts.

func NewDeployer

func NewDeployer(registry registryService, workingDir string, logger *log.Logger) *Deployer

NewDeployer creates a Deployer for packages.

func (*Deployer) Cleanup

func (d *Deployer) Cleanup(ctx context.Context, preserve []deployer.PreservePackage) error

Cleanup unmounts deployed packages and removes package images not listed in preserve.

func (*Deployer) Deploy

func (d *Deployer) Deploy(ctx context.Context, repo registry.Remote, packageName, deployedName, version string) error

Deploy fetches a package image from the registry and mounts it at the deployed path.

func (*Deployer) Undeploy

func (d *Deployer) Undeploy(ctx context.Context, deployedName string, keep bool) error

Undeploy unmounts the erofs image and closes the dm-verity mapper. If keep=false, the package directory is also deleted.

Jump to

Keyboard shortcuts

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