metal

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugin = plugins.Plugin{
	Name:   "metal",
	Setup6: setup6,
	Setup4: setup4,
}

Functions

func ApplyEndpointForInventory

func ApplyEndpointForInventory(name string, mac net.HardwareAddr, ip *netip.Addr) error

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"
)

Jump to

Keyboard shortcuts

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