2025-01-04 05:30:07 +00:00
|
|
|
package pkgcommon
|
|
|
|
|
|
|
|
// PackageManagerOption defines a functional option for configuring a PackageManager.
|
|
|
|
type PackageManagerOption func(interface{})
|
2025-01-14 15:42:43 +00:00
|
|
|
|
|
|
|
// PackageParser defines an interface for parsing package version information.
|
|
|
|
type PackageParser interface {
|
|
|
|
Parse(output string) (*PackageVersion, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
// PackageVersion represents the installed and candidate versions of a package.
|
|
|
|
type PackageVersion struct {
|
|
|
|
Installed string
|
|
|
|
Candidate string
|
|
|
|
Match bool
|
|
|
|
Message string
|
|
|
|
}
|