Documentation ¶
Index ¶
- type IpamClient
- func (ic *IpamClient) GetAddressSpace() (string, error)
- func (ic *IpamClient) GetIPAddressUtilization(poolID string) (int, int, []string, error)
- func (ic *IpamClient) GetPoolID(asID, subnet string) (string, error)
- func (ic *IpamClient) ReleaseIPAddress(poolID string, reservationID string) error
- func (ic *IpamClient) ReserveIPAddress(poolID string, reservationID string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpamClient ¶
type IpamClient struct {
// contains filtered or unexported fields
}
IpamClient specifies a client to connect to Ipam Plugin.
func NewIpamClient ¶
func NewIpamClient(url string) (*IpamClient, error)
NewIpamClient create a new ipam client.
func (*IpamClient) GetAddressSpace ¶
func (ic *IpamClient) GetAddressSpace() (string, error)
GetAddressSpace request to get address space ID.
func (*IpamClient) GetIPAddressUtilization ¶
GetIPAddressUtilization - returns number of available, reserved and unhealthy addresses list.
func (*IpamClient) GetPoolID ¶
func (ic *IpamClient) GetPoolID(asID, subnet string) (string, error)
GetPoolID Request to get poolID.
func (*IpamClient) ReleaseIPAddress ¶
func (ic *IpamClient) ReleaseIPAddress(poolID string, reservationID string) error
ReleaseIPAddress release an Ip address for the reservation id.
func (*IpamClient) ReserveIPAddress ¶
func (ic *IpamClient) ReserveIPAddress(poolID string, reservationID string) (string, error)
ReserveIPAddress request an Ip address for the reservation id.
Click to show internal directories.
Click to hide internal directories.