virt_api

package
v1.2.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListMetrics

func ListMetrics() []operatormetrics.Metric

func NewVMCreated

func NewVMCreated(vm *v1.VirtualMachine)

func SetupMetrics

func SetupMetrics() error

Types

type Decrementer

type Decrementer interface {
	Dec()
}

func NewActiveConsoleConnection

func NewActiveConsoleConnection(namespace, name string) Decrementer

NewActiveConsoleConnection increments the metric for active console sessions by one for namespace and name and returns a recorder for decrementing it once the connection is closed

func NewActivePortForwardTunnel

func NewActivePortForwardTunnel(namespace, name string) Decrementer

NewActivePortForwardTunnel increments the metric for active portforward tunnels by one for namespace and name and returns a recorder for decrementing it once the tunnel is closed

func NewActiveUSBRedirConnection

func NewActiveUSBRedirConnection(namespace, name string) Decrementer

NewActiveUSBRedirConnection increments the metric for active USB redirection connections by one for namespace and name and returns a recorder for decrementing it once the connection is closed

func NewActiveVNCConnection

func NewActiveVNCConnection(namespace, name string) Decrementer

NewActiveVNCConnection increments the metric for active VNC connections by one for namespace and name and returns a recorder for decrementing it once the connection is closed

Jump to

Keyboard shortcuts

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