Documentation
¶
Index ¶
Constants ¶
const BootStateReceivedCondition = "BootStateReceived"
BootStateReceivedCondition is the condition type for indicating a server has booted.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BIOSInformation ¶ added in v0.2.0
type BlockDevice ¶ added in v0.2.0
type BlockDevice struct {
Path string `json:"path"`
Name string `json:"name"`
Rotational bool `json:"rotational"`
Removable bool `json:"removable"`
ReadOnly bool `json:"readOnly"`
Vendor string `json:"vendor"`
Model string `json:"model"`
Serial string `json:"serial"`
WWID string `json:"wwid"`
PhysicalBlockSize uint64 `json:"physicalBlockSize"`
LogicalBlockSize uint64 `json:"logicalBlockSize"`
HWSectorSize uint64 `json:"hWSectorSize"`
SizeBytes uint64 `json:"sizeBytes"`
NUMANodeID int `json:"numaNodeID"`
}
type BoardInformation ¶ added in v0.2.0
type BootstatePayload ¶ added in v0.2.0
BootstatePayload represents the payload to send to the `/bootstate` endpoint, including the systemUUID and the booted state.
type DMI ¶ added in v0.2.0
type DMI struct {
BIOSInformation BIOSInformation `json:"biosInformation"`
SystemInformation ServerInformation `json:"systemInformation"`
BoardInformation BoardInformation `json:"boardInformation"`
}
type LLDP ¶ added in v0.2.0
type LLDP struct {
Interfaces []LLDPInterface `json:"interfaces"`
}
LLDP is the normalized structure we expose.
func ParseLLDPCTL ¶ added in v0.2.0
ParseLLDPCTL converts raw lldpctl JSON (format: {"lldp":{"interface":[{iface:{...}},...]}}) into the normalized LLDP struct.
type LLDPInterface ¶ added in v0.2.0
type MemoryDevice ¶ added in v0.2.0
type MemoryDevice struct {
SizeBytes int64 `json:"size"`
DeviceSet string `json:"deviceSet"`
DeviceLocator string `json:"deviceLocator"`
BankLocator string `json:"bankLocator"`
MemoryType string `json:"memoryType"`
Speed string `json:"speed"`
Vendor string `json:"vendor"`
SerialNumber string `json:"serialNumber"`
AssetTag string `json:"assetTag"`
PartNumber string `json:"partNumber"`
ConfiguredMemorySpeed string `json:"configuredMemorySpeed"`
MinimumVoltage string `json:"minimumVoltage"`
MaximumVoltage string `json:"maximumVoltage"`
ConfiguredVoltage string `json:"configuredVoltage"`
}
type Neighbor ¶ added in v0.2.0
type Neighbor struct {
ChassisID string `json:"chassisId,omitempty"`
PortID string `json:"portId,omitempty"`
PortDescription string `json:"portDescription,omitempty"`
SystemName string `json:"systemName,omitempty"`
SystemDescription string `json:"systemDescription,omitempty"`
MgmtIP string `json:"mgmtIp,omitempty"`
Capabilities []string `json:"capabilities,omitempty"`
VlanID string `json:"vlanId,omitempty"`
}
type NetworkInterface ¶
type NetworkInterface struct {
Name string `json:"name"`
IPAddress string `json:"ipAddress,omitempty"` // Deprecated: kept for backward compatibility, always nil
IPAddresses []string `json:"ipAddresses"`
MACAddress string `json:"macAddress"`
CarrierStatus string `json:"carrierStatus"`
}
NetworkInterface represents a network interface on a server, including its IP and MAC addresses.
type RegistrationPayload ¶
RegistrationPayload represents the payload to send to the `/register` endpoint, including the systemUUID and the server details.
type Server ¶
type Server struct {
SystemInfo DMI `json:"systemInfo,omitempty"`
CPU []CPUInfo `json:"cpu,omitempty"`
NetworkInterfaces []NetworkInterface `json:"networkInterfaces,omitempty"`
LLDP []LLDPInterface `json:"lldp,omitempty"`
Storage []BlockDevice `json:"storage,omitempty"`
Memory []MemoryDevice `json:"memory,omitempty"`
NICs []NIC `json:"nics,omitempty"`
PCIDevices []PCIDevice `json:"pciDevices,omitempty"`
}
Server represents a server with a list of network interfaces.