Documentation ¶
Index ¶
- type DB
- type DBExecutor
- func (t *DBExecutor) AlpmArchitectures() ([]string, error)
- func (t *DBExecutor) BiggestPackages() []IPackage
- func (t *DBExecutor) Cleanup()
- func (t *DBExecutor) InstalledRemotePackageNames() []string
- func (t *DBExecutor) InstalledRemotePackages() map[string]IPackage
- func (t *DBExecutor) IsCorrectVersionInstalled(s, s2 string) bool
- func (t *DBExecutor) LastBuildTime() time.Time
- func (t *DBExecutor) LocalPackage(s string) IPackage
- func (t *DBExecutor) LocalPackages() []IPackage
- func (t *DBExecutor) LocalSatisfierExists(s string) bool
- func (t *DBExecutor) PackageConflicts(iPackage IPackage) []Depend
- func (t *DBExecutor) PackageDepends(iPackage IPackage) []Depend
- func (t *DBExecutor) PackageGroups(iPackage IPackage) []string
- func (t *DBExecutor) PackageOptionalDepends(iPackage IPackage) []Depend
- func (t *DBExecutor) PackageProvides(iPackage IPackage) []Depend
- func (t *DBExecutor) PackagesFromGroup(s string) []IPackage
- func (t *DBExecutor) PackagesFromGroupAndDB(s, s2 string) ([]IPackage, error)
- func (t *DBExecutor) RefreshHandle() error
- func (t *DBExecutor) Repos() []string
- func (t *DBExecutor) SatisfierFromDB(s, s2 string) (IPackage, error)
- func (t *DBExecutor) SetLogger(logger *text.Logger)
- func (t *DBExecutor) SyncPackage(s string) IPackage
- func (t *DBExecutor) SyncPackages(s ...string) []IPackage
- func (t *DBExecutor) SyncSatisfier(s string) IPackage
- func (t *DBExecutor) SyncSatisfierExists(s string) bool
- func (t *DBExecutor) SyncUpgrades(b bool) (map[string]db.SyncUpgrade, error)
- type Depend
- type DependList
- type IPackage
- 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.IDependList
- func (p *Package) ComputeOptionalFor() []string
- func (p *Package) ComputeRequiredBy() []string
- func (p *Package) Conflicts() alpm.IDependList
- func (p *Package) ContainsFile(path string) (alpm.File, error)
- func (p *Package) DB() alpm.IDB
- func (p *Package) Depends() alpm.IDependList
- 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.IDependList
- func (p *Package) Name() string
- func (p *Package) OptionalDepends() alpm.IDependList
- func (p *Package) Origin() alpm.PkgFrom
- func (p *Package) Packager() string
- func (p *Package) Provides() alpm.IDependList
- func (p *Package) Reason() alpm.PkgReason
- func (p *Package) Replaces() alpm.IDependList
- 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
- type Upgrade
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBExecutor ¶
type DBExecutor struct { db.Executor AlpmArchitecturesFn func() ([]string, error) InstalledRemotePackageNamesFn func() []string InstalledRemotePackagesFn func() map[string]IPackage IsCorrectVersionInstalledFn func(string, string) bool LocalPackageFn func(string) IPackage LocalPackagesFn func() []IPackage LocalSatisfierExistsFn func(string) bool PackageDependsFn func(IPackage) []Depend PackageOptionalDependsFn func(alpm.IPackage) []alpm.Depend PackageProvidesFn func(IPackage) []Depend PackagesFromGroupFn func(string) []IPackage PackagesFromGroupAndDBFn func(string, string) ([]IPackage, error) RefreshHandleFn func() error ReposFn func() []string SyncPackageFn func(string) IPackage SyncPackagesFn func(...string) []IPackage SyncSatisfierFn func(string) IPackage SatisfierFromDBFn func(string, string) (IPackage, error) SyncUpgradesFn func(bool) (map[string]db.SyncUpgrade, error) SetLoggerFn func(*text.Logger) }
func (*DBExecutor) AlpmArchitectures ¶
func (t *DBExecutor) AlpmArchitectures() ([]string, error)
func (*DBExecutor) BiggestPackages ¶
func (t *DBExecutor) BiggestPackages() []IPackage
func (*DBExecutor) Cleanup ¶
func (t *DBExecutor) Cleanup()
func (*DBExecutor) InstalledRemotePackageNames ¶
func (t *DBExecutor) InstalledRemotePackageNames() []string
func (*DBExecutor) InstalledRemotePackages ¶
func (t *DBExecutor) InstalledRemotePackages() map[string]IPackage
func (*DBExecutor) IsCorrectVersionInstalled ¶
func (t *DBExecutor) IsCorrectVersionInstalled(s, s2 string) bool
func (*DBExecutor) LastBuildTime ¶
func (t *DBExecutor) LastBuildTime() time.Time
func (*DBExecutor) LocalPackage ¶
func (t *DBExecutor) LocalPackage(s string) IPackage
func (*DBExecutor) LocalPackages ¶
func (t *DBExecutor) LocalPackages() []IPackage
func (*DBExecutor) LocalSatisfierExists ¶
func (t *DBExecutor) LocalSatisfierExists(s string) bool
func (*DBExecutor) PackageConflicts ¶
func (t *DBExecutor) PackageConflicts(iPackage IPackage) []Depend
func (*DBExecutor) PackageDepends ¶
func (t *DBExecutor) PackageDepends(iPackage IPackage) []Depend
func (*DBExecutor) PackageGroups ¶
func (t *DBExecutor) PackageGroups(iPackage IPackage) []string
func (*DBExecutor) PackageOptionalDepends ¶
func (t *DBExecutor) PackageOptionalDepends(iPackage IPackage) []Depend
func (*DBExecutor) PackageProvides ¶
func (t *DBExecutor) PackageProvides(iPackage IPackage) []Depend
func (*DBExecutor) PackagesFromGroup ¶
func (t *DBExecutor) PackagesFromGroup(s string) []IPackage
func (*DBExecutor) PackagesFromGroupAndDB ¶ added in v12.1.1
func (t *DBExecutor) PackagesFromGroupAndDB(s, s2 string) ([]IPackage, error)
func (*DBExecutor) RefreshHandle ¶
func (t *DBExecutor) RefreshHandle() error
func (*DBExecutor) Repos ¶
func (t *DBExecutor) Repos() []string
func (*DBExecutor) SatisfierFromDB ¶
func (t *DBExecutor) SatisfierFromDB(s, s2 string) (IPackage, error)
func (*DBExecutor) SetLogger ¶ added in v12.0.5
func (t *DBExecutor) SetLogger(logger *text.Logger)
func (*DBExecutor) SyncPackage ¶
func (t *DBExecutor) SyncPackage(s string) IPackage
func (*DBExecutor) SyncPackages ¶
func (t *DBExecutor) SyncPackages(s ...string) []IPackage
func (*DBExecutor) SyncSatisfier ¶
func (t *DBExecutor) SyncSatisfier(s string) IPackage
func (*DBExecutor) SyncSatisfierExists ¶
func (t *DBExecutor) SyncSatisfierExists(s string) bool
func (*DBExecutor) SyncUpgrades ¶
func (t *DBExecutor) SyncUpgrades(b bool) (map[string]db.SyncUpgrade, error)
type DependList ¶
type DependList struct {
Depends []Depend
}
func (DependList) Slice ¶
func (d DependList) Slice() []alpm.Depend
type Package ¶
type Package struct { PBase string PBuildDate time.Time PDB *DB PDescription string PISize int64 PName string PShouldIgnore bool PSize int64 PVersion string PReason alpm.PkgReason PDepends alpm.IDependList PProvides alpm.IDependList }
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.IDependList
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.IDependList
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.IDependList
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.IDependList
Depends returns the package's make dependency list.
func (*Package) OptionalDepends ¶
func (p *Package) OptionalDepends() alpm.IDependList
Depends returns the package's optional dependency list.
func (*Package) Provides ¶
func (p *Package) Provides() alpm.IDependList
Provides returns DependList of packages provides by package.
func (*Package) Replaces ¶
func (p *Package) Replaces() alpm.IDependList
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