Documentation
¶
Index ¶
- Constants
- func ParseLabels(params string) (map[string]IBParam, error)
- type IBParam
- type IPAMManager
- func (ipMgr *IPAMManager) AllocateIPAddress(req ipamspec.IPAMRequest) bool
- func (ipMgr *IPAMManager) CreateARecord(req ipamspec.IPAMRequest) bool
- func (ipMgr *IPAMManager) DeleteARecord(req ipamspec.IPAMRequest)
- func (ipMgr *IPAMManager) GetIPAddress(req ipamspec.IPAMRequest) string
- func (ipMgr *IPAMManager) GetNextIPAddress(req ipamspec.IPAMRequest) string
- func (ipMgr *IPAMManager) IsPersistent() bool
- func (ipMgr *IPAMManager) ReleaseIPAddress(req ipamspec.IPAMRequest)
- type IPAMManagerParams
- type InfobloxManager
- func (infMgr *InfobloxManager) AllocateIPAddress(req ipamspec.IPAMRequest) bool
- func (infMgr *InfobloxManager) CreateARecord(req ipamspec.IPAMRequest) bool
- func (infMgr *InfobloxManager) DeleteARecord(req ipamspec.IPAMRequest)
- func (infMgr *InfobloxManager) GetIPAddress(req ipamspec.IPAMRequest) string
- func (infMgr *InfobloxManager) GetNextIPAddress(req ipamspec.IPAMRequest) string
- func (infMgr *InfobloxManager) IsPersistent() bool
- func (infMgr *InfobloxManager) ReleaseIPAddress(req ipamspec.IPAMRequest)
- type InfobloxParams
- type Manager
- type Params
Constants ¶
View Source
const ( EAKey = "F5IPAM" EAVal = "managed" )
View Source
const F5IPAMProvider = "f5-ip-provider"
View Source
const InfobloxProvider = "infoblox"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IPAMManager ¶
type IPAMManager struct {
// contains filtered or unexported fields
}
func NewIPAMManager ¶
func NewIPAMManager(params IPAMManagerParams) (*IPAMManager, error)
func (*IPAMManager) AllocateIPAddress ¶
func (ipMgr *IPAMManager) AllocateIPAddress(req ipamspec.IPAMRequest) bool
Allocates this particular ip from the IPAM LABEL
func (*IPAMManager) CreateARecord ¶
func (ipMgr *IPAMManager) CreateARecord(req ipamspec.IPAMRequest) bool
Creates an A record
func (*IPAMManager) DeleteARecord ¶
func (ipMgr *IPAMManager) DeleteARecord(req ipamspec.IPAMRequest)
Deletes an A record and releases the IP address
func (*IPAMManager) GetIPAddress ¶
func (ipMgr *IPAMManager) GetIPAddress(req ipamspec.IPAMRequest) string
func (*IPAMManager) GetNextIPAddress ¶
func (ipMgr *IPAMManager) GetNextIPAddress(req ipamspec.IPAMRequest) string
Gets and reserves the next available IP address
func (*IPAMManager) IsPersistent ¶ added in v0.1.4
func (ipMgr *IPAMManager) IsPersistent() bool
func (*IPAMManager) ReleaseIPAddress ¶
func (ipMgr *IPAMManager) ReleaseIPAddress(req ipamspec.IPAMRequest)
Releases an IP address
type IPAMManagerParams ¶
type IPAMManagerParams struct {
Range string
}
type InfobloxManager ¶ added in v0.1.4
type InfobloxManager struct {
IBLabels map[string]IBParam
// contains filtered or unexported fields
}
func NewInfobloxManager ¶ added in v0.1.4
func NewInfobloxManager(params InfobloxParams) (*InfobloxManager, error)
func (*InfobloxManager) AllocateIPAddress ¶ added in v0.1.4
func (infMgr *InfobloxManager) AllocateIPAddress(req ipamspec.IPAMRequest) bool
AllocateIPAddress Allocates given IP address
func (*InfobloxManager) CreateARecord ¶ added in v0.1.4
func (infMgr *InfobloxManager) CreateARecord(req ipamspec.IPAMRequest) bool
CreateARecord Creates an A record
func (*InfobloxManager) DeleteARecord ¶ added in v0.1.4
func (infMgr *InfobloxManager) DeleteARecord(req ipamspec.IPAMRequest)
DeleteARecord Deletes an A record and releases the IP address
func (*InfobloxManager) GetIPAddress ¶ added in v0.1.4
func (infMgr *InfobloxManager) GetIPAddress(req ipamspec.IPAMRequest) string
GetIPAddress Gets IP Address associated with hostname
func (*InfobloxManager) GetNextIPAddress ¶ added in v0.1.4
func (infMgr *InfobloxManager) GetNextIPAddress(req ipamspec.IPAMRequest) string
GetNextIPAddress Gets and reserves the next available IP address
func (*InfobloxManager) IsPersistent ¶ added in v0.1.4
func (infMgr *InfobloxManager) IsPersistent() bool
func (*InfobloxManager) ReleaseIPAddress ¶ added in v0.1.4
func (infMgr *InfobloxManager) ReleaseIPAddress(req ipamspec.IPAMRequest)
ReleaseIPAddress Releases an IP address
type InfobloxParams ¶ added in v0.1.4
type Manager ¶
type Manager interface {
IsPersistent() bool
// Creates an A record
CreateARecord(req ipamspec.IPAMRequest) bool
// Deletes an A record and releases the IP address
DeleteARecord(req ipamspec.IPAMRequest)
// Gets IP Address associated with hostname
GetIPAddress(req ipamspec.IPAMRequest) string
// Gets and reserves the next available IP address
GetNextIPAddress(req ipamspec.IPAMRequest) string
// Allocates given IP address
AllocateIPAddress(req ipamspec.IPAMRequest) bool
// Releases an IP address
ReleaseIPAddress(req ipamspec.IPAMRequest)
// contains filtered or unexported methods
}
Manager defines the interface that the IPAM system should implement
func NewManager ¶
type Params ¶
type Params struct {
Provider string
IPAMManagerParams
InfobloxParams
}
Click to show internal directories.
Click to hide internal directories.