Documentation ¶
Index ¶
- func NewIP(ipAddress ipamv1.IPAddress, searchDomains []string) ipam.IPAddress
- func NewIPPool(pool ipamv1.IPPool, searchDomains []string) ipam.IPPool
- func NewIpam(cli client.Client, log logr.Logger) ipam.IPAddressManager
- func NewPool(pool ipamv1.Pool) ipam.Pool
- type Metal3IP
- func (m Metal3IP) GetAddress() (ipam.IPAddressStr, error)
- func (m Metal3IP) GetClaim() (*corev1.ObjectReference, error)
- func (m Metal3IP) GetDnsServers() ([]ipam.IPAddressStr, error)
- func (m Metal3IP) GetGateway() (ipam.IPAddressStr, error)
- func (m Metal3IP) GetMask() (int, error)
- func (m Metal3IP) GetName() string
- func (m Metal3IP) GetPool() (corev1.ObjectReference, error)
- func (m Metal3IP) GetSearchDomains() ([]string, error)
- type Metal3IPAM
- func (m Metal3IPAM) AllocateIP(ipName string, pool ipam.IPPool, ownerObj runtime.Object) (ipam.IPAddress, error)
- func (m Metal3IPAM) DeallocateIP(name string, pool ipam.IPPool, ownerObj runtime.Object) error
- func (m Metal3IPAM) GetAvailableIPPool(poolMatchLabels map[string]string, clusterMeta metav1.ObjectMeta) (ipam.IPPool, error)
- func (m Metal3IPAM) GetIP(ipName string, pool ipam.IPPool) (ipam.IPAddress, error)
- type Metal3IPPool
- func (m Metal3IPPool) GetClusterName() (*string, error)
- func (m Metal3IPPool) GetDNSServers() ([]ipam.IPAddressStr, error)
- func (m Metal3IPPool) GetGateway() (*ipam.IPAddressStr, error)
- func (m Metal3IPPool) GetName() string
- func (m Metal3IPPool) GetNamePrefix() (string, error)
- func (m Metal3IPPool) GetNamespace() string
- func (m Metal3IPPool) GetPools() ([]ipam.Pool, error)
- func (m Metal3IPPool) GetPreAllocations() (map[string]ipam.IPAddressStr, error)
- func (m Metal3IPPool) GetPrefix() (int, error)
- func (m Metal3IPPool) GetSearchDomains() ([]string, error)
- type Metal3Pool
- func (m Metal3Pool) GetDNSServers() ([]ipam.IPAddressStr, error)
- func (m Metal3Pool) GetEnd() (*ipam.IPAddressStr, error)
- func (m Metal3Pool) GetGateway() (*ipam.IPAddressStr, error)
- func (m Metal3Pool) GetPrefix() (int, error)
- func (m Metal3Pool) GetStart() (*ipam.IPAddressStr, error)
- func (m Metal3Pool) GetSubnet() (*ipam.IPSubnetStr, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Metal3IP ¶
type Metal3IP struct { ipamv1.IPAddress // SearchDomains is a list of search domains used when resolving IP // addresses with DNS. SearchDomains []string `json:"searchDomains,omitempty"` }
func (Metal3IP) GetAddress ¶
func (m Metal3IP) GetAddress() (ipam.IPAddressStr, error)
func (Metal3IP) GetDnsServers ¶
func (m Metal3IP) GetDnsServers() ([]ipam.IPAddressStr, error)
func (Metal3IP) GetGateway ¶
func (m Metal3IP) GetGateway() (ipam.IPAddressStr, error)
func (Metal3IP) GetSearchDomains ¶
type Metal3IPAM ¶
func (Metal3IPAM) AllocateIP ¶
func (Metal3IPAM) DeallocateIP ¶
func (Metal3IPAM) GetAvailableIPPool ¶
func (m Metal3IPAM) GetAvailableIPPool(poolMatchLabels map[string]string, clusterMeta metav1.ObjectMeta) (ipam.IPPool, error)
type Metal3IPPool ¶
type Metal3IPPool struct { ipamv1.IPPool // SearchDomains is a list of search domains used when resolving IP // addresses with DNS. SearchDomains []string `json:"searchDomains,omitempty"` }
func (Metal3IPPool) GetClusterName ¶
func (m Metal3IPPool) GetClusterName() (*string, error)
func (Metal3IPPool) GetDNSServers ¶
func (m Metal3IPPool) GetDNSServers() ([]ipam.IPAddressStr, error)
func (Metal3IPPool) GetGateway ¶
func (m Metal3IPPool) GetGateway() (*ipam.IPAddressStr, error)
func (Metal3IPPool) GetName ¶
func (m Metal3IPPool) GetName() string
func (Metal3IPPool) GetNamePrefix ¶
func (m Metal3IPPool) GetNamePrefix() (string, error)
func (Metal3IPPool) GetNamespace ¶
func (m Metal3IPPool) GetNamespace() string
func (Metal3IPPool) GetPreAllocations ¶
func (m Metal3IPPool) GetPreAllocations() (map[string]ipam.IPAddressStr, error)
func (Metal3IPPool) GetPrefix ¶
func (m Metal3IPPool) GetPrefix() (int, error)
func (Metal3IPPool) GetSearchDomains ¶
func (m Metal3IPPool) GetSearchDomains() ([]string, error)
type Metal3Pool ¶
func (Metal3Pool) GetDNSServers ¶
func (m Metal3Pool) GetDNSServers() ([]ipam.IPAddressStr, error)
func (Metal3Pool) GetEnd ¶
func (m Metal3Pool) GetEnd() (*ipam.IPAddressStr, error)
func (Metal3Pool) GetGateway ¶
func (m Metal3Pool) GetGateway() (*ipam.IPAddressStr, error)
func (Metal3Pool) GetPrefix ¶
func (m Metal3Pool) GetPrefix() (int, error)
func (Metal3Pool) GetStart ¶
func (m Metal3Pool) GetStart() (*ipam.IPAddressStr, error)
func (Metal3Pool) GetSubnet ¶
func (m Metal3Pool) GetSubnet() (*ipam.IPSubnetStr, error)
Click to show internal directories.
Click to hide internal directories.