Help us shape the future of Go! Take the 2026 Go Developer Survey

linux

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Release

type Release struct {
	PrettyName       string   `cyclonedx:"prettyName"` // A pretty operating system name in a format suitable for presentation to the user.
	Name             string   // identifies the operating system, without a version component, and suitable for presentation to the user.
	ID               string   `cyclonedx:"id"`     // identifies the operating system, excluding any version information and suitable for processing by scripts or usage in generated filenames.
	IDLike           []string `cyclonedx:"idLike"` // list of operating system identifiers in the same syntax as the ID= setting. It should list identifiers of operating systems that are closely related to the local operating system in regards to packaging and programming interfaces.
	Version          string   // identifies the operating system version, excluding any OS name information, possibly including a release code name, and suitable for presentation to the user.
	VersionID        string   `cyclonedx:"versionID"` // identifies the operating system version, excluding any OS name information or release code name, and suitable for processing by scripts or usage in generated filenames.
	VersionCodename  string   `cyclonedx:"versionCodename"`
	BuildID          string   `cyclonedx:"buildID"` // A string uniquely identifying the system image originally used as the installation base.
	ImageID          string   `cyclonedx:"imageID"`
	ImageVersion     string   `cyclonedx:"imageVersion"`
	Variant          string   `cyclonedx:"variant"`   // identifies a specific variant or edition of the operating system suitable for presentation to the user.
	VariantID        string   `cyclonedx:"variantID"` // identifies a specific variant or edition of the operating system. This may be interpreted by other packages in order to determine a divergent default configuration.
	HomeURL          string
	SupportURL       string
	BugReportURL     string
	PrivacyPolicyURL string
	CPEName          string // A CPE name for the operating system, in URI binding syntax
	SupportEnd       string // The date at which support for this version of the OS ends.
}

Release represents Linux Distribution release information as specified from https://www.freedesktop.org/software/systemd/man/os-release.html

func IdentifyRelease

func IdentifyRelease(resolver file.Resolver) *Release

IdentifyRelease parses distro-specific files to discover and raise linux distribution release details.

func (*Release) String

func (r *Release) String() string

Jump to

Keyboard shortcuts

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