Versions in this module Expand all Collapse all v1 v1.7.3 Jan 23, 2024 Changes in this version + func MakeTar(srcPath, destPath string, writer io.Writer) error + type ActionType string + const Download + const Exec + type ExecConfig struct + Command []string + NoPreserve bool + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + Tty bool + type File struct + IsDir bool + Link string + ModTime string + Mode string + Name string + Path string + Size string + User string + UserGroup string + type PodTool struct + ContainerName string + ExecConfig ExecConfig + K8sClient *kubernetes.Clientset + Namespace string + PodName string + RestClient *rest.Config + func (p *PodTool) CatFile(filePath string) ([]byte, error) + func (p *PodTool) CopyFromPod(filePath string, destPath string) error + func (p *PodTool) CopyToContainer(destPath string) error + func (p *PodTool) CopyToPod(srcPath, destPath string) error + func (p *PodTool) EditFile(path string, content string) error + func (p *PodTool) Exec(actionType ActionType) error + func (p *PodTool) ExecCommand(commands []string) ([]byte, error) + func (p *PodTool) ListFiles(path string) ([]File, error)