Documentation ¶
Index ¶
- type PNSExecutor
- func (p *PNSExecutor) CopyFile(containerID string, sourcePath string, destPath string) (err error)
- func (p *PNSExecutor) GetFileContents(containerID string, sourcePath string) (string, error)
- func (p *PNSExecutor) GetOutputStream(containerID string, combinedOutput bool) (io.ReadCloser, error)
- func (p *PNSExecutor) Kill(containerIDs []string) error
- func (p *PNSExecutor) Wait(containerID string) error
- func (p *PNSExecutor) WaitInit() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PNSExecutor ¶
type PNSExecutor struct {
// contains filtered or unexported fields
}
func NewPNSExecutor ¶
func NewPNSExecutor(clientset *kubernetes.Clientset, podName, namespace string, hasOutputs bool) (*PNSExecutor, error)
func (*PNSExecutor) CopyFile ¶
func (p *PNSExecutor) CopyFile(containerID string, sourcePath string, destPath string) (err error)
CopyFile copies a source file in a container to a local path
func (*PNSExecutor) GetFileContents ¶
func (p *PNSExecutor) GetFileContents(containerID string, sourcePath string) (string, error)
func (*PNSExecutor) GetOutputStream ¶
func (p *PNSExecutor) GetOutputStream(containerID string, combinedOutput bool) (io.ReadCloser, error)
func (*PNSExecutor) Kill ¶
func (p *PNSExecutor) Kill(containerIDs []string) error
Kill a list of containerIDs first with a SIGTERM then with a SIGKILL after a grace period
func (*PNSExecutor) Wait ¶
func (p *PNSExecutor) Wait(containerID string) error
Wait for the container to complete
func (*PNSExecutor) WaitInit ¶
func (p *PNSExecutor) WaitInit() error
Click to show internal directories.
Click to hide internal directories.