node

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 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 `db:"name"`
	Age               time.Duration
	CreationTimestamp time.Time         `db:"creation_ts"`
	InstanceType      string            `db:"instance_type"`
	CPUUtilisation    float64           `db:"cpu_utilisation"`
	MemoryUtilisation float64           `db:"memory_utilisation"`
	Labels            map[string]string `db:"labels"`
	Address           map[string]string `db:"address"`
}

type InfoList

type InfoList []*Info

func Fetch

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

type Utilisation added in v0.0.13

type Utilisation struct {
	CPU    float64
	Memory float64
}

Jump to

Keyboard shortcuts

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