Documentation ¶
Index ¶
- type K8sAPIExecutor
- func (k *K8sAPIExecutor) CopyFile(containerID string, sourcePath string, destPath string, compressionLevel int) error
- func (k *K8sAPIExecutor) GetExitCode(containerID string) (string, error)
- func (k *K8sAPIExecutor) GetFileContents(containerID string, sourcePath string) (string, error)
- func (k *K8sAPIExecutor) GetOutputStream(containerID string, combinedOutput bool) (io.ReadCloser, error)
- func (k *K8sAPIExecutor) Kill(containerIDs []string) error
- func (k *K8sAPIExecutor) Wait(containerID string) error
- func (k *K8sAPIExecutor) WaitInit() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sAPIExecutor ¶
type K8sAPIExecutor struct {
// contains filtered or unexported fields
}
func NewK8sAPIExecutor ¶
func NewK8sAPIExecutor(clientset *kubernetes.Clientset, config *restclient.Config, podName, namespace string) (*K8sAPIExecutor, error)
func (*K8sAPIExecutor) GetExitCode ¶
func (k *K8sAPIExecutor) GetExitCode(containerID string) (string, error)
func (*K8sAPIExecutor) GetFileContents ¶
func (k *K8sAPIExecutor) GetFileContents(containerID string, sourcePath string) (string, error)
func (*K8sAPIExecutor) GetOutputStream ¶
func (k *K8sAPIExecutor) GetOutputStream(containerID string, combinedOutput bool) (io.ReadCloser, error)
func (*K8sAPIExecutor) Kill ¶
func (k *K8sAPIExecutor) Kill(containerIDs []string) error
Kill kills a list of containerIDs first with a SIGTERM then with a SIGKILL after a grace period
func (*K8sAPIExecutor) Wait ¶
func (k *K8sAPIExecutor) Wait(containerID string) error
Wait for the container to complete
func (*K8sAPIExecutor) WaitInit ¶
func (k *K8sAPIExecutor) WaitInit() error
Click to show internal directories.
Click to hide internal directories.