buildstamp

package
v1.2.1-0...-4a05f05 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: MIT, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cwd

func Cwd() string

func Mixin

func Mixin(target string, data map[string]string) string

Types

type Buildstamp

type Buildstamp struct {
	Date            string `json:"date,omitempty"`
	GitCommitId     string `json:"git_commit_id,omitempty"`
	GitCommitBranch string `json:"git_commit_branch,omitempty"`
	GitRepoUrl      string `json:"git_repo_url,omitempty"`
	GitRepoName     string `json:"git_repo_name,omitempty"`
	CIRunId         string `json:"ci_run_id,omitempty"`
	CIRunUrl        string `json:"ci_run_url,omitempty"`
}

type CIInfo

type CIInfo struct {
	RunId  string
	RunUrl string
}

func GetCIInfo

func GetCIInfo() CIInfo

type GitInfo

type GitInfo struct {
	CommitId     string
	CommitBranch string
	RepoUrl      string
	RepoName     string
}

func GetGitInfo

func GetGitInfo(cwd string) GitInfo

type PackageJson

type PackageJson struct {
	Name    string
	Version string
}

func GetPkgInfo

func GetPkgInfo(cwd string) PackageJson

Jump to

Keyboard shortcuts

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