version

package
v0.0.0-...-68d2f45 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BuildHash is the git hash of the build. (local change ignored).
	BuildHash = "unset"

	// Version is the agent version.
	Version = "0.1"
)

Functions

func Compare

func Compare(v string, base string) bool

Compare returns true when v >= base. Comparing an invalid version (or a dev version) with any version will return true, as we may lack version numbers when testing, but that doesn't mean we don't want to use the bleemeo mode.

func IsFreeBSD

func IsFreeBSD() bool

IsFreeBSD returns true when the current operating system is FreeBSD.

func IsLinux

func IsLinux() bool

IsLinux returns true when the current operating system is Linux.

func IsMacOS

func IsMacOS() bool

IsMacOS returns true when the current operating system is MacOS.

func IsWindows

func IsWindows() bool

IsWindows returns true when the current operating system is Windows.

func UserAgent

func UserAgent() string

UserAgent returns the User-Agent for request performed by the agent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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