kubectl

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: Apache-2.0 Imports: 7 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) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL