Documentation ¶
Index ¶
- Variables
- type IP
- type IPAM
- func (ipam *IPAM) AddOrUpdateSubnet(name, cidrStr string, excludeIps []string) error
- func (ipam *IPAM) ContainAddress(address string) bool
- func (ipam *IPAM) DeleteSubnet(subnetName string)
- func (ipam *IPAM) GetPodAddress(podName string) []*SubnetAddress
- func (ipam *IPAM) GetRandomAddress(podName, subnetName string, skippedAddrs []string) (string, string, string, error)
- func (ipam *IPAM) GetStaticAddress(podName, ip, mac, subnetName string) (string, string, string, error)
- func (ipam *IPAM) IsIPAssignedToPod(ip, subnetName string) bool
- func (ipam *IPAM) ReleaseAddressByPod(podName string)
- type IPRange
- type IPRangeList
- type Subnet
- func (subnet *Subnet) ContainAddress(address IP) bool
- func (subnet *Subnet) GetPodAddress(podName string) (IP, IP, string, string)
- func (subnet *Subnet) GetRandomAddress(podName string, skippedAddrs []string) (IP, IP, string, error)
- func (subnet *Subnet) GetRandomMac(podName string) string
- func (subnet *Subnet) GetStaticAddress(podName string, ip IP, mac string, force bool) (IP, string, error)
- func (subnet *Subnet) GetStaticMac(podName, mac string) error
- func (subnet *Subnet) ReleaseAddress(podName string)
- type SubnetAddress
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type IPAM ¶
func (*IPAM) AddOrUpdateSubnet ¶
func (*IPAM) ContainAddress ¶
func (*IPAM) DeleteSubnet ¶
func (*IPAM) GetPodAddress ¶
func (ipam *IPAM) GetPodAddress(podName string) []*SubnetAddress
func (*IPAM) GetRandomAddress ¶
func (*IPAM) GetStaticAddress ¶
func (*IPAM) IsIPAssignedToPod ¶
func (*IPAM) ReleaseAddressByPod ¶
type IPRangeList ¶
type IPRangeList []*IPRange
func (IPRangeList) Contains ¶
func (iprl IPRangeList) Contains(ip IP) bool
type Subnet ¶
type Subnet struct { Name string Protocol string V4CIDR *net.IPNet V4FreeIPList IPRangeList V4ReleasedIPList IPRangeList V4ReservedIPList IPRangeList V4PodToIP map[string]IP V4IPToPod map[IP]string V6CIDR *net.IPNet V6FreeIPList IPRangeList V6ReleasedIPList IPRangeList V6ReservedIPList IPRangeList V6PodToIP map[string]IP V6IPToPod map[IP]string PodToMac map[string]string MacToPod map[string]string // contains filtered or unexported fields }
func (*Subnet) ContainAddress ¶
func (*Subnet) GetPodAddress ¶
func (*Subnet) GetRandomAddress ¶
func (*Subnet) GetRandomMac ¶
func (*Subnet) GetStaticAddress ¶
func (*Subnet) GetStaticMac ¶
func (*Subnet) ReleaseAddress ¶
type SubnetAddress ¶
Click to show internal directories.
Click to hide internal directories.