ipamclient

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func (ic *IpamClient) GetIPAddressUtilization(poolID string) (int, int, []string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL