yay/pkg/db/executor.go

37 lines
898 B
Go
Raw Normal View History

2020-07-29 01:53:25 +02:00
package db
2020-08-01 01:20:00 +02:00
import (
"time"
2020-10-01 13:38:03 +02:00
alpm "github.com/Jguer/go-alpm/v2"
2020-08-16 23:41:38 +02:00
"github.com/Jguer/yay/v10/pkg/upgrade"
2020-08-01 01:20:00 +02:00
)
2020-07-29 01:53:25 +02:00
2021-02-16 15:27:08 +01:00
type IPackage = alpm.IPackage
type Depend = alpm.Depend
2020-08-16 23:41:38 +02:00
type Executor interface {
AlpmArch() (string, error)
2021-02-16 15:27:08 +01:00
BiggestPackages() []IPackage
2020-08-16 23:41:38 +02:00
Cleanup()
IsCorrectVersionInstalled(string, string) bool
LastBuildTime() time.Time
2021-02-16 15:27:08 +01:00
LocalPackage(string) IPackage
LocalPackages() []IPackage
2020-08-16 23:41:38 +02:00
LocalSatisfierExists(string) bool
2021-02-16 15:27:08 +01:00
PackageConflicts(IPackage) []Depend
PackageDepends(IPackage) []Depend
SatisfierFromDB(string, string) IPackage
PackageGroups(IPackage) []string
PackageOptionalDepends(IPackage) []Depend
PackageProvides(IPackage) []Depend
PackagesFromGroup(string) []IPackage
2020-08-16 23:41:38 +02:00
RefreshHandle() error
RepoUpgrades(bool) (upgrade.UpSlice, error)
2021-02-16 15:27:08 +01:00
SyncPackage(string) IPackage
SyncPackages(...string) []IPackage
SyncSatisfier(string) IPackage
2020-08-16 23:41:38 +02:00
SyncSatisfierExists(string) bool
}