systeminfo

package
v0.0.0-...-5dbe658 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCPUInfo

func GetCPUInfo(file string) (string, error)

Types

type Daemon

type Daemon struct {
	PropsMu sync.RWMutex

	*loader.ModuleBase
	// contains filtered or unexported fields
}

func NewDaemon

func NewDaemon(logger *log.Logger) *Daemon

func (*Daemon) GetDependencies

func (d *Daemon) GetDependencies() []string

func (*Daemon) Start

func (d *Daemon) Start() error

func (*Daemon) Stop

func (d *Daemon) Stop() error

type Disk

type Disk struct {
	Name   string
	Model  string
	Serial string // if empty, use children uuid's sha256 replace
	Vendor string

	Size int64 // byte

	RootMounted bool
}

Disk store disk info

type DiskList

type DiskList []*Disk

DiskList multi disk

func GetDiskList

func GetDiskList() (DiskList, error)

func (DiskList) GetRoot

func (list DiskList) GetRoot() *Disk

type SystemInfo

type SystemInfo struct {
	// Current deepin version, ex: "2015 Desktop"
	Version string
	// Distribution ID
	DistroID string
	// Distribution Description
	DistroDesc string
	// Distribution Version
	DistroVer string
	// CPU information
	Processor string
	// Disk capacity
	DiskCap uint64
	// Memory size
	MemoryCap uint64
	// System type: 32bit or 64bit
	SystemType int64
	// CPU max MHz
	CPUMaxMHz float64
	//Current Speed : when cpu max mhz is 0 use
	CurrentSpeed uint64
}

func NewSystemInfo

func NewSystemInfo() *SystemInfo

func (*SystemInfo) GetExportedMethods

func (v *SystemInfo) GetExportedMethods() dbusutil.ExportedMethods

func (*SystemInfo) GetInterfaceName

func (*SystemInfo) GetInterfaceName() string

Jump to

Keyboard shortcuts

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