patchman/common/structs.go

31 lines
684 B
Go

package common
// OSInfo gives some basic information about the system.
type OSInfo struct {
OS string
Distribution string
DistributionLike []string
Version string
KernelRelease string
Architecture string
PackageManager string
}
// ListPackage is a single package and the information about it
type ListPackage struct {
Name string
Source string
Version string
Upgradeable bool
UpgradeableTo string
Architecture string
PackageManager string
}
// PackageList holds a list of ListPackages and some additional metadata
type PackageList struct {
Hostname string
Date int64
List []ListPackage
}