osinfo

package
v0.0.0-...-05f333e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSInfo

type OSInfo struct {
	// OS name in short form.
	OS string
	// OS version ID.
	VersionID string
	// The name the OS uses to fully describe itself.
	PrettyName string
	// The kernel release.
	KernelRelease string
	// The kernel version.
	KernelVersion string

	// This is used by oslogin.go
	Version Ver
}

OSInfo contains OS information about the system.

func Get

func Get() OSInfo

Get returns OSInfo on the running system.

type Ver

type Ver struct {
	Major, Minor, Patch, Length int
}

Ver describes the system version

func (Ver) String

func (v Ver) String() string

Jump to

Keyboard shortcuts

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