Documentation
¶
Overview ¶
Package buildinfo identifies the running binary, independently of protocol version.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BuildTime string
var ReleaseRepo = "koltyakov/control"
var Version = "dev"
Build metadata is set by the release/development builder using -ldflags.
Functions ¶
func ExecutableSHA256 ¶ added in v0.8.4
ExecutableSHA256 hashes actual on-disk bytes, including a derived GUI image. Use it for copying this executable, not the normalized managed software ID.
func UseWindowsGUISource ¶ added in v0.8.4
UseWindowsGUISource reports the original release checksum for a console-free runtime only after proving that its entire image differs solely in Subsystem. Call before Current during direct Windows User startup. Ordinary version inspection continues to report the actual executable's checksum.
Types ¶
type Info ¶
type Info struct {
Version string `json:"version"`
ReleaseRepo string `json:"releaseRepo,omitempty"`
BuildTime string `json:"buildTime,omitempty"`
OS string `json:"os"`
Arch string `json:"arch"`
SHA256 string `json:"sha256,omitempty"`
Runtime string `json:"runtime,omitempty"`
// Epoch zero denotes gateways predating explicit compatibility declarations.
GatewayProtocol int `json:"gatewayProtocol,omitempty"`
NodeGatewayMin int `json:"nodeGatewayMin,omitempty"`
NodeGatewayMax int `json:"nodeGatewayMax,omitempty"`
}
func (Info) SupportsGateway ¶ added in v0.5.7
SupportsGateway is an explicit executable declaration, not a version guess. An absent range must retain gateway-first update ordering.