nodeutil

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatNodeInfo

func FormatNodeInfo(nodes []NodeInfo)

Types

type NodeInfo

type NodeInfo struct {
	Name         string
	Age          time.Duration
	InstanceType string
	Utilisation  NodeUtilisation
}

func GetNodes

func GetNodes(ctx context.Context, kubeconfigFile string, labelSelector string) []NodeInfo

type NodeUtilisation

type NodeUtilisation struct {
	CPU    float64
	Memory float64
}

Jump to

Keyboard shortcuts

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