commands

package
v0.0.0-...-ca525e6 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterNameCmd

func GetClusterNameCmd() tea.Msg

func GetKubernetesClientCmd

func GetKubernetesClientCmd() tea.Msg

func RefreshResourceList

func RefreshResourceList(
	clientset *kubernetes.Clientset,
	resourceType *k8s.ResourceType,
) tea.Cmd

func ResourceDetails

func ResourceDetails(
	clientset kubernetes.Clientset,
	resourceType k8s.ResourceType,
	name, namespace string,
) tea.Cmd

func Tick

func Tick(tickInterval time.Duration) tea.Cmd

Types

type EmptyMsg

type EmptyMsg struct{}

type K8sClientMsg

type K8sClientMsg struct{ Clientset *kubernetes.Clientset }

type K8sClusterNameMsg

type K8sClusterNameMsg struct{ Name string }

type RefreshResourceListMsg

type RefreshResourceListMsg struct {
	Rows     []table.Row
	Resource k8s.ResourceType
}

type ResourceChangeMsg

type ResourceChangeMsg struct{ NewResource k8s.ResourceType }

type ResourceDetailsMsg

type ResourceDetailsMsg struct{ Value k8s.ResourceSelector }

type StatusBarUpdateMsg

type StatusBarUpdateMsg struct {
	ConnectionStatus string
	ClusterName      string
	NodeData         string
	Status           string
}

type TickMsg

type TickMsg time.Time

Jump to

Keyboard shortcuts

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