download

package
v2.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2016 License: Apache-2.0 Imports: 15 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(rs goolib.RepoSpec, repo, dir string) (string, error)

FromRepo downloads a package from a repo.

func Latest

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

Latest downloads the latest available version of a package.

func Package

func Package(pkgURL, dst, chksum string) error

Package downloads a package from the given url, if a SHA256 checksum is provided it will be checked.

Types

This section is empty.

Jump to

Keyboard shortcuts

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