MCPcopy
hub / github.com/tailscale/tailscale / GetMeta

Function GetMeta

version/prop.go:329–346  ·  view source on GitHub ↗

GetMeta returns version metadata about the current build.

()

Source from the content-addressed store, hash-verified

327
328// GetMeta returns version metadata about the current build.
329func GetMeta() Meta {
330 return getMeta.Get(func() Meta {
331 return Meta{
332 MajorMinorPatch: majorMinorPatch(),
333 Short: Short(),
334 Long: Long(),
335 GitCommitTime: getEmbeddedInfo().commitTime,
336 GitCommit: gitCommit(),
337 GitDirty: gitDirty(),
338 OSVariant: osVariant(),
339 ExtraGitCommit: extraGitCommitStamp,
340 IsDev: isDev(),
341 UnstableBranch: IsUnstableBuild(),
342 TailscaleGoGitHash: tailscaleToolchainRev(),
343 Cap: int(tailcfg.CurrentCapabilityVersion),
344 }
345 })
346}

Callers 2

runVersionFunction · 0.92
selfVersionImageTagFunction · 0.92

Calls 9

majorMinorPatchFunction · 0.85
ShortFunction · 0.85
LongFunction · 0.85
gitCommitFunction · 0.85
gitDirtyFunction · 0.85
osVariantFunction · 0.85
IsUnstableBuildFunction · 0.85
tailscaleToolchainRevFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…