client

package
v0.0.0-...-e51d0cd Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientConfig

func NewClientConfig(configPath string, contextName string) clientcmd.ClientConfig

func WriteKubeconfig

func WriteKubeconfig(config clientcmdapi.Config, filename string) error

Types

type CreateOptions

type CreateOptions = metav1.CreateOptions

type DeleteOptions

type DeleteOptions = metav1.DeleteOptions

type ExecClient

type ExecClient struct {
	// contains filtered or unexported fields
}

func NewExecClient

func NewExecClient(restConfig *rest.Config) *ExecClient

func (*ExecClient) Exec

func (c *ExecClient) Exec(ctx context.Context, pod *corev1.Pod, opts ExecOptions) error

type ExecOptions

type ExecOptions struct {
	Stdin     io.ReadCloser
	Stdout    io.Writer
	Stderr    io.Writer
	Container string
	Command   []string
	Envs      map[string]string
	User      string
}

type GetOptions

type GetOptions = metav1.GetOptions

type ListOptions

type ListOptions = metav1.ListOptions

type PatchOptions

type PatchOptions = metav1.PatchOptions

type PortForwardClient

type PortForwardClient struct {
	// contains filtered or unexported fields
}

func NewPortForwardClient

func NewPortForwardClient(restConfig *rest.Config) *PortForwardClient

func (*PortForwardClient) PortForward

func (c *PortForwardClient) PortForward(ctx context.Context, pod *corev1.Pod, opts PortForwardOptions) error

type PortForwardOptions

type PortForwardOptions struct {
	Addresses []string
	Ports     []string
}

type UnstructuredClient

type UnstructuredClient struct {
	// contains filtered or unexported fields
}

func NewUnstructuredClient

func NewUnstructuredClient(restConfig *rest.Config) *UnstructuredClient

func (*UnstructuredClient) Apply

func (*UnstructuredClient) Create

func (*UnstructuredClient) Delete

func (*UnstructuredClient) Get

func (*UnstructuredClient) List

func (*UnstructuredClient) Update

func (*UnstructuredClient) Watch

type UpdateOptions

type UpdateOptions = metav1.UpdateOptions

Jump to

Keyboard shortcuts

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