exec

package
v0.0.0-...-ef3bf40 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sExec

type K8sExec struct {
	ClientSet  kubernetes.Interface
	RestConfig *rest.Config

	PodName       string
	ContainerName string
	Namespace     string
}

func New

func New(clientSet kubernetes.Interface, restConfig *rest.Config, podName, containerName, namespace string) *K8sExec

func (*K8sExec) DownloadFromPod

func (k8s *K8sExec) DownloadFromPod(remoteFile, localFile string) error

func (*K8sExec) Exec

func (k8s *K8sExec) Exec(command []string) ([]byte, []byte, error)

func (*K8sExec) PutToPod

func (k8s *K8sExec) PutToPod(content, remoteFile string) error

Jump to

Keyboard shortcuts

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