kube

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCommand

func RunCommand(ctx context.Context, client kubernetes.Interface, config *restclient.Config, podName string,
	namespace string, container string, command []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

Types

type Client

type Client struct {
	CmdConfig  *api.Config
	Clientset  kubernetes.Interface
	RestConfig *rest.Config
}

func NewKubeClient

func NewKubeClient(configPath string) (*Client, error)

func NewKubeClientFromSpecifiedContext

func NewKubeClientFromSpecifiedContext(configPath string, context string) (*Client, error)

type Repository

type Repository interface {
	GetContexts() ([]string, error)
}

func NewKubeRepository

func NewKubeRepository(client *Client) Repository

Jump to

Keyboard shortcuts

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