Documentation
¶
Overview ¶
Package kubectl provides a kubectl client implementation.
Index ¶
- type Client
- func (c *Client) CreateApplyCommand(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) CreateExplainCommand(kubeConfigPath string) *cobra.Command
- func (c *Client) CreateExposeCommand(kubeConfigPath string) *cobra.Command
- func (c *Client) CreateGetCommand(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) 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 ¶ added in v1.12.0
CreateDescribeCommand creates a kubectl describe command with all its flags and behavior.
func (*Client) CreateEditCommand ¶ added in v1.12.0
CreateEditCommand creates a kubectl edit command with all its flags and behavior.
func (*Client) CreateExplainCommand ¶ added in v1.12.0
CreateExplainCommand creates a kubectl explain command with all its flags and behavior.
func (*Client) CreateExposeCommand ¶ added in v1.12.0
CreateExposeCommand creates a kubectl expose command with all its flags and behavior.
func (*Client) CreateGetCommand ¶ added in v1.12.0
CreateGetCommand creates a kubectl get command with all its flags and behavior.
func (*Client) CreateRolloutCommand ¶ added in v1.12.0
CreateRolloutCommand creates a kubectl rollout command with all its flags and behavior.