Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalendarVersion ¶
type CalendarVersion struct { // Year of the version. Year int // Month of the version. Month time.Month // Day of the version. Day int // RevisionID is an offset from 0 indicating the number of releases on the date. RevisionID int }
func (*CalendarVersion) String ¶
func (v *CalendarVersion) String() string
type Generator ¶
type Generator struct { GitRepo *git.Repository ReleaseTagPrefix string }
func NewGenerator ¶
func (*Generator) LatestReleaseVersion ¶
func (*Generator) NextReleaseVersion ¶
func (*Generator) PreviewVersion ¶
func (g *Generator) PreviewVersion(branch, authority string, generateRevisionID bool) (Version, error)
PreviewVersion generates a "preview" style version identifier.
branch - Manually override branch name detection. This is useful in CI where vergen can be used with a detached head
and the branch can be passed along via environment variable.
authority - authorized person or system generating the preview version.
generateRevisionID - generate a revision ID to distinguish between two invocations. Useful when used on dirty Git
trees.
type PreviewVersion ¶
func (*PreviewVersion) String ¶
func (v *PreviewVersion) String() string
Click to show internal directories.
Click to hide internal directories.