Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PodExec ¶
type PodExec struct { K8sClient *kubernetes.Clientset RESTConfig *rest.Config Namespace string PodName string ContainerName string Command []string Stdin io.Reader Stdout io.Writer Stderr io.Writer Tty bool NoPreserve bool }
func NewPodExec ¶
func (*PodExec) FromPodContainer ¶
FromPodContainer 从pod内拷贝到io.Writer
func (*PodExec) ToPodContainer ¶
ToPodContainer 从io.Writer拷贝到pod tar file ---> io.Writer ---> kubernetes api ---> io.Reader ---> unTar file
Click to show internal directories.
Click to hide internal directories.