provider

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

type Params

type Params struct {
	Range string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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