Documentation
¶
Overview ¶
Package kubectl provides a kubectl client implementation.
Index ¶
- type Client
- func (c *Client) CreateApplyCommand(kubeConfigPath string) *cobra.Command
- func (c *Client) CreateClusterInfoCommand(kubeConfigPath string) *cobra.Command
- func (c *Client) CreateCreateCommand(kubeConfigPath string) *cobra.Command
- func (c *Client) CreateDeleteCommand(kubeConfigPath string) *cobra.Command
- func (c *Client) CreateDescribeCommand(kubeConfigPath string) *cobra.Command
- func (c *Client) CreateEditCommand(kubeConfigPath string) *cobra.Command
- func (c *Client) CreateExecCommand(kubeConfigPath string) *cobra.Command
- func (c *Client) CreateExplainCommand(kubeConfigPath string) *cobra.Command
- func (c *Client) CreateExposeCommand(kubeConfigPath string) *cobra.Command
- func (c *Client) CreateGetCommand(kubeConfigPath string) *cobra.Command
- func (c *Client) CreateLogsCommand(kubeConfigPath string) *cobra.Command
- func (c *Client) CreateRolloutCommand(kubeConfigPath string) *cobra.Command
- func (c *Client) CreateScaleCommand(kubeConfigPath string) *cobra.Command
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 ¶
CreateApplyCommand creates a kubectl apply command with all its flags and behavior.
func (*Client) CreateClusterInfoCommand ¶
CreateClusterInfoCommand creates a kubectl cluster-info command with all its flags and behavior.
func (*Client) CreateCreateCommand ¶
CreateCreateCommand creates a kubectl create command with all its flags and behavior.
func (*Client) CreateDeleteCommand ¶
CreateDeleteCommand creates a kubectl delete command with all its flags and behavior.
func (*Client) CreateDescribeCommand ¶
CreateDescribeCommand creates a kubectl describe command with all its flags and behavior.
func (*Client) CreateEditCommand ¶
CreateEditCommand creates a kubectl edit command with all its flags and behavior.
func (*Client) CreateExecCommand ¶
CreateExecCommand creates a kubectl exec command with all its flags and behavior.
func (*Client) CreateExplainCommand ¶
CreateExplainCommand creates a kubectl explain command with all its flags and behavior.
func (*Client) CreateExposeCommand ¶
CreateExposeCommand creates a kubectl expose command with all its flags and behavior.
func (*Client) CreateGetCommand ¶
CreateGetCommand creates a kubectl get command with all its flags and behavior.
func (*Client) CreateLogsCommand ¶
CreateLogsCommand creates a kubectl logs command with all its flags and behavior.
func (*Client) CreateRolloutCommand ¶
CreateRolloutCommand creates a kubectl rollout command with all its flags and behavior.