infra

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU

type CPU struct {
	Vendor  string `json:"vendor"`
	Model   string `json:"model"`
	Speed   uint   `json:"speed"`   // MHz
	Cache   uint   `json:"cache"`   // KB
	Cpus    uint   `json:"cpus"`    // ea
	Cores   uint   `json:"cores"`   // ea
	Threads uint   `json:"threads"` // ea
}

type Compute

type Compute struct {
	OS              System          `json:"os"`
	ComputeResource ComputeResource `json:"compute_resource"`
}

type ComputeResource

type ComputeResource struct {
	CPU     CPU       `json:"cpu"`
	Memory  Memory    `json:"memory"`
	Storage []Storage `json:"storage"`
}

type GPU

type GPU struct {
	NVIDIA []nvidia.NVIDIA `json:"nvidia"`
	DRM    []drm.DRM       `json:"drm"`
}

type Infra

type Infra struct {
	Compute Compute `json:"compute"`
}

type Kernel

type Kernel struct {
	Release      string `json:"release"`
	Version      string `json:"version"`
	Architecture string `json:"architecture"`
}

type Memory

type Memory struct {
	Type  string `json:"type"`
	Speed uint   `json:"speed"` // MHz
	Size  uint   `json:"size"`  // MB
}

type Node

type Node struct {
	Hostname   string `json:"hostname"`
	Hypervisor string `json:"hypervisor"`
	Machineid  string `json:"machineid"`
	Timezone   string `json:"timezone"`
}

type OS

type OS struct {
	Name         string `json:"name"`
	Vendor       string `json:"vendor"`
	Version      string `json:"version"`
	Release      string `json:"release"`
	Architecture string `json:"architecture"`
}

type Storage

type Storage struct {
	Name   string `json:"name"`
	Driver string `json:"driver"`
	Vendor string `json:"vendor"`
	Model  string `json:"model"`
	Serial string `json:"serial"`
	Size   uint   `json:"size"` // GB
}

type System

type System struct {
	OS     OS     `json:"os"`
	Kernel Kernel `json:"kernel"`
	Node   Node   `json:"node"`
}

Jump to

Keyboard shortcuts

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