Documentation ¶
Index ¶
- type Package
- func (p *Package) Architecture() string
- func (p *Package) Backup() alpm.BackupList
- func (p *Package) Base() string
- func (p *Package) Base64Signature() string
- func (p *Package) BuildDate() time.Time
- func (p *Package) CheckDepends() alpm.DependList
- func (p *Package) ComputeOptionalFor() []string
- func (p *Package) ComputeRequiredBy() []string
- func (p *Package) Conflicts() alpm.DependList
- func (p *Package) ContainsFile(path string) (alpm.File, error)
- func (p *Package) DB() alpm.IDB
- func (p *Package) Depends() alpm.DependList
- func (p *Package) Description() string
- func (p *Package) FileName() string
- func (p *Package) Files() []alpm.File
- func (p *Package) Groups() alpm.StringList
- func (p *Package) ISize() int64
- func (p *Package) InstallDate() time.Time
- func (p *Package) Licenses() alpm.StringList
- func (p *Package) MD5Sum() string
- func (p *Package) MakeDepends() alpm.DependList
- func (p *Package) Name() string
- func (p *Package) OptionalDepends() alpm.DependList
- func (p *Package) Origin() alpm.PkgFrom
- func (p *Package) Packager() string
- func (p *Package) Provides() alpm.DependList
- func (p *Package) Reason() alpm.PkgReason
- func (p *Package) Replaces() alpm.DependList
- func (p *Package) SHA256Sum() string
- func (p *Package) ShouldIgnore() bool
- func (p *Package) Size() int64
- func (p *Package) SyncNewVersion(l alpm.IDBList) alpm.IPackage
- func (p *Package) Type() string
- func (p *Package) URL() string
- func (p *Package) Validation() alpm.Validation
- func (p *Package) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Package ¶
type Package struct { PBase string PBuildDate time.Time PDB alpm.IDB PDescription string PISize int64 PName string PShouldIgnore bool PSize int64 PVersion string PReason alpm.PkgReason }
func (*Package) Architecture ¶
Architecture returns the package target Architecture.
func (*Package) Backup ¶
func (p *Package) Backup() alpm.BackupList
Backup returns a list of package backups.
func (*Package) Base64Signature ¶
func (*Package) CheckDepends ¶
func (p *Package) CheckDepends() alpm.DependList
Depends returns the package's check dependency list.
func (*Package) ComputeOptionalFor ¶
ComputeOptionalFor returns the names of packages that optionally require the given package.
func (*Package) ComputeRequiredBy ¶
ComputeRequiredBy returns the names of reverse dependencies of a package.
func (*Package) Conflicts ¶
func (p *Package) Conflicts() alpm.DependList
Conflicts returns the conflicts of the package as a DependList.
func (*Package) ContainsFile ¶
ContainsFile checks if the path is in the package filelist.
func (*Package) Depends ¶
func (p *Package) Depends() alpm.DependList
Depends returns the package's dependency list.
func (*Package) Description ¶
func (*Package) Groups ¶
func (p *Package) Groups() alpm.StringList
Groups returns the groups the package belongs to.
func (*Package) InstallDate ¶
InstallDate returns the package install date.
func (*Package) Licenses ¶
func (p *Package) Licenses() alpm.StringList
Licenses returns the package license list.
func (*Package) MakeDepends ¶
func (p *Package) MakeDepends() alpm.DependList
Depends returns the package's make dependency list.
func (*Package) OptionalDepends ¶
func (p *Package) OptionalDepends() alpm.DependList
Depends returns the package's optional dependency list.
func (*Package) Provides ¶
func (p *Package) Provides() alpm.DependList
Provides returns DependList of packages provides by package.
func (*Package) Replaces ¶
func (p *Package) Replaces() alpm.DependList
Replaces returns a DependList with the packages this package replaces.
func (*Package) ShouldIgnore ¶
func (*Package) SyncNewVersion ¶
SyncNewVersion checks if there is a new version of the package in a given DBlist.
func (*Package) Validation ¶
func (p *Package) Validation() alpm.Validation