Versions in this module Expand all Collapse all v1 v1.2.0 Dec 17, 2021 Changes in this version + func CompareVersions(a, b string) int v1.1.1 Oct 31, 2021 Changes in this version type Dependency + Name func() string v1.1.0 Oct 31, 2021 Changes in this version + func Compare(a, b Version) int + func Sort(x []*Package) + type PackageSlice []*Package + func (x PackageSlice) Len() int + func (x PackageSlice) Less(i, j int) bool + func (x PackageSlice) Sort() + func (x PackageSlice) Swap(i, j int) + type Version interface + Epoch func() int + Release func() string + Version func() string v1.0.1 Oct 29, 2021 v1.0.0 Oct 29, 2021 Changes in this version + const DepFlagAny + const DepFlagEqual + const DepFlagGreater + const DepFlagGreaterOrEqual + const DepFlagLesser + const DepFlagLesserOrEqual + const DepFlagPrereq + const DepFlagRpmlib + const DepFlagScriptPost + const DepFlagScriptPostUn + const DepFlagScriptPre + const DepFlagScriptPreUn + const FileFlagArtifact + const FileFlagConfig + const FileFlagDoc + const FileFlagGhost + const FileFlagIcon + const FileFlagLicense + const FileFlagMissingOk + const FileFlagNoReplace + const FileFlagNone + const FileFlagPubkey + const FileFlagReadme + const TimeFormat + var ErrGPGCheckFailed = fmt.Errorf("GPG signature validation failed") + var ErrMD5CheckFailed = fmt.Errorf("MD5 checksum validation failed") + var ErrNotRPMFile = errorf("invalid file descriptor") + func GPGCheck(r io.Reader, keyring openpgp.KeyRing) (string, error) + func MD5Check(r io.Reader) error + func OpenKeyRing(name ...string) (openpgp.KeyRing, error) + func ReadKeyRing(r io.Reader) (openpgp.KeyRing, error) + type Dependency interface + Flags func() int + type FileInfo struct + func (f *FileInfo) Digest() string + func (f *FileInfo) Flags() int64 + func (f *FileInfo) Group() string + func (f *FileInfo) IsDir() bool + func (f *FileInfo) Linkname() string + func (f *FileInfo) ModTime() time.Time + func (f *FileInfo) Mode() os.FileMode + func (f *FileInfo) Name() string + func (f *FileInfo) Owner() string + func (f *FileInfo) Size() int64 + func (f *FileInfo) String() string + func (f *FileInfo) Sys() interface{} + type GPGSignature []byte + func (b GPGSignature) String() string + type Header struct + Tags map[int]*Tag + Version int + func (c *Header) GetTag(id int) *Tag + type Lead struct + Architecture int + Name string + OperatingSystem int + SignatureType int + Type int + VersionMajor int + VersionMinor int + type Package struct + Header Header + Lead Lead + Signature Header + func Open(name string) (*Package, error) + func Read(r io.Reader) (*Package, error) + func (c *Package) Architecture() string + func (c *Package) ArchiveSize() uint64 + func (c *Package) BuildHost() string + func (c *Package) BuildTime() time.Time + func (c *Package) ChangeLog() []string + func (c *Package) ChecksumType() string + func (c *Package) Conflicts() []Dependency + func (c *Package) Description() string + func (c *Package) Distribution() string + func (c *Package) Enhances() []Dependency + func (c *Package) Epoch() int + func (c *Package) Files() []FileInfo + func (c *Package) GIFImage() []byte + func (c *Package) GPGSignature() GPGSignature + func (c *Package) Groups() []string + func (c *Package) Icon() []byte + func (c *Package) InstallTime() time.Time + func (c *Package) License() string + func (c *Package) Name() string + func (c *Package) Obsoletes() []Dependency + func (c *Package) OldFilenames() []string + func (c *Package) OperatingSystem() string + func (c *Package) Packager() string + func (c *Package) Patch() []string + func (c *Package) PayloadCompression() string + func (c *Package) PayloadFormat() string + func (c *Package) Platform() string + func (c *Package) PostInstallScript() string + func (c *Package) PostUninstallScript() string + func (c *Package) PreInstallScript() string + func (c *Package) PreUninstallScript() string + func (c *Package) Provides() []Dependency + func (c *Package) RPMVersion() string + func (c *Package) Recommends() []Dependency + func (c *Package) Release() string + func (c *Package) Requires() []Dependency + func (c *Package) Size() uint64 + func (c *Package) Source() []string + func (c *Package) SourceRPM() string + func (c *Package) String() string + func (c *Package) Suggests() []Dependency + func (c *Package) Summary() string + func (c *Package) Supplements() []Dependency + func (c *Package) URL() string + func (c *Package) Vendor() string + func (c *Package) Version() string + func (c *Package) XPMImage() []byte + type Tag struct + ID int + Type TagType + Value interface{} + func (c *Tag) Bytes() []byte + func (c *Tag) Int64() int64 + func (c *Tag) Int64Slice() []int64 + func (c *Tag) String() string + func (c *Tag) StringSlice() []string + type TagType int + const TagTypeBinary + const TagTypeChar + const TagTypeI18NString + const TagTypeInt16 + const TagTypeInt32 + const TagTypeInt64 + const TagTypeInt8 + const TagTypeNull + const TagTypeString + const TagTypeStringArray + func (i TagType) String() string