Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetNetService(zkHost []string) error //Get Netservice ip address from zookeeper RegisterPool(pool *types.NetPool) error //register ip pool info to netservice UpdatePool(pool *types.NetPool) error //update info for pool GetPool(cluster, net string) ([]*types.NetPool, error) //Get pool info from netservice DeletePool(cluster, net string) error ListAllPool() ([]*types.NetPool, error) ListAllPoolWithCluster(cluster string) ([]*types.NetPool, error) RegisterHost(host *types.HostInfo) error //register host info attaching to ip pool in netservice DeleteHost(host string, ips []string) error GetHostInfo(host string, timeout int) (*types.HostInfo, error) //Get host info by host ip address LeaseIPAddr(lease *types.IPLease, timeout int) (*types.IPInfo, error) //lease ip address from Netservice by containerId/Host/ipaddress(if needed) ReleaseIPAddr(release *types.IPRelease, ipInfo *types.IPInfo, timeout int) error // release ip address by containerId & host UpdateIPInstance(inst *types.IPInst) error TransferIPAttr(input *types.TranIPAttrInput) error }
Client define http client interface for bcs-ipam
func NewClientWithTLS ¶
NewClientWithTLS create tls client with tls
Click to show internal directories.
Click to hide internal directories.