query

package
v11.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPackageNamesBySource

func GetPackageNamesBySource(dbExecutor db.Executor) (local, remote []string, err error)

GetPackageNamesBySource returns package names with and without correspondence in SyncDBS respectively.

func GetRemotePackages

func GetRemotePackages(dbExecutor db.Executor) (
	remote []db.IPackage,
	remoteNames []string)

GetRemotePackages returns packages with no correspondence in SyncDBS.

func RemoveInvalidTargets

func RemoveInvalidTargets(targets []string, mode parser.TargetMode) []string

Types

type AURWarnings

type AURWarnings struct {
	Orphans   []string
	OutOfDate []string
	Missing   []string
	Ignore    stringset.StringSet
}

func NewWarnings

func NewWarnings() *AURWarnings

func (*AURWarnings) Print

func (warnings *AURWarnings) Print()

type Pkg

type Pkg = aur.Pkg

func AURInfo

func AURInfo(ctx context.Context, aurClient *aur.Client, names []string, warnings *AURWarnings, splitN int) ([]*Pkg, error)

Queries the aur for information about specified packages. All packages should be queried in a single aur request except when the number of packages exceeds the number set in config.RequestSplitN. If the number does exceed config.RequestSplitN multiple aur requests will be performed concurrently.

func AURInfoPrint

func AURInfoPrint(ctx context.Context, aurClient *aur.Client, names []string, splitN int) ([]*Pkg, error)

Jump to

Keyboard shortcuts

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