symlink

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: 16 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 symlinks instead of dm-verity mounts. Simpler alternative for environments where dm-verity is unavailable.

func NewDeployer

func NewDeployer(reg 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 removes deployed symlinks and package versions 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 exposes it at the deployed path.

func (*Deployer) Undeploy

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

Undeploy removes the symlink. If keep=false, also deletes the package directory.

Jump to

Keyboard shortcuts

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