lifecycle

package
v0.1.18-rc13 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

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

Collector gathers the capacity data sent in node heartbeats.

func NewCollector

func NewCollector() *Collector

NewCollector constructs a capacity collector.

func (*Collector) CollectCapacity

func (c *Collector) CollectCapacity(ctx context.Context) NodeCapacity

CollectCapacity builds the resource values consumed by heartbeat reporting.

type NodeCapacity

type NodeCapacity struct {
	CPUFreeMillis  domaintypes.CPUmilli
	CPUTotalMillis domaintypes.CPUmilli
	MemFreeBytes   domaintypes.Bytes
	MemTotalBytes  domaintypes.Bytes
	DiskFreeBytes  domaintypes.Bytes
	DiskTotalBytes domaintypes.Bytes
}

NodeCapacity represents available node resources for scheduling.

Jump to

Keyboard shortcuts

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