disk

package
v1.78.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 3 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

func AttachDir

func AttachDir(workingDir string) string

AttachDir returns the directory containing attached package instances.

func AttachPath

func AttachPath(workingDir, instance string) string

AttachPath returns the attachment path for a package instance.

func Instance

func Instance(name, version string) string

Instance is the attach instance of a package version, name@version. The version is part of it, so a Candidate's image never replaces Current's. A version never contains "@": the loader takes it from the mount path after the first "@".

func ValidVersion

func ValidVersion(version string) error

ValidVersion checks that version can key a stored image and an instance: a single path element, never "..", and never "@" (the loader takes the version after the first "@").

Types

type PreservePackage

type PreservePackage struct {
	// Name is the downloaded package directory name.
	Name string
	// Version is the downloaded package version name.
	Version string
	// Repository is the downloaded repository directory name.
	Repository string
}

PreservePackage identifies one downloaded package version to preserve during cleanup.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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