attribute

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 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 AllAttributes

type AllAttributes struct {
	CPU               *CPU       `json:"cpu,omitempty" yaml:"cpu,omitempty"`
	Memory            *Memory    `json:"memory,omitempty" yaml:"memory,omitempty"`
	BlockDevices      []*Block   `json:"blockDevices,omitempty" yaml:"blockDevices,omitempty"`
	NetworkInterfaces []*Network `json:"networkInterfaces,omitempty" yaml:"networkInterfaces,omitempty"`
	PCIDevices        []*PCI     `json:"pciDevices,omitempty" yaml:"pciDevices,omitempty"`
	GPUDevices        []*GPU     `json:"gpuDevices,omitempty" yaml:"gpuDevices,omitempty"`
	Chassis           *Chassis   `json:"chassis,omitempty" yaml:"chassis,omitempty"`
	BIOS              *BIOS      `json:"bios,omitempty" yaml:"bios,omitempty"`
	Baseboard         *Baseboard `json:"baseboard,omitempty" yaml:"baseboard,omitempty"`
	Product           *Product   `json:"product,omitempty" yaml:"product,omitempty"`
}

func DiscoverAll

func DiscoverAll() *AllAttributes

type BIOS

type BIOS struct {
	Vendor      *string `json:"vendor,omitempty" yaml:"vendor,omitempty"`
	Version     *string `json:"version,omitempty" yaml:"version,omitempty"`
	ReleaseDate *string `json:"release_date,omitempty" yaml:"release_date,omitempty"`
}

func DiscoverBIOS

func DiscoverBIOS() *BIOS

type Baseboard

type Baseboard struct {
	Vendor  *string `json:"vendor,omitempty" yaml:"vendor,omitempty"`
	Product *string `json:"product,omitempty" yaml:"product,omitempty"`
	Version *string `json:"version,omitempty" yaml:"version,omitempty"`
}

func DiscoverBaseboard

func DiscoverBaseboard() *Baseboard

type Block

type Block struct {
	Name              *string `json:"name,omitempty" yaml:"name,omitempty"`
	ControllerType    *string `json:"controller_type,omitempty" yaml:"controller_type,omitempty"`
	DriveType         *string `json:"drive_type,omitempty" yaml:"drive_type,omitempty"`
	Size              *uint64 `json:"size,omitempty" yaml:"size,omitempty"`
	PhysicalBlockSize *uint64 `json:"physical_block_size,omitempty" yaml:"physical_block_size,omitempty"`
	Vendor            *string `json:"vendor,omitempty" yaml:"vendor,omitempty"`
	Model             *string `json:"model,omitempty" yaml:"model,omitempty"`
}

func DiscoverBlockDevices

func DiscoverBlockDevices() []*Block

type CPU

type CPU struct {
	TotalCores   *uint32      `json:"total_cores,omitempty" yaml:"total_cores,omitempty"`
	TotalThreads *uint32      `json:"total_threads,omitempty" yaml:"total_threads,omitempty"`
	Processors   []*Processor `json:"processors,omitempty" yaml:"processors,omitempty"`
}

func DiscoverCPU

func DiscoverCPU() *CPU

type Chassis

type Chassis struct {
	Serial *string `json:"serial,omitempty" yaml:"serial,omitempty"`
	Vendor *string `json:"vendor,omitempty" yaml:"vendor,omitempty"`
}

func DiscoverChassis

func DiscoverChassis() *Chassis

type GPU

type GPU struct {
	Vendor  *string `json:"vendor,omitempty" yaml:"vendor,omitempty"`
	Product *string `json:"product,omitempty" yaml:"product,omitempty"`
	Class   *string `json:"class,omitempty" yaml:"class,omitempty"`
	Driver  *string `json:"driver,omitempty" yaml:"driver,omitempty"`
}

func DiscoverGPU

func DiscoverGPU() []*GPU

type Memory

type Memory struct {
	Total  *uint64 `json:"total,omitempty" yaml:"total,omitempty"`
	Usable *uint64 `json:"usable,omitempty" yaml:"usable,omitempty"`
}

func DiscoverMemory

func DiscoverMemory() *Memory

type Network

type Network struct {
	Name                *string  `json:"name,omitempty" yaml:"name,omitempty"`
	Mac                 *string  `json:"mac,omitempty" yaml:"mac,omitempty"`
	Speed               *string  `json:"speed,omitempty" yaml:"speed,omitempty"`
	EnabledCapabilities []string `json:"enabled_capabilities,omitempty" yaml:"enabled_capabilities,omitempty"`
}

func DiscoverNetworks

func DiscoverNetworks() []*Network

type PCI

type PCI struct {
	Vendor  *string `json:"vendor,omitempty" yaml:"vendor,omitempty"`
	Product *string `json:"product,omitempty" yaml:"product,omitempty"`
	Class   *string `json:"class,omitempty" yaml:"class,omitempty"`
	Driver  *string `json:"driver,omitempty" yaml:"driver,omitempty"`
}

func DiscoverPCI

func DiscoverPCI() []*PCI

type Processor

type Processor struct {
	ID           *uint32  `json:"id,omitempty" yaml:"id,omitempty"`
	Cores        *uint32  `json:"cores,omitempty" yaml:"cores,omitempty"`
	Threads      *uint32  `json:"threads,omitempty" yaml:"threads,omitempty"`
	Vendor       *string  `json:"vendor,omitempty" yaml:"vendor,omitempty"`
	Model        *string  `json:"model,omitempty" yaml:"model,omitempty"`
	Capabilities []string `json:"capabilities,omitempty" yaml:"capabilities,omitempty"`
}

type Product

type Product struct {
	Name   *string `json:"name,omitempty" yaml:"name,omitempty"`
	Vendor *string `json:"vendor,omitempty" yaml:"vendor,omitempty"`
}

func DiscoverProduct

func DiscoverProduct() *Product

Jump to

Keyboard shortcuts

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