Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitMetadata ¶
type GitMetadata struct { // Permalink is the version alias, e.g. latest, or canary Permalink string // Version is the tag or tag+commit hash Version string // Commit is the hash of the current commit Commit string // IsTaggedRelease indicates if the build is for a versioned tag IsTaggedRelease bool }
func LoadMetadata ¶
func LoadMetadata() GitMetadata
LoadMetadata populates the status of the current working copy: current version, tag and permalink
func (GitMetadata) ShouldPublishPermalink ¶ added in v0.38.3
func (m GitMetadata) ShouldPublishPermalink() bool
Click to show internal directories.
Click to hide internal directories.