Documentation
¶
Overview ¶
Package k9s provides a k9s client implementation.
Coverage Note: The DefaultK9sExecutor.Execute() method (line 20) 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 - Manual verification of the connect command - Mock-based testing of all logic leading up to k9s execution
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps k9s command functionality.
func NewClient ¶
func NewClient() *Client
NewClient creates a new k9s client instance with the default executor.
func NewClientWithExecutor ¶
NewClientWithExecutor creates a new k9s client with a custom executor for testing.
type DefaultK9sExecutor ¶
type DefaultK9sExecutor struct{}
DefaultK9sExecutor is the default implementation that calls k9s directly.
func (*DefaultK9sExecutor) Execute ¶
func (e *DefaultK9sExecutor) Execute()
Execute calls the k9s cmd.Execute function.