repos

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPkgs

func FindPkgs(ctx context.Context, pkgs []string) (map[string][]db.Package, []string, error)

FindPkgs looks for packages matching the inputs inside the database. It returns a map that maps the package name input to any packages found for it. It also returns a slice that contains the names of all packages that were not found.

func Pull

func Pull(ctx context.Context, repos []types.Repo) error

Pull pulls the provided repositories. If a repo doesn't exist, it will be cloned and its packages will be written to the DB. If it does exist, it will be pulled. In this case, only changed packages will be processed if possible. If repos is set to nil, the repos in the LURE config will be used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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