repos

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPkgs

func FindPkgs(gdb *sqlx.DB, 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 the 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, gdb *sqlx.DB, 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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