nodes

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FinalPieChart

type FinalPieChart struct {
	ChartOpts chart.Opts `json:"chartOptions"`
	Series    []int64    `json:"series"`
	Total     int64      `json:"total"`
}

func AssembleNodesPieChart

func AssembleNodesPieChart(
	logger *log.Logger,
	clientSet *kubernetes.Clientset,
) (FinalPieChart, error)

type NodeStats

type NodeStats struct {
	Name        string            `json:"name"`
	Ready       bool              `json:"ready"`
	AgeSeconds  int               `json:"age"`
	Schedulable bool              `json:"schedulable"`
	LabelMap    map[string]string `json:"labels"`
	Version     string            `json:"version"`
	Kernel      string            `json:"kernel"`
}

type NodeTable

type NodeTable struct {
	Nodes   []NodeStats    `json:"nodes"`
	Headers []TableHeaders `json:"headers"`
}

func AssembleTable

func AssembleTable(
	logger *log.Logger,
	clientSet *kubernetes.Clientset,
	labelSlices []string,
) (NodeTable, error)

type TableHeaders

type TableHeaders struct {
	Align string `json:"align,omitempty"`
	Text  string `json:"text"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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