Versions in this module Expand all Collapse all v0 v0.1.0 Mar 12, 2018 Changes in this version + var BuildnumFlag = flag.String("buildnum", "", `Overrides CI build number`) + var CronJobFlag = flag.Bool("cron-job", false, `Overrides cron job status of the build`) + 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 AzureBlobstoreDelete(config AzureBlobstoreConfig, blobs []storage.Blob) error + func AzureBlobstoreList(config AzureBlobstoreConfig) ([]storage.Blob, error) + func AzureBlobstoreUpload(path string, name string, config AzureBlobstoreConfig) error + func CopyFile(dst, src string, mode os.FileMode) + func ExpandPackagesNoVendor(patterns []string) []string + func GOPATH() string + func GoTool(tool string, args ...string) *exec.Cmd + func MustRun(cmd *exec.Cmd) + func MustRunCommand(cmd string, args ...string) + func PGPSignFile(input string, output string, pgpkey string) error + 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(name string, files []string) (err 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, string) + func NewTarballArchive(w io.WriteCloser) Archive + func NewZipArchive(w io.WriteCloser) Archive + type AzureBlobstoreConfig struct + Account string + Container string + Token string + type Environment struct + Branch string + Buildnum string + Commit string + IsCronJob bool + 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)