Documentation ¶
Index ¶
- func CalculateMachineAddressFromSwitchInterface(switchNIC Interface) metalv1alpha4.Addresses
- func FilterAndGenerateAddresses(switchInterface Interface, ipTypeFunc func(addr netip.Addr) bool) []metalv1alpha4.IPAddrSpec
- func IsIPv4(addr netip.Addr) bool
- func IsIPv6(addr netip.Addr) bool
- func ToMachineInterfaces(nics []metalv1alpha4.NICSpec) []metalv1alpha4.Interface
- type Interface
- type InventoryInfo
- type MachineInfo
- type Request
- type SubnetInfo
- type SwitchInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateMachineAddressFromSwitchInterface ¶
func CalculateMachineAddressFromSwitchInterface( switchNIC Interface, ) metalv1alpha4.Addresses
func FilterAndGenerateAddresses ¶
func FilterAndGenerateAddresses( switchInterface Interface, ipTypeFunc func(addr netip.Addr) bool, ) []metalv1alpha4.IPAddrSpec
func ToMachineInterfaces ¶
func ToMachineInterfaces(nics []metalv1alpha4.NICSpec) []metalv1alpha4.Interface
Types ¶
type InventoryInfo ¶
type MachineInfo ¶
type MachineInfo struct { UUID string Namespace string ProductSKU string SerialNumber string Sizes map[string]string Interfaces []metalv1alpha4.Interface }
func NewMachineInfoFromInventory ¶
func NewMachineInfoFromInventory(inv domain.Inventory) MachineInfo
type SubnetInfo ¶
func NewSubnetInfo ¶
func NewSubnetInfo( name string, namespace string, prefix int, parentSubnetName string, ) SubnetInfo
type SwitchInfo ¶
type SwitchInfo struct { Name string Lanes uint32 InterfacesInfo map[string]Interface Interfaces *metalv1alpha4.InterfaceSpec }
func (*SwitchInfo) AddSwitchInfoToMachineInterfaces ¶
func (s *SwitchInfo) AddSwitchInfoToMachineInterfaces( machineInterface metalv1alpha4.Interface, ) metalv1alpha4.Interface
Click to show internal directories.
Click to hide internal directories.