version

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidAgentVersion added in v0.8.0

func IsValidAgentVersion(ver string) bool

IsValidAgentVersion checks if the version string is valid (not empty, not "unknown", and matches semver pattern). Valid versions must start with 'v' followed by major.minor.patch (e.g., v0.5.1, v0.5.1-25-g45c60d3).

Types

type Info

type Info struct {
	Major            string `json:"major"`
	Minor            string `json:"minor"`
	GitVersion       string `json:"gitVersion"`
	GitCommit        string `json:"gitCommit"`
	GitTreeState     string `json:"gitTreeState"`
	BuildDate        string `json:"buildDate"`
	GoVersion        string `json:"goVersion"`
	Compiler         string `json:"compiler"`
	Platform         string `json:"platform"`
	Patch            string `json:"patch"`
	AgentGitCommit   string `json:"agentGitCommit"`
	AgentVersionName string `json:"agentVersionName"`
}

func Get

func Get() Info

func (Info) String

func (info Info) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL