Documentation ¶
Overview ¶
Package download handles the downloading of packages.
Index ¶
- func ExtractPkg(src string) (dst string, err error)
- func FromRepo(ctx context.Context, rs goolib.RepoSpec, repo, dir string, proxyServer string) (string, error)
- func Latest(ctx context.Context, name, dir string, rm client.RepoMap, archs []string, ...) (string, error)
- func Package(ctx context.Context, pkgURL, dst, chksum, proxyServer string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPkg ¶
ExtractPkg takes a path to a package and extracts it to a directory based on the package name, it returns the path to the extraced directory.
func FromRepo ¶
func FromRepo(ctx context.Context, rs goolib.RepoSpec, repo, dir string, proxyServer string) (string, error)
FromRepo downloads a package from a repo.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.