Documentation ¶
Index ¶
- Variables
- func GetGitAuthor() (string, string, error)
- func GetLatestParentCommit(commit *object.Commit) (*object.Commit, error)
- func LatestTagCommitHash(repo GitRepoIface, branchRef string) (*string, *plumbing.Hash, error)
- func VerifyDefaultBranch(repo GitRepoIface, defaultBranchRef string) (*object.Commit, error)
- func VersionCacheKey() string
- func VersionString() (string, error)
- type GitRepoIface
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the bff version Version = "undefined" // GitSha is the gitsha used to build this version GitSha = "undefined" // Release is true if this is a release Release = "false" // Dirty if git is dirty Dirty = "true" )
Functions ¶
func GetGitAuthor ¶ added in v0.1.3
GetGitAuthor returns the author name and email
func GetLatestParentCommit ¶ added in v0.1.4
GetLatestParentCommit returns the most recent parent commit
func LatestTagCommitHash ¶ added in v0.1.4
LatestTagCommitHash will get the latest tag and commit hash for a repo
func VerifyDefaultBranch ¶ added in v0.2.0
func VerifyDefaultBranch(repo GitRepoIface, defaultBranchRef string) (*object.Commit, error)
VerifyDefaultBranch returns the default branch's commit, according to HEAD
func VersionCacheKey ¶
func VersionCacheKey() string
VersionCacheKey returns a key to version the cache
Types ¶
type GitRepoIface ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.