Documentation
¶
Index ¶
- type IPAllocator
- func (alloc *IPAllocator) AllocateIP(nameSpace, nsIpPoolNames, podName string) (*current.IPConfig, *types.NSIPPool, error)
- func (alloc *IPAllocator) AllocateSvcSpecified(fixed bool, nameSpace, serviceIPPoolName, podName, stsName string) (*current.IPConfig, *types.NSIPPool, error)
- func (alloc *IPAllocator) Close()
- func (alloc *IPAllocator) Release(nameSpace, podName string, releaseFixed bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPAllocator ¶
IPAllocator allocates IP addresses from IPPools in etcd
func NewIPAllocator ¶
func NewIPAllocator(config *types.IPAMConfig) (*IPAllocator, error)
NewIPAllocator returns a new IPAllocator from the given etcd client
func (*IPAllocator) AllocateIP ¶
func (*IPAllocator) AllocateSvcSpecified ¶
func (alloc *IPAllocator) AllocateSvcSpecified(fixed bool, nameSpace, serviceIPPoolName, podName, stsName string) (*current.IPConfig, *types.NSIPPool, error)
AllocateSvcSpecified returns an IP address and its svcIPPOOL if success.
func (*IPAllocator) Close ¶
func (alloc *IPAllocator) Close()
Click to show internal directories.
Click to hide internal directories.