Documentation
¶
Index ¶
Constants ¶
View Source
const ( Upgraded = -1 Downgraded = 1 Added = 2 )
Variables ¶
This section is empty.
Functions ¶
func CompareVersions ¶
compareVersions has the same behavior as cmp.Compare, but for package versions. It parses both version strings and checks for differences in major, minor, patch, pre-release, etc.
func DiffPackages ¶
func DiffPackages(oldPackages, newPackages Package) ([]PackageDiff, []PackageDiff, []PackageDiff, []PackageDiff)
PackageDiff returns the difference in packages between two images, organized into four slices: Added, Upgraded, Downgraded, and Removed packages, respectively.
Types ¶
type PackageDiff ¶
Click to show internal directories.
Click to hide internal directories.