metal3io

package
v0.0.0-...-ba0b86d Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIP

func NewIP(ipAddress ipamv1.IPAddress, searchDomains []string) ipam.IPAddress

func NewIPPool

func NewIPPool(pool ipamv1.IPPool, searchDomains []string) ipam.IPPool

func NewIpam

func NewIpam(cli client.Client, log logr.Logger) ipam.IPAddressManager

func NewPool

func NewPool(pool ipamv1.Pool) ipam.Pool

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

func (m Metal3IP) GetClaim() (*corev1.ObjectReference, error)

func (Metal3IP) GetDnsServers

func (m Metal3IP) GetDnsServers() ([]ipam.IPAddressStr, error)

func (Metal3IP) GetGateway

func (m Metal3IP) GetGateway() (ipam.IPAddressStr, error)

func (Metal3IP) GetMask

func (m Metal3IP) GetMask() (int, error)

func (Metal3IP) GetName

func (m Metal3IP) GetName() string

func (Metal3IP) GetPool

func (m Metal3IP) GetPool() (corev1.ObjectReference, error)

func (Metal3IP) GetSearchDomains

func (m Metal3IP) GetSearchDomains() ([]string, error)

type Metal3IPAM

type Metal3IPAM struct {
	client.Client
	// contains filtered or unexported fields
}

func (Metal3IPAM) AllocateIP

func (m Metal3IPAM) AllocateIP(ipName string, pool ipam.IPPool, ownerObj runtime.Object) (ipam.IPAddress, error)

func (Metal3IPAM) DeallocateIP

func (m Metal3IPAM) DeallocateIP(name string, pool ipam.IPPool, ownerObj runtime.Object) error

func (Metal3IPAM) GetAvailableIPPool

func (m Metal3IPAM) GetAvailableIPPool(poolMatchLabels map[string]string, clusterMeta metav1.ObjectMeta) (ipam.IPPool, error)

func (Metal3IPAM) GetIP

func (m Metal3IPAM) GetIP(ipName string, pool ipam.IPPool) (ipam.IPAddress, 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) GetPools

func (m Metal3IPPool) GetPools() ([]ipam.Pool, error)

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

type Metal3Pool struct {
	ipamv1.Pool
}

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)

Jump to

Keyboard shortcuts

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