systemutil

package
v0.0.0-...-72177e3 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AptGet

func AptGet(args ...string) error

func Cmd

func Cmd(cmdPath string, args []string, envs []string) error

func GetHostOS

func GetHostOS() (string, error)

Types

type CPUUsage

type CPUUsage struct {
	// contains filtered or unexported fields
}

func NewCPUUsage

func NewCPUUsage() (*CPUUsage, error)

func (*CPUUsage) Percent

func (c *CPUUsage) Percent() (float64, error)

type SystemInfo

type SystemInfo struct {
	PremisesVersion string `json:"premisesVersion"`
	HostOS          string `json:"hostOS"`
}

func GetSystemVersion

func GetSystemVersion() *SystemInfo

Jump to

Keyboard shortcuts

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