Versions in this module Expand all Collapse all v0 v0.1.9 Feb 13, 2020 v0.1.8 Sep 27, 2019 Changes in this version + func Kb(value uint64) uint64 + func Tb(value uint64) uint64 type Cable + func (c *Cable) Breakout(a *Port, b []*Port) + type DeviceSpec struct + Disks map[string]*Disks + Memory map[string]*Dimms + Nics map[string]*Nics + Procs map[string]*Procs + func NewSpec(d *Device) *DeviceSpec + func (s *DeviceSpec) AddDisk(x Disk) + func (s *DeviceSpec) AddMemory(x Dimm) + func (s *DeviceSpec) AddNic(x Nic) + func (s *DeviceSpec) AddProc(x Proc) + type Dimms struct + Count int + Spec Dimm type Disk + FormFactor string + Interface string + type Disks struct + Count int + Spec Disk + type End []*Connector + func (e End) Connect(ps ...*Port) error + type Nics struct + Count int + Spec Nic + type Procs struct + Count int + Spec Proc v0.1.7 Jul 29, 2019 Changes in this version type Device + Disks []Disk + type Disk struct + Capacity uint64 v0.1.6 May 29, 2019 v0.1.5 May 24, 2019 v0.1.4 May 24, 2019 v0.1.3 May 23, 2019 v0.1.2 May 18, 2019 v0.1.1 May 14, 2019 Changes in this version + func Gb(value uint64) uint64 + func Gbps(value uint64) uint64 + func Mb(value uint64) uint64 + func Mbps(value uint64) uint64 + func Mhz(value uint64) uint64 + type Base struct + Manufacturer string + Model string + Tags []string + func (b *Base) Tag(tags ...string) + type Cable struct + Connectors [2][]*Connector + Kind CableKind + Length uint64 + Props xir.Props + func GenericCable(capacity uint64) *Cable + func (c *Cable) Link() *xir.Link + func (t *Cable) Connect(a, b *Port) + type CableKind uint16 + const Cat5 + const Cat5e + const Cat6 + const DAC + const FiberLC + const FiberMPOBreakout + const FiberMPOTrunk + const UnspecCable + type Connector struct + Capacity uint64 + Kind ConnectorKind + Port *Port + Protocol Layer1 + func (c *Connector) Connect(p *Port) + type ConnectorKind uint16 + const CXP + const LC + const MPO + const QSFP + const QSFP28 + const QSFPP + const RJ45 + const SFP + const SFP28 + const SFPP + const UnspecConnector + type Device struct + Memory []Dimm + Nics []Nic + Procs []Proc + Ttys []Tty + Usbs []Usb + func GenericServer(ports int, portSpeed uint64) *Device + func GenericSwitch(radix int, portSpeed uint64) *Device + func (d *Device) Node(id string) *xir.Node + type Dimm struct + Capacity uint64 + type ISA uint + const X86_64 + type Layer1 uint + const Base1000BX10 + const Base1000CX + const Base1000EX + const Base1000LX + const Base1000LX10 + const Base1000SX + const Base1000T + const Base1000X + const Base1000ZX + const Base100T + const GBase100CR4 + const GBase100ER4 + const GBase100LR4 + const GBase100SR10 + const GBase100SR4 + const GBase10CR + const GBase10ER + const GBase10LR + const GBase10LRM + const GBase10LX4 + const GBase10PR + const GBase10SR + const GBase10T + const GBase10ZR + const GBase25CR + const GBase25ER + const GBase25LR + const GBase25SR + const GBase40CR4 + const GBase40ER4 + const GBase40LR4 + const GBase40SR4 + const RS232 + const Uart + const UnspecProtocol + type Nic struct + Kind string + Ports []*Port + func (n *Nic) GetKind() string + type Port struct + Capacity uint64 + Connector *Connector + Endpoint *xir.Endpoint + Mac string + Protocol Layer1 + type Proc struct + BaseFrequency uint64 + Cores uint64 + Family string + ISA ISA + L2 uint64 + Tdp uint + Threads uint + type Tty struct + Port *Port + type Usb struct + Version UsbVersion + type UsbVersion float32 + const USB1 + const USB11 + const USB20 + const USB21 + const USB30 + const USB31