Documentation ¶
Index ¶
- type IPAMProvider
- func (prov *IPAMProvider) AllocateIPAddress(ipamLabel, ipAddr string) bool
- func (prov *IPAMProvider) CreateARecord(hostname, ipAddr string) bool
- func (prov *IPAMProvider) DeleteARecord(hostname, ipAddr string)
- func (prov *IPAMProvider) GetIPAddress(ipamLabel, hostname string) string
- func (prov *IPAMProvider) GetNextAddr(ipamLabel string) string
- func (prov *IPAMProvider) Init(params Params) bool
- func (prov *IPAMProvider) ReleaseAddr(ipAddr string)
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPAMProvider ¶
type IPAMProvider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider(params Params) *IPAMProvider
func (*IPAMProvider) AllocateIPAddress ¶
func (prov *IPAMProvider) AllocateIPAddress(ipamLabel, ipAddr string) bool
Marks an IP address as allocated if it belongs to that IPAM LABEL
func (*IPAMProvider) CreateARecord ¶
func (prov *IPAMProvider) CreateARecord(hostname, ipAddr string) bool
Creates an A record
func (*IPAMProvider) DeleteARecord ¶
func (prov *IPAMProvider) DeleteARecord(hostname, ipAddr string)
Deletes an A record and releases the IP address
func (*IPAMProvider) GetIPAddress ¶
func (prov *IPAMProvider) GetIPAddress(ipamLabel, hostname string) string
func (*IPAMProvider) GetNextAddr ¶
func (prov *IPAMProvider) GetNextAddr(ipamLabel string) string
Gets and reserves the next available IP address
func (*IPAMProvider) Init ¶
func (prov *IPAMProvider) Init(params Params) bool
func (*IPAMProvider) ReleaseAddr ¶
func (prov *IPAMProvider) ReleaseAddr(ipAddr string)
Releases an IP address
Click to show internal directories.
Click to hide internal directories.