download

package
Version: v11.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MaxConcurrentFetch = 20
)

Variables

View Source
var (
	ErrInvalidRepository  = errors.New(gotext.Get("invalid repository"))
	ErrABSPackageNotFound = errors.New(gotext.Get("package not found in repos"))
	ABSPackageURL         = "https://github.com/archlinux/svntogit-packages"
	ABSCommunityURL       = "https://github.com/archlinux/svntogit-community"
)

Functions

func ABSPKGBUILD

func ABSPKGBUILD(httpClient httpRequestDoer, dbName, pkgName string) ([]byte, error)

ABSPKGBUILD retrieves the PKGBUILD file to a dest directory.

func ABSPKGBUILDRepo

func ABSPKGBUILDRepo(ctx context.Context, cmdBuilder exe.GitCmdBuilder,
	dbName, pkgName, dest string, force bool) (bool, error)

ABSPKGBUILDRepo retrieves the PKGBUILD repository to a dest directory.

func AURPKGBUILD

func AURPKGBUILD(httpClient httpRequestDoer, pkgName, aurURL string) ([]byte, error)

func AURPKGBUILDRepo

func AURPKGBUILDRepo(ctx context.Context, cmdBuilder exe.GitCmdBuilder, aurURL, pkgName, dest string, force bool) (bool, error)

AURPkgbuildRepo retrieves the PKGBUILD repository to a dest directory.

func AURPKGBUILDRepos

func AURPKGBUILDRepos(
	ctx context.Context,
	cmdBuilder exe.GitCmdBuilder,
	targets []string, aurURL, dest string, force bool) (map[string]bool, error)

func PKGBUILDRepos

func PKGBUILDRepos(ctx context.Context, dbExecutor DBSearcher,
	cmdBuilder exe.GitCmdBuilder,
	targets []string, mode parser.TargetMode, aurURL, dest string, force bool) (map[string]bool, error)

func PKGBUILDs

func PKGBUILDs(dbExecutor DBSearcher, httpClient *http.Client, targets []string,
	aurURL string, mode parser.TargetMode) (map[string][]byte, error)

Types

type DBSearcher

type DBSearcher interface {
	SyncPackage(string) db.IPackage
	SatisfierFromDB(string, string) db.IPackage
}

type ErrAURPackageNotFound

type ErrAURPackageNotFound struct {
	// contains filtered or unexported fields
}

ErrAURPackageNotFound means that package was not found in AUR.

func (ErrAURPackageNotFound) Error

func (e ErrAURPackageNotFound) Error() string

type ErrGetPKGBUILDRepo

type ErrGetPKGBUILDRepo struct {
	// contains filtered or unexported fields
}

func (ErrGetPKGBUILDRepo) Error

func (e ErrGetPKGBUILDRepo) Error() string

func (*ErrGetPKGBUILDRepo) Unwrap

func (e *ErrGetPKGBUILDRepo) Unwrap() error

Jump to

Keyboard shortcuts

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