k9s

package
v5.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package k9s provides a K9s client implementation.

This package wraps the K9s terminal UI application and provides an executor interface for launching K9s sessions connected to Kubernetes clusters.

Coverage Note: The DefaultK9sExecutor.Execute() method and parts of the HandleConnectRunE execution path cannot be fully tested in unit tests because they require launching k9s which needs an actual terminal UI. These paths are validated through integration testing with actual k9s installation and manual verification.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

Client wraps k9s command functionality.

func NewClient

func NewClient() *Client

NewClient creates a new k9s client instance with the default executor.

func (*Client) CreateConnectCommand

func (c *Client) CreateConnectCommand(kubeConfigPath, context string) *cobra.Command

CreateConnectCommand creates a k9s command with all its flags and behavior.

Jump to

Keyboard shortcuts

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