types

package
v1.109.5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const EMBEDDED_CLUSTER_LABEL = "kots.io/embedded-cluster"
View Source
const EMBEDDED_CLUSTER_ROLE_LABEL = EMBEDDED_CLUSTER_LABEL + "-role"

Variables

This section is empty.

Functions

This section is empty.

Types

type CapacityUsed

type CapacityUsed struct {
	Capacity float64 `json:"capacity"`
	Used     float64 `json:"used"`
}

type EmbeddedClusterNodes

type EmbeddedClusterNodes struct {
	Nodes                    []Node `json:"nodes"`
	HA                       bool   `json:"ha"`
	IsEmbeddedClusterEnabled bool   `json:"isEmbeddedClusterEnabled"`
}

type Node

type Node struct {
	Name             string         `json:"name"`
	IsConnected      bool           `json:"isConnected"`
	IsReady          bool           `json:"isReady"`
	IsPrimaryNode    bool           `json:"isPrimaryNode"`
	CanDelete        bool           `json:"canDelete"`
	KubeletVersion   string         `json:"kubeletVersion"`
	KubeProxyVersion string         `json:"kubeProxyVersion"`
	OperatingSystem  string         `json:"operatingSystem"`
	KernelVersion    string         `json:"kernelVersion"`
	CPU              CapacityUsed   `json:"cpu"`
	Memory           CapacityUsed   `json:"memory"`
	Pods             CapacityUsed   `json:"pods"`
	Labels           []string       `json:"labels"`
	Conditions       NodeConditions `json:"conditions"`
	PodList          []PodInfo      `json:"podList"`
}

type NodeConditions

type NodeConditions struct {
	MemoryPressure bool `json:"memoryPressure"`
	DiskPressure   bool `json:"diskPressure"`
	PidPressure    bool `json:"pidPressure"`
	Ready          bool `json:"ready"`
}

type PodInfo

type PodInfo struct {
	Name      string `json:"name"`
	Status    string `json:"status"`
	Namespace string `json:"namespace"`
	CPU       string `json:"cpu"`
	Memory    string `json:"memory"`
}

Jump to

Keyboard shortcuts

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