Documentation
¶
Index ¶
- type PNSExecutor
- func (p *PNSExecutor) CopyFile(containerName string, sourcePath string, destPath string, compressionLevel int) (err error)
- func (p *PNSExecutor) GetFileContents(containerName string, sourcePath string) (string, error)
- func (p *PNSExecutor) Kill(ctx context.Context, containerNames []string, ...) error
- func (p *PNSExecutor) Wait(ctx context.Context, containerNames, sidecarNames []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PNSExecutor ¶
type PNSExecutor struct { *k8sapi.K8sAPIExecutor // contains filtered or unexported fields }
func NewPNSExecutor ¶
func NewPNSExecutor(clientset *kubernetes.Clientset, podName, namespace string) (*PNSExecutor, error)
func (*PNSExecutor) CopyFile ¶
func (p *PNSExecutor) CopyFile(containerName string, sourcePath string, destPath string, compressionLevel int) (err error)
CopyFile copies a source file in a container to a local path
func (*PNSExecutor) GetFileContents ¶
func (p *PNSExecutor) GetFileContents(containerName string, sourcePath string) (string, error)
Click to show internal directories.
Click to hide internal directories.