systeminfo

package
v0.0.0-...-076f285 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPUDevice

type GPUDevice struct {
	VendorId     float64 `json:"vendorId"`     // PCI ID of the GPU vendor, if available; 0 otherwise.
	DeviceId     float64 `json:"deviceId"`     // PCI ID of the GPU device, if available; 0 otherwise.
	VendorString string  `json:"vendorString"` // String description of the GPU vendor, if the PCI ID is not available.
	DeviceString string  `json:"deviceString"` // String description of the GPU device, if the PCI ID is not available.
}

type GPUInfo

type GPUInfo struct {
	Devices              []GPUDevice        `json:"devices"`                 // The graphics devices on the system. Element 0 is the primary GPU.
	AuxAttributes        *map[string]string `json:"auxAttributes,omitempty"` // An optional dictionary of additional GPU related attributes.
	FeatureStatus        *map[string]string `json:"featureStatus,omitempty"` // An optional dictionary of graphics features and their status.
	DriverBugWorkarounds []string           `json:"driverBugWorkarounds"`    // An optional array of GPU driver bug workarounds.
}

type GetInfoCommand

type GetInfoCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*GetInfoCommand) Initalize

func (c *GetInfoCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetInfoCommand) Respond

func (c *GetInfoCommand) Respond(r *GetInfoReturn)

func (*GetInfoCommand) RespondWithError

func (c *GetInfoCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetInfoCommandFn

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

func (*GetInfoCommandFn) Load

func (a *GetInfoCommandFn) Load() func(GetInfoCommand)

func (*GetInfoCommandFn) Store

func (a *GetInfoCommandFn) Store(fn func(GetInfoCommand))

type GetInfoReturn

type GetInfoReturn struct {
	Gpu          GPUInfo `json:"gpu"`          // Information about the GPUs on the system.
	ModelName    string  `json:"modelName"`    // A platform-dependent description of the model of the machine. On Mac OS, this is, for example, 'MacBookPro'. Will be the empty string if not supported.
	ModelVersion string  `json:"modelVersion"` // A platform-dependent description of the version of the machine. On Mac OS, this is, for example, '10.1'. Will be the empty string if not supported.
}

type SystemInfoAgent

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

func NewAgent

func NewAgent(conn *shared.Connection) *SystemInfoAgent

func (*SystemInfoAgent) Name

func (agent *SystemInfoAgent) Name() string

func (*SystemInfoAgent) ProcessCommand

func (agent *SystemInfoAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)

func (*SystemInfoAgent) SetGetInfoHandler

func (agent *SystemInfoAgent) SetGetInfoHandler(handler func(GetInfoCommand))

Commands Sent From Frontend

Jump to

Keyboard shortcuts

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