download

package
v2.18.4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package download handles the downloading of packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractPkg

func ExtractPkg(src string) (dst string, err error)

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.

func Latest

func Latest(ctx context.Context, name, dir string, rm client.RepoMap, archs []string, proxyServer string) (string, error)

Latest downloads the latest available version of a package.

func Package

func Package(ctx context.Context, pkgURL, dst, chksum, proxyServer string) error

Package downloads a package from the given url, the provided SHA256 checksum will be checked during download.

Types

This section is empty.

Jump to

Keyboard shortcuts

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