Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrKeyNotFound = errors.New("key not found") ErrInvalidFileFormat = errors.New("invalid file format") )
View Source
var (
ErrDetectionFailed = errors.New("failed to detect distribution")
)
View Source
var (
ErrVersionNotFound = errors.New("no version found")
)
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { // linux, windows etc Family string `json:"family"` // architecture: amd64, arm64, etc. Arch string `json:"arch"` // ubuntu, alpine, server (windows server) Distribution string `json:"distribution"` // 11.1.1 Version string `json:"version"` }
Info is the struct that contains the os information It i snot suposed to be used on its own but it is returned by the Detect() function.
Click to show internal directories.
Click to hide internal directories.