erofs

package
v1.76.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

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