utils

package
v0.0.0-...-a8d0bc3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2016 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdStream

func CmdStream(cmd *exec.Cmd, input io.Reader) (io.ReadCloser, error)

CmdStream executes a command, and returns its stdout as a stream. If the command fails to run or doesn't complete successfully, an error will be returned, including anything written on stderr.

func GitArchive

func GitArchive(dir, ref, format string) (io.ReadCloser, error)

GitArchive returns a stream of archive data of the repo at a specific ref, for the specified archive format (if supported)

func GitTar

func GitTar(dir, ref string) (io.ReadCloser, error)

GitTar returns a stream of tar data of the repo at a specific ref

func GitTarGz

func GitTarGz(dir, ref string) (io.ReadCloser, error)

GitTarGz returns a stream tar.gz data of the repo

func GitZip

func GitZip(dir, ref string) (io.ReadCloser, error)

GitZip returns a stream of zip data of the repo at a specific ref

func TarGz

func TarGz(dir string) (io.ReadCloser, error)

TarGz returns a stream of tar.gz data of the directory

func TarGzExclude

func TarGzExclude(dir string, exclude ...string) (io.ReadCloser, error)

TarGzExclude returns a stream of tar.gz data of the directory excluding the specified files

Types

This section is empty.

Jump to

Keyboard shortcuts

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