mock

package
v11.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB added in v11.1.0

type DB struct {
	alpm.IDB
	// contains filtered or unexported fields
}

func NewDB added in v11.1.0

func NewDB(name string) *DB

func (*DB) Name added in v11.1.0

func (d *DB) Name() string

type DBExecutor added in v11.1.0

type DBExecutor struct{}

func (DBExecutor) AlpmArchitectures added in v11.1.0

func (t DBExecutor) AlpmArchitectures() ([]string, error)

func (DBExecutor) BiggestPackages added in v11.1.0

func (t DBExecutor) BiggestPackages() []IPackage

func (DBExecutor) Cleanup added in v11.1.0

func (t DBExecutor) Cleanup()

func (DBExecutor) IsCorrectVersionInstalled added in v11.1.0

func (t DBExecutor) IsCorrectVersionInstalled(s, s2 string) bool

func (DBExecutor) LastBuildTime added in v11.1.0

func (t DBExecutor) LastBuildTime() time.Time

func (DBExecutor) LocalPackage added in v11.1.0

func (t DBExecutor) LocalPackage(s string) IPackage

func (DBExecutor) LocalPackages added in v11.1.0

func (t DBExecutor) LocalPackages() []IPackage

func (DBExecutor) LocalSatisfierExists added in v11.1.0

func (t DBExecutor) LocalSatisfierExists(s string) bool

func (DBExecutor) PackageConflicts added in v11.1.0

func (t DBExecutor) PackageConflicts(iPackage IPackage) []Depend

func (DBExecutor) PackageDepends added in v11.1.0

func (t DBExecutor) PackageDepends(iPackage IPackage) []Depend

func (DBExecutor) PackageGroups added in v11.1.0

func (t DBExecutor) PackageGroups(iPackage IPackage) []string

func (DBExecutor) PackageOptionalDepends added in v11.1.0

func (t DBExecutor) PackageOptionalDepends(iPackage IPackage) []Depend

func (DBExecutor) PackageProvides added in v11.1.0

func (t DBExecutor) PackageProvides(iPackage IPackage) []Depend

func (DBExecutor) PackagesFromGroup added in v11.1.0

func (t DBExecutor) PackagesFromGroup(s string) []IPackage

func (DBExecutor) RefreshHandle added in v11.1.0

func (t DBExecutor) RefreshHandle() error

func (DBExecutor) RepoUpgrades added in v11.1.0

func (t DBExecutor) RepoUpgrades(b bool) ([]Upgrade, error)

func (DBExecutor) Repos added in v11.1.0

func (t DBExecutor) Repos() []string

func (DBExecutor) SatisfierFromDB added in v11.1.0

func (t DBExecutor) SatisfierFromDB(s, s2 string) IPackage

func (DBExecutor) SyncPackage added in v11.1.0

func (t DBExecutor) SyncPackage(s string) IPackage

func (DBExecutor) SyncPackages added in v11.1.0

func (t DBExecutor) SyncPackages(s ...string) []IPackage

func (DBExecutor) SyncSatisfier added in v11.1.0

func (t DBExecutor) SyncSatisfier(s string) IPackage

func (DBExecutor) SyncSatisfierExists added in v11.1.0

func (t DBExecutor) SyncSatisfierExists(s string) bool

type Depend added in v11.1.0

type Depend = alpm.Depend

type IPackage added in v11.1.0

type IPackage = alpm.IPackage

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
}

func (*Package) Architecture

func (p *Package) Architecture() string

Architecture returns the package target Architecture.

func (*Package) Backup

func (p *Package) Backup() alpm.BackupList

Backup returns a list of package backups.

func (*Package) Base

func (p *Package) Base() string

func (*Package) Base64Signature

func (p *Package) Base64Signature() string

func (*Package) BuildDate

func (p *Package) BuildDate() time.Time

func (*Package) CheckDepends

func (p *Package) CheckDepends() alpm.DependList

Depends returns the package's check dependency list.

func (*Package) ComputeOptionalFor

func (p *Package) ComputeOptionalFor() []string

ComputeOptionalFor returns the names of packages that optionally require the given package.

func (*Package) ComputeRequiredBy

func (p *Package) ComputeRequiredBy() []string

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

func (p *Package) ContainsFile(path string) (alpm.File, error)

ContainsFile checks if the path is in the package filelist.

func (*Package) DB

func (p *Package) DB() alpm.IDB

func (*Package) Depends

func (p *Package) Depends() alpm.DependList

Depends returns the package's dependency list.

func (*Package) Description

func (p *Package) Description() string

func (*Package) FileName

func (p *Package) FileName() string

func (*Package) Files

func (p *Package) Files() []alpm.File

Files returns the file list of the package.

func (*Package) Groups

func (p *Package) Groups() alpm.StringList

Groups returns the groups the package belongs to.

func (*Package) ISize

func (p *Package) ISize() int64

func (*Package) InstallDate

func (p *Package) InstallDate() time.Time

InstallDate returns the package install date.

func (*Package) Licenses

func (p *Package) Licenses() alpm.StringList

Licenses returns the package license list.

func (*Package) MD5Sum

func (p *Package) MD5Sum() string

MD5Sum returns package MD5Sum.

func (*Package) MakeDepends

func (p *Package) MakeDepends() alpm.DependList

Depends returns the package's make dependency list.

func (*Package) Name

func (p *Package) Name() string

func (*Package) OptionalDepends

func (p *Package) OptionalDepends() alpm.DependList

Depends returns the package's optional dependency list.

func (*Package) Origin

func (p *Package) Origin() alpm.PkgFrom

Origin returns package origin.

func (*Package) Packager

func (p *Package) Packager() string

Packager returns package packager name.

func (*Package) Provides

func (p *Package) Provides() alpm.DependList

Provides returns DependList of packages provides by package.

func (*Package) Reason

func (p *Package) Reason() alpm.PkgReason

func (*Package) Replaces

func (p *Package) Replaces() alpm.DependList

Replaces returns a DependList with the packages this package replaces.

func (*Package) SHA256Sum

func (p *Package) SHA256Sum() string

SHA256Sum returns package SHA256Sum.

func (*Package) ShouldIgnore

func (p *Package) ShouldIgnore() bool

func (*Package) Size

func (p *Package) Size() int64

func (*Package) SyncNewVersion

func (p *Package) SyncNewVersion(l alpm.IDBList) alpm.IPackage

SyncNewVersion checks if there is a new version of the package in a given DBlist.

func (*Package) Type

func (p *Package) Type() string

func (*Package) URL

func (p *Package) URL() string

URL returns the upstream URL of the package.

func (*Package) Validation

func (p *Package) Validation() alpm.Validation

func (*Package) Version

func (p *Package) Version() string

type Upgrade added in v11.1.0

type Upgrade = db.Upgrade

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL