system

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DeviceNameCtxKey = "deviceName"

DeviceNameCtxKey context key for device name

View Source
const OsNameCtxKey = "OsName"

OsNameCtxKey context key for operating system name

View Source
const OsVersionCtxKey = "OsVersion"

OsVersionCtxKey context key for operating system version

View Source
const UiVersionCtxKey = "user-agent"

UiVersionCtxKey context key for user UI version

Variables

This section is empty.

Functions

func GetDesktopUIUserAgent

func GetDesktopUIUserAgent() string

GetDesktopUIUserAgent returns the Desktop ui user agent

Types

type Environment

type Environment struct {
	Cloud    string
	Platform string
}

type Info

type Info struct {
	GoOS               string
	Kernel             string
	Platform           string
	OS                 string
	OSVersion          string
	Hostname           string
	CPUs               int
	WiretrusteeVersion string
	UIVersion          string
	KernelVersion      string
	NetworkAddresses   []NetworkAddress
	SystemSerialNumber string
	SystemProductName  string
	SystemManufacturer string
	Environment        Environment
}

Info is an object that contains machine information Most of the code is taken from https://github.com/matishsiao/goInfo

func GetInfo

func GetInfo(ctx context.Context) *Info

GetInfo retrieves and parses the system information

type NetworkAddress

type NetworkAddress struct {
	NetIP netip.Prefix
	Mac   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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