Documentation
¶
Index ¶
- Constants
- Variables
- func ABSPKGBUILD(httpClient httpRequestDoer, dbName, pkgName string) ([]byte, error)
- func ABSPKGBUILDRepo(ctx context.Context, cmdBuilder exe.GitCmdBuilder, ...) (bool, error)
- func AURPKGBUILD(httpClient httpRequestDoer, pkgName, aurURL string) ([]byte, error)
- func AURPKGBUILDRepo(ctx context.Context, cmdBuilder exe.GitCmdBuilder, ...) (bool, error)
- func AURPKGBUILDRepos(ctx context.Context, cmdBuilder exe.GitCmdBuilder, targets []string, ...) (map[string]bool, error)
- func PKGBUILDRepos(ctx context.Context, dbExecutor DBSearcher, cmdBuilder exe.GitCmdBuilder, ...) (map[string]bool, error)
- func PKGBUILDs(dbExecutor DBSearcher, httpClient *http.Client, targets []string, ...) (map[string][]byte, error)
- type DBSearcher
- type ErrAURPackageNotFound
- type ErrGetPKGBUILDRepo
Constants ¶
View Source
const (
MaxConcurrentFetch = 20
)
Variables ¶
Functions ¶
func ABSPKGBUILD ¶
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 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 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)
Types ¶
type DBSearcher ¶
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
Click to show internal directories.
Click to hide internal directories.