systeminfo1

package
v0.0.0-...-77ac5d6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: GPL-3.0 Imports: 6 Imported by: 2

Documentation

Overview

SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.

SPDX-License-Identifier: GPL-3.0-or-later

SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.

SPDX-License-Identifier: GPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DMIInfo

type DMIInfo struct {
	BiosVendor     string
	BiosVersion    string
	BiosDate       string
	BoardName      string
	BoardSerial    string
	BoardVendor    string
	BoardVersion   string
	ProductName    string
	ProductFamily  string
	ProductSerial  string
	ProductUUID    string
	ProductVersion string
}

type MockInterfaceSystemInfo

type MockInterfaceSystemInfo struct {
	mock.Mock
}

func (*MockInterfaceSystemInfo) CurrentSpeed

func (v *MockInterfaceSystemInfo) CurrentSpeed() proxy.PropUint64

func (*MockInterfaceSystemInfo) DMIInfo

func (v *MockInterfaceSystemInfo) DMIInfo() PropDMIInfo

func (*MockInterfaceSystemInfo) MemorySize

func (v *MockInterfaceSystemInfo) MemorySize() proxy.PropUint64

func (*MockInterfaceSystemInfo) MemorySizeHuman

func (v *MockInterfaceSystemInfo) MemorySizeHuman() proxy.PropString

type MockPropDMIInfo

type MockPropDMIInfo struct {
	mock.Mock
}

func (MockPropDMIInfo) ConnectChanged

func (p MockPropDMIInfo) ConnectChanged(cb func(hasValue bool, value DMIInfo)) error

func (MockPropDMIInfo) Get

func (p MockPropDMIInfo) Get(flags dbus.Flags) (value DMIInfo, err error)

func (MockPropDMIInfo) Set

func (p MockPropDMIInfo) Set(flags dbus.Flags, value DMIInfo) error

type MockSystemInfo

type MockSystemInfo struct {
	MockInterfaceSystemInfo // interface org.deepin.dde.SystemInfo1
	proxy.MockObject
}

type PropDMIInfo

type PropDMIInfo interface {
	Get(flags dbus.Flags) (value DMIInfo, err error)
	Set(flags dbus.Flags, value DMIInfo) error
	ConnectChanged(cb func(hasValue bool, value DMIInfo)) error
}

type SystemInfo

type SystemInfo interface {
	proxy.Object
	// contains filtered or unexported methods
}

func NewSystemInfo

func NewSystemInfo(conn *dbus.Conn) SystemInfo

Jump to

Keyboard shortcuts

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