manager_status

package
v2.0.7-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Node *node.Node
	// contains filtered or unexported fields
}

Manager report node status and resource usage

func NewManager

func NewManager(n *node.Node) *Manager

NewManager returns a new Manager

func (*Manager) Run

func (m *Manager) Run(ctx context.Context)

Run start working

type NodeStatus

type NodeStatus struct {
	NodeName    string
	Node        *node.Node       `json:"node" redis:"node"`
	Cap         node.Capacity    `json:"cap" redis:"cap"`
	Allocatable node.Allocatable `json:"allocatable" redis:"allocatable"`
	Conditions  *node.Condition  `json:"conditions" redis:"conditions"`
}

NodeStatus reporting work

func NewNodeStatus

func NewNodeStatus(nodeName string) *NodeStatus

NewNodeStatus returns a new NodeStatus

Jump to

Keyboard shortcuts

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