cdicloner

package
v1.59.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CloneProgressMetricName is the name of the clone progress metric
	CloneProgressMetricName = "kubevirt_cdi_clone_progress_total"
)

Variables

This section is empty.

Functions

func SetupMetrics

func SetupMetrics() error

SetupMetrics register prometheus metrics

Types

type CloneProgress

type CloneProgress struct {
	// contains filtered or unexported fields
}

func Progress

func Progress(ownerUID string) *CloneProgress

func (*CloneProgress) Add

func (cp *CloneProgress) Add(value float64)

Add adds value to the cloneProgress metric

func (*CloneProgress) Delete

func (cp *CloneProgress) Delete()

Delete removes the cloneProgress metric with the passed label

func (*CloneProgress) Get

func (cp *CloneProgress) Get() (float64, error)

Get returns the cloneProgress value

Jump to

Keyboard shortcuts

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