sysinfo

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOSReleaseFilename = "/etc/os-release"
View Source
var ErrNoInterfaceFound = errors.New("no interface found")

Functions

func PrimaryInterface

func PrimaryInterface() (*net.Interface, error)

Types

type OSRelease

type OSRelease struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

func GetOSRelease

func GetOSRelease() (*OSRelease, error)

Jump to

Keyboard shortcuts

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