cdiimporter

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 (
	// ImportProgressMetricName is the name of the import progress metric
	ImportProgressMetricName = "kubevirt_cdi_import_progress_total"
)

Variables

This section is empty.

Functions

func SetupMetrics

func SetupMetrics() error

SetupMetrics register prometheus metrics

Types

type ImportProgress

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

func Progress

func Progress(ownerUID string) *ImportProgress

func (*ImportProgress) Add

func (ip *ImportProgress) Add(value float64)

Add adds value to the importProgress metric

func (*ImportProgress) Delete

func (ip *ImportProgress) Delete()

Delete removes the importProgress metric with the passed label

func (*ImportProgress) Get

func (ip *ImportProgress) Get() (float64, error)

Get returns the importProgress value

Jump to

Keyboard shortcuts

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