Documentation
¶
Index ¶
- type Executor
- func (e *Executor) Execute(ctx context.Context, command string) (string, error)
- func (e *Executor) GetContexts(ctx context.Context) ([]string, error)
- func (e *Executor) GetCurrentContext(ctx context.Context) (string, error)
- func (e *Executor) SetContext(ctx context.Context, contextName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor handles the execution of Kubernetes commands
func NewExecutor ¶
NewExecutor creates a new Kubernetes executor
func (*Executor) GetContexts ¶
GetContexts returns a list of available Kubernetes contexts
func (*Executor) GetCurrentContext ¶
GetCurrentContext returns the current Kubernetes context
Click to show internal directories.
Click to hide internal directories.