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
Click to show internal directories.
Click to hide internal directories.