Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachPath ¶
AttachPath returns the attachment path for a package instance.
func Instance ¶
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 ¶
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.