Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoTag happens if the underlying git repository doesn't contain any tags // but no snapshot-release was requested. ErrNoTag = errors.New("git doesn't contain any tags. Tag info will not be available") // ErrNotRepository happens if you try to run ko against a folder // which is not a git repository. ErrNotRepository = errors.New("current folder is not a git repository. Git info will not be available") // ErrNoGit happens when git is not present in PATH. ErrNoGit = errors.New("git not present in PATH. Git info will not be available") )
Functions ¶
Types ¶
type ErrDirty ¶
type ErrDirty struct {
// contains filtered or unexported fields
}
ErrDirty happens when the repo has uncommitted/unstashed changes.
type Info ¶
type Info struct { Branch string Tag string ShortCommit string FullCommit string CommitDate time.Time Dirty bool }
Info includes tags and diffs used in some point.
func (Info) TemplateValue ¶
TemplateValue converts this Info into a map for use in golang templates.
Click to show internal directories.
Click to hide internal directories.