node

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 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 InfoList)

Types

type Info

type Info struct {
	Name   string            `db:"name"`
	Labels map[string]string `db:"labels"`

	Address                 map[string]string `db:"address"`
	Age                     time.Duration
	AllocatableCPU          float64           `db:"allocatable_cpu"`
	AllocatableMemory       float64           `db:"allocatable_memory"`
	Annotations             map[string]string `db:"annotations"`
	Architecture            string            `db:"architecture"`
	CapacityCPU             float64           `db:"capacity_cpu"`
	CapacityMemory          float64           `db:"capacity_memory"`
	ContainerRuntimeVersion string            `db:"container_runtime_version"`
	CPUUtilisation          float64           `db:"cpu_utilisation"`
	CreationTimestamp       time.Time         `db:"creation_ts"`
	InstanceType            string            `db:"instance_type"`
	KernelVersion           string            `db:"kernel_version"`
	KubeletVersion          string            `db:"kubelet_version"`
	MemoryUtilisation       float64           `db:"memory_utilisation"`
	OperatingSystem         string            `db:"operating_system"`
	OSImage                 string            `db:"os_image"`
	Taints                  TaintList
}

type InfoList

type InfoList []*Info

func Fetch

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

type Taint added in v0.0.15

type Taint struct {
	Effect string
	Key    string
	Value  string
}

type TaintList added in v0.0.15

type TaintList []*Taint

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