Documentation ¶
Index ¶
- Variables
- type MetricsAllocator
- func (m *MetricsAllocator) DeleteIPPool(ippoolName string, subnet string, networkName string)
- func (m *MetricsAllocator) DeleteVmNetCfgStatus(vmName string)
- func (m *MetricsAllocator) Run()
- func (m *MetricsAllocator) Stop()
- func (m *MetricsAllocator) UpdateIPPoolAvailable(ippoolName string, subnet string, networkName string, available int)
- func (m *MetricsAllocator) UpdateIPPoolUsed(ippoolName string, subnet string, networkName string, used int)
- func (m *MetricsAllocator) UpdateVmNetCfgStatus(vmName string, networkName string, macAddr string, ipAddr string, ...)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LabelIPPoolName = "ippool" LabelSubnet = "subnet" LabelNetworkName = "network" LabelVMName = "vm" LabelMacAddress = "mac" LabelIPAddress = "ip" LabelStatus = "status" )
Functions ¶
This section is empty.
Types ¶
type MetricsAllocator ¶
type MetricsAllocator struct {
// contains filtered or unexported fields
}
func New ¶
func New() *MetricsAllocator
func NewMetricsAllocator ¶
func NewMetricsAllocator() *MetricsAllocator
func (*MetricsAllocator) DeleteIPPool ¶
func (m *MetricsAllocator) DeleteIPPool(ippoolName string, subnet string, networkName string)
func (*MetricsAllocator) DeleteVmNetCfgStatus ¶
func (m *MetricsAllocator) DeleteVmNetCfgStatus(vmName string)
func (*MetricsAllocator) Run ¶
func (m *MetricsAllocator) Run()
func (*MetricsAllocator) Stop ¶ added in v0.4.0
func (m *MetricsAllocator) Stop()
func (*MetricsAllocator) UpdateIPPoolAvailable ¶
func (m *MetricsAllocator) UpdateIPPoolAvailable(ippoolName string, subnet string, networkName string, available int)
func (*MetricsAllocator) UpdateIPPoolUsed ¶
func (m *MetricsAllocator) UpdateIPPoolUsed(ippoolName string, subnet string, networkName string, used int)
func (*MetricsAllocator) UpdateVmNetCfgStatus ¶
Click to show internal directories.
Click to hide internal directories.