Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the current version of agentpipe // This will be set at build time using -ldflags Version = "dev" // CommitHash is the git commit hash CommitHash = "unknown" // BuildDate is the build date BuildDate = "unknown" )
Functions ¶
func CheckForUpdate ¶
CheckForUpdate checks if there's a newer version available on GitHub
func GetShortVersion ¶
func GetShortVersion() string
GetShortVersion returns just the version number
func GetVersionString ¶
func GetVersionString() string
GetVersionString returns the full version string
Types ¶
type GitHubRelease ¶
type GitHubRelease struct {
TagName string `json:"tag_name"`
Name string `json:"name"`
HTMLURL string `json:"html_url"`
}
GitHubRelease represents a GitHub release
Click to show internal directories.
Click to hide internal directories.