Versions in this module Expand all Collapse all v1 v1.0.2 Dec 20, 2016 Changes in this version + var BuildnumFlag = flag.String("buildnum", "", `Overrides CI build number`) + var DryRunFlag = flag.Bool("n", false, "dry run, don't execute commands") + var GitBranchFlag = flag.String("git-branch", "", `Overrides git branch being built`) + var GitCommitFlag = flag.String("git-commit", "", `Overrides git commit hash embedded into executables`) + var GitTagFlag = flag.String("git-tag", "", `Overrides git tag being built`) + var PullRequestFlag = flag.Bool("pull-request", false, `Overrides pull request status of the build`) + func AddFile(a Archive, file string) error + func GOPATH() string + func MustRun(cmd *exec.Cmd) + func MustRunCommand(cmd string, args ...string) + func Render(templateFile, outputFile string, outputPerm os.FileMode, x interface{}) + func RenderString(templateContent, outputFile string, outputPerm os.FileMode, x interface{}) + func RunGit(args ...string) string + func VERSION() string + func WriteArchive(basename, ext string, files []string) error + type Archive interface + Close func() error + Directory func(name string) error + Header func(os.FileInfo) (io.Writer, error) + func NewArchive(file *os.File) Archive + func NewTarballArchive(w io.WriteCloser) Archive + func NewZipArchive(w io.WriteCloser) Archive + type Environment struct + Branch string + Buildnum string + Commit string + IsPullRequest bool + Name string + Repo string + Tag string + func Env() Environment + func LocalEnv() Environment + func (env Environment) String() string + type TarballArchive struct + func (a *TarballArchive) Close() error + func (a *TarballArchive) Directory(name string) error + func (a *TarballArchive) Header(fi os.FileInfo) (io.Writer, error) + type ZipArchive struct + func (a *ZipArchive) Close() error + func (a *ZipArchive) Directory(name string) error + func (a *ZipArchive) Header(fi os.FileInfo) (io.Writer, error)