download

package
v12.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: GPL-3.0 Imports: 17 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"))
)

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, logger *text.Logger,
	targets []string, aurURL, dest string, force bool,
) (map[string]bool, error)

func PKGBUILDRepos

func PKGBUILDRepos(ctx context.Context, dbExecutor DBSearcher, aurClient aur.QueryClient,
	cmdBuilder exe.GitCmdBuilder, logger *text.Logger,
	targets []string, mode parser.TargetMode, aurURL, dest string, force bool,
) (map[string]bool, error)

func PKGBUILDs

func PKGBUILDs(dbExecutor DBSearcher, aurClient aur.QueryClient, httpClient *http.Client,
	logger *text.Logger, targets []string, aurURL string, mode parser.TargetMode,
) (map[string][]byte, error)

Types

type DBSearcher

type DBSearcher interface {
	SyncPackage(string) db.IPackage
	SyncPackageFromDB(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