Documentation ¶
Index ¶
- func MakeTar(srcPath, destPath string, writer io.Writer) error
- type ActionType
- type ExecConfig
- type File
- type PodTool
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionType ¶
type ActionType string
const Download ActionType = "Download"
const Exec ActionType = "Exec"
type ExecConfig ¶
type PodTool ¶
type PodTool struct { Namespace string PodName string ContainerName string K8sClient *kubernetes.Clientset RestClient *rest.Config ExecConfig ExecConfig }
func (*PodTool) CopyToContainer ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.