version

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OsctrlVersion to have the version for all components
	OsctrlVersion = "0.5.1"
	// OsqueryVersion to have the version for osquery defined
	OsqueryVersion = "5.22.1"
	// VersionDataURL to have the URL to retrieve the latest version for all osctrl components
	VersionDataURL = "https://stats.osctrl.net/version_data.json"
)

Variables

This section is empty.

Functions

func CheckSuggestedRelease added in v0.5.1

func CheckSuggestedRelease(suggestedRelease string) bool

CheckSuggestedRelease to check if the current version is equal or higher than the suggested release

Types

type VersionData added in v0.5.1

type VersionData struct {
	LatestRelease    string `json:"latestRelease"`
	OsqueryVersion   string `json:"osqueryVersion"`
	SuggestedRelease string `json:"suggestedRelease"`
	MoreInformation  string `json:"moreInformation"`
}

VersionData to retrieve the latest version for all osctrl components

func RetrieveVersionData added in v0.5.1

func RetrieveVersionData(url string) (*VersionData, error)

Jump to

Keyboard shortcuts

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