Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPAllocator ¶
type IPAllocator struct {
// contains filtered or unexported fields
}
IPAllocator allocates IP addresses from IPPools in etcd
func NewIPAllocator ¶
func NewIPAllocator(etcdClient *clientv3.Client) *IPAllocator
NewIPAllocator returns a new IPAllocator from the given etcd client
func (*IPAllocator) AllocateIP ¶
func (alloc *IPAllocator) AllocateIP(fixed bool, nameSpace, serviceIPPoolName, podName, stsName string) (*current.IPConfig, *types.NSIPPool, error)
AllocateIP returns an IP address and its nsIPPool if success.
Click to show internal directories.
Click to hide internal directories.