Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
//getIPFromNSPool(nameSpace, poolName, podName string) (*current.IPConfig, *types.NSIPPool, error)/
AllocateIP(nameSpace, nsIpPoolNames, podName string) (*current.IPConfig, *types.NSIPPool, error)
Release(nameSpace, podName string, releaseFixed bool) error
GetServiceSpecIP(fixed bool, nameSpace, servicePoolName, podName, stsName string) (*net.IP, *types.NSIPPool, error)
GetPodList() ([]types.PodNetwork, error)
CreateIPPool(pool *types.NSIPPool) error
GetIPPoolByName(nsname, poolName string) *types.NSIPPool
GetNSAllPool(namespace string) []*types.NSIPPool
GetServicePool(namespace string, ServicePoolName string) (*types.ServiceIPPool, error)
GetAllPool() []*types.NSIPPool
Delete(pool *types.NSIPPool) error
CreateServiceIPPool(serviceIPPool *types.ServiceIPPool) error
DeleteServiceIPPool(namespace string, servicePoolName string) error
GetService(namespace, serviceName string) *types.CreateServiceRequest
}
Click to show internal directories.
Click to hide internal directories.