kubectl

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package kubectl provides a kubectl client implementation.

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 kubectl command functionality.

func NewClient

func NewClient(ioStreams genericiooptions.IOStreams) *Client

NewClient creates a new kubectl client instance.

func (*Client) CreateApplyCommand

func (c *Client) CreateApplyCommand(kubeConfigPath string) *cobra.Command

CreateApplyCommand creates a kubectl apply command with all its flags and behavior.

func (*Client) CreateClusterInfoCommand

func (c *Client) CreateClusterInfoCommand(kubeConfigPath string) *cobra.Command

CreateClusterInfoCommand creates a kubectl cluster-info command with all its flags and behavior.

func (*Client) CreateCreateCommand

func (c *Client) CreateCreateCommand(kubeConfigPath string) *cobra.Command

CreateCreateCommand creates a kubectl create command with all its flags and behavior.

func (*Client) CreateDeleteCommand

func (c *Client) CreateDeleteCommand(kubeConfigPath string) *cobra.Command

CreateDeleteCommand creates a kubectl delete command with all its flags and behavior.

func (*Client) CreateDescribeCommand

func (c *Client) CreateDescribeCommand(kubeConfigPath string) *cobra.Command

CreateDescribeCommand creates a kubectl describe command with all its flags and behavior.

func (*Client) CreateEditCommand

func (c *Client) CreateEditCommand(kubeConfigPath string) *cobra.Command

CreateEditCommand creates a kubectl edit command with all its flags and behavior.

func (*Client) CreateExecCommand

func (c *Client) CreateExecCommand(kubeConfigPath string) *cobra.Command

CreateExecCommand creates a kubectl exec command with all its flags and behavior.

func (*Client) CreateExplainCommand

func (c *Client) CreateExplainCommand(kubeConfigPath string) *cobra.Command

CreateExplainCommand creates a kubectl explain command with all its flags and behavior.

func (*Client) CreateExposeCommand

func (c *Client) CreateExposeCommand(kubeConfigPath string) *cobra.Command

CreateExposeCommand creates a kubectl expose command with all its flags and behavior.

func (*Client) CreateGetCommand

func (c *Client) CreateGetCommand(kubeConfigPath string) *cobra.Command

CreateGetCommand creates a kubectl get command with all its flags and behavior.

func (*Client) CreateLogsCommand

func (c *Client) CreateLogsCommand(kubeConfigPath string) *cobra.Command

CreateLogsCommand creates a kubectl logs command with all its flags and behavior.

func (*Client) CreateRolloutCommand

func (c *Client) CreateRolloutCommand(kubeConfigPath string) *cobra.Command

CreateRolloutCommand creates a kubectl rollout command with all its flags and behavior.

func (*Client) CreateScaleCommand

func (c *Client) CreateScaleCommand(kubeConfigPath string) *cobra.Command

CreateScaleCommand creates a kubectl scale 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