deviceType

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdDeviceType

func NewCmdDeviceType() *cobra.Command

Types

type CPU

type CPU struct {
	Cores int    `yaml:"cores" json:"cores"`
	Model string `yaml:"model" json:"model"`
}

CPU represents CPU specifications

type DeviceType

type DeviceType struct {
	Class         string          `yaml:"class" json:"class"`
	Manufacturer  string          `yaml:"manufacturer" json:"manufacturer"`
	Model         string          `yaml:"model" json:"model"`
	UHeight       float64         `yaml:"u_height" json:"u_height"`
	IsFullDepth   bool            `yaml:"is_full_depth" json:"is_full_depth"`
	Interfaces    []Interface     `yaml:"interfaces,omitempty" json:"interfaces,omitempty"`
	ResourceClass []ResourceClass `yaml:"resource_class,omitempty" json:"resource_class,omitempty"`
}

DeviceType represents a hardware device type definition

type Drive

type Drive struct {
	Size int `yaml:"size" json:"size"`
}

Drive represents a storage drive

type Interface

type Interface struct {
	Name       string `yaml:"name" json:"name"`
	Type       string `yaml:"type" json:"type"`
	MgmtOnly   bool   `yaml:"mgmt_only,omitempty" json:"mgmt_only,omitempty"`
	DetectOnly bool   `yaml:"detect_only,omitempty" json:"detect_only,omitempty"`
}

Interface represents a network interface

type Memory

type Memory struct {
	Size int `yaml:"size" json:"size"`
}

Memory represents memory specifications

type ResourceClass

type ResourceClass struct {
	Name     string  `yaml:"name" json:"name"`
	CPU      CPU     `yaml:"cpu" json:"cpu"`
	Memory   Memory  `yaml:"memory" json:"memory"`
	Drives   []Drive `yaml:"drives" json:"drives"`
	NICCount int     `yaml:"nic_count" json:"nic_count"`
}

ResourceClass represents a hardware configuration profile

Jump to

Keyboard shortcuts

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