dmetrics_manager

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownwardMetricsManager

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

DownwardMetricsManager controls the lifetime of the DownwardMetrics servers. Each server is tied to the lifetime of the VMI and DownwardMetricsManager itself.

func NewDownwardMetricsManager

func NewDownwardMetricsManager(nodeName string) *DownwardMetricsManager

func (*DownwardMetricsManager) Run

func (m *DownwardMetricsManager) Run(stopCh chan struct{})

Run blocks until stopCh is closed. When done, it stops all remaining running DownwardMetrics servers.

func (*DownwardMetricsManager) StartServer

func (m *DownwardMetricsManager) StartServer(vmi *v1.VirtualMachineInstance, pid int) error

StartServer start a new DownwardMetrics server if the VM request it and is not already started

func (*DownwardMetricsManager) StopServer

func (m *DownwardMetricsManager) StopServer(vmi *v1.VirtualMachineInstance)

StopServer removes the VMI name from the list of served VMs a nd stop the DownwardMetrics server if necessary

Jump to

Keyboard shortcuts

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