Documentation
¶
Overview ¶
Package differ provides functionality to compare two apko lock files and identify changes in package versions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindPackageVersion ¶
FindPackageVersion returns the resolved version of the named package from the lock file. It searches across all architectures and returns the first match. For a well-formed lock file where all architectures agree on the version this is sufficient.
Types ¶
type PackageChange ¶
type PackageChange struct {
Name string
OldVersion string // empty string when the package is newly added
NewVersion string // empty string when the package was removed
Architecture string // the architecture of the package
}
PackageChange describes a version change for a single package.
type Result ¶
type Result struct {
// Changes lists every package whose version changed, was added, or removed.
Changes []PackageChange
}
Result is the outcome of diffing two lock files.
Click to show internal directories.
Click to hide internal directories.