package
Version:
v2.6.0+incompatible
Opens a new window with list of versions in this module.
Published: Mar 1, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package download handles the downloading of packages.
-
func ExtractPkg(src string) (dst string, err error)
-
func FromRepo(rs goolib.RepoSpec, repo, dir string) (string, error)
-
func Latest(name, dir string, rm client.RepoMap, archs []string) (string, error)
-
func Package(pkgURL, dst, chksum string) 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.
FromRepo downloads a package from a repo.
Latest downloads the latest available version of a package.
Package downloads a package from the given url,
if a SHA256 checksum is provided it will be checked.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.