Help us shape the future of Go! Take the 2026 Go Developer Survey

kubernetes

package
v0.0.0-...-4e9b641 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeStatus

type KubeStatus struct {
	Pods  map[string]PodStatus  `json:"pods"`
	Nodes map[string]NodeStatus `json:"nodes"`
}

type KubeWatcher

type KubeWatcher struct {
	// contains filtered or unexported fields
}

func NewKubeWatcher

func NewKubeWatcher(configPath string, namespace string, log *slog.Logger) (*KubeWatcher, error)

func (*KubeWatcher) Watch

func (w *KubeWatcher) Watch(controlContext context.Context, kubeChan chan<- KubeStatus)

type NodeStatus

type NodeStatus struct {
	NodeName string   `json:"nodeName"`
	Status   string   `json:"status"`
	Ready    bool     `json:"ready"`
	Version  string   `json:"version"`
	Roles    []string `json:"roles"`
}

type PodStatus

type PodStatus struct {
	PodName   string `json:"podName"`
	Namespace string `json:"namespace"`
	Status    string `json:"status"`
	Node      string `json:"node"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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