metrics

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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