Documentation ¶
Index ¶
- Variables
- type MetricsAllocator
- func (a *MetricsAllocator) DeleteIPPool(name string, cidr string, networkName string)
- func (a *MetricsAllocator) DeleteVmNetCfgStatus(name string)
- func (a *MetricsAllocator) GetHTTPHandler() http.Handler
- func (a *MetricsAllocator) UpdateIPPoolAvailable(name string, cidr string, networkName string, available int)
- func (a *MetricsAllocator) UpdateIPPoolUsed(name string, cidr string, networkName string, used int)
- func (a *MetricsAllocator) UpdateVmNetCfgStatus(name, networkName, macAddress, ipAddress, state string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LabelIPPoolName = "ippool" LabelCIDR = "cidr" LabelNetworkName = "network" LabelVmNetCfgName = "vmnetcfg" LabelMACAddress = "mac" LabelIPAddress = "ip" LabelState = "state" )
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 (a *MetricsAllocator) DeleteIPPool(name string, cidr string, networkName string)
func (*MetricsAllocator) DeleteVmNetCfgStatus ¶
func (a *MetricsAllocator) DeleteVmNetCfgStatus(name string)
func (*MetricsAllocator) GetHTTPHandler ¶
func (a *MetricsAllocator) GetHTTPHandler() http.Handler
func (*MetricsAllocator) UpdateIPPoolAvailable ¶
func (a *MetricsAllocator) UpdateIPPoolAvailable(name string, cidr string, networkName string, available int)
func (*MetricsAllocator) UpdateIPPoolUsed ¶
func (a *MetricsAllocator) UpdateIPPoolUsed(name string, cidr string, networkName string, used int)
func (*MetricsAllocator) UpdateVmNetCfgStatus ¶
func (a *MetricsAllocator) UpdateVmNetCfgStatus(name, networkName, macAddress, ipAddress, state string)
Click to show internal directories.
Click to hide internal directories.