Documentation ¶
Index ¶
- type IPAMProvider
- func (prov *IPAMProvider) AllocateNextIPAddress(ipamLabel, reference string) string
- func (prov *IPAMProvider) CreateARecord(hostname, ipAddr string) bool
- func (prov *IPAMProvider) DeleteARecord(hostname, ipAddr string)
- func (prov *IPAMProvider) GetIPAddressFromARecord(ipamLabel, hostname string) string
- func (prov *IPAMProvider) GetIPAddressFromReference(ipamLabel, reference 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) AllocateNextIPAddress ¶ added in v0.1.5
func (prov *IPAMProvider) AllocateNextIPAddress(ipamLabel, reference string) string
Gets and reserves the next available IP address
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) GetIPAddressFromARecord ¶ added in v0.1.5
func (prov *IPAMProvider) GetIPAddressFromARecord(ipamLabel, hostname string) string
func (*IPAMProvider) GetIPAddressFromReference ¶ added in v0.1.5
func (prov *IPAMProvider) GetIPAddressFromReference(ipamLabel, reference string) string
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.