shared

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNetworkConfig

func GenerateNetworkConfig(vm *models.MicroVM) (string, error)

GenerateNetworkConfig will generate the cloud-init network config from the vm spec.

func PIDReadFromFile

func PIDReadFromFile(pidFile string, fs afero.Fs) (int, error)

func PIDWriteToFile

func PIDWriteToFile(pid int, pidFile string, fs afero.Fs) error

Types

type MachineMetrics

type MachineMetrics struct {
	Namespace   string  `json:"Namespace"`
	MachineName string  `json:"MachineName"`
	MachineUID  string  `json:"MachineUID"`
	Data        Metrics `json:"Data"`
}

func (MachineMetrics) ToPrometheus

func (mm MachineMetrics) ToPrometheus() []byte

type Metrics

type Metrics map[string]map[string]int64

Jump to

Keyboard shortcuts

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