Documentation ¶
Index ¶
- func CmdStream(cmd *exec.Cmd, input io.Reader) (io.ReadCloser, error)
- func GitArchive(dir, ref, format string) (io.ReadCloser, error)
- func GitTar(dir, ref string) (io.ReadCloser, error)
- func GitTarGz(dir, ref string) (io.ReadCloser, error)
- func GitZip(dir, ref string) (io.ReadCloser, error)
- func TarGz(dir string) (io.ReadCloser, error)
- func TarGzExclude(dir string, exclude ...string) (io.ReadCloser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdStream ¶
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.