node

package
v0.0.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatNodeInfo

func FormatNodeInfo(nodes InfoList)

Types

type Info

type Info struct {
	Name              string
	Age               time.Duration
	CreationTimestamp time.Time
	InstanceType      string
	Utilisation       NodeUtilisation
	Labels            map[string]string
	Address           map[string]string
}

type InfoList

type InfoList []*Info

func Fetch

func Fetch(ctx context.Context, clientset *kubernetes.Clientset) (InfoList, error)

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