sysinfo

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rootfs

type Rootfs struct {
	Device string `json:"device"`
	Type   string `json:"type"`

	Mountpoint *string `json:"mountpoint"`
	Bootable   bool    `json:"bootable"`
	Booted     bool    `json:"booted"`
	Primary    bool    `json:"primary"`
	// contains filtered or unexported fields
}

type SystemInfo

type SystemInfo struct {
	Hostname       string            `json:"hostname"`
	OsName         string            `json:"os_name"`
	OsVersion      string            `json:"os_version"`
	Uptime         int               `json:"uptime"`
	RaucCompatible string            `json:"rauc_compatible"`
	RaucVariant    string            `json:"rauc_variant"`
	RaucRootfs     map[string]Rootfs `json:"rauc_rootfs"`
}

func GetSysinfo

func GetSysinfo() (SystemInfo, error)

Jump to

Keyboard shortcuts

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