download

package
v2.13.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2018 License: Apache-2.0 Imports: 18 Imported by: 6

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(rs goolib.RepoSpec, repo, dir string, proxyServer string) (string, error)

FromRepo downloads a package from a repo.

func Latest

func Latest(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(pkgURL, dst, chksum string, 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