Documentation ¶
Index ¶
- Variables
- func ApplyEndpointForInventory(name string, mac net.HardwareAddr, ip *netip.Addr) error
- func ApplyEndpointForMACAddress(mac net.HardwareAddr, subnetFamily ipamv1alpha1.SubnetAddressType) error
- func GetEndpointForMACAddress(mac net.HardwareAddr) (*metalv1alpha1.Endpoint, error)
- func GetIPAMIPAddressForMACAddress(mac net.HardwareAddr, subnetFamily ipamv1alpha1.SubnetAddressType) (*netip.Addr, error)
- func GetInventoryEntryMatchingMACAddress(mac net.HardwareAddr) string
- type Inventory
- type OnBoardingStrategy
Constants ¶
This section is empty.
Variables ¶
View Source
var Plugin = plugins.Plugin{
Name: "metal",
Setup6: setup6,
Setup4: setup4,
}
Functions ¶
func ApplyEndpointForMACAddress ¶ added in v0.4.0
func ApplyEndpointForMACAddress(mac net.HardwareAddr, subnetFamily ipamv1alpha1.SubnetAddressType) error
func GetEndpointForMACAddress ¶ added in v0.4.0
func GetEndpointForMACAddress(mac net.HardwareAddr) (*metalv1alpha1.Endpoint, error)
func GetIPAMIPAddressForMACAddress ¶ added in v0.4.0
func GetIPAMIPAddressForMACAddress(mac net.HardwareAddr, subnetFamily ipamv1alpha1.SubnetAddressType) (*netip.Addr, error)
func GetInventoryEntryMatchingMACAddress ¶ added in v0.4.0
func GetInventoryEntryMatchingMACAddress(mac net.HardwareAddr) string
Types ¶
type Inventory ¶ added in v0.4.0
type Inventory struct { Entries map[string]string Strategy OnBoardingStrategy }
type OnBoardingStrategy ¶ added in v0.4.0
type OnBoardingStrategy string
const ( OnBoardingStrategyStatic OnBoardingStrategy = "Static" OnboardingStrategyDynamic OnBoardingStrategy = "Dynamic" )
Click to show internal directories.
Click to hide internal directories.