Documentation ¶
Index ¶
- type K8sAPIExecutor
- func (k *K8sAPIExecutor) CopyFile(containerName string, sourcePath string, destPath string, compressionLevel int) error
- func (k *K8sAPIExecutor) GetExitCode(ctx context.Context, containerName string) (string, error)
- func (k *K8sAPIExecutor) GetFileContents(containerName string, sourcePath string) (string, error)
- func (k *K8sAPIExecutor) GetOutputStream(ctx context.Context, containerName string, combinedOutput bool) (io.ReadCloser, error)
- func (k *K8sAPIExecutor) Kill(ctx context.Context, containerNames []string, ...) error
- func (k *K8sAPIExecutor) Until(ctx context.Context, f func(pod *corev1.Pod) bool) error
- func (k *K8sAPIExecutor) 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 K8sAPIExecutor ¶
type K8sAPIExecutor struct {
// contains filtered or unexported fields
}
func NewK8sAPIExecutor ¶
func NewK8sAPIExecutor(clientset kubernetes.Interface, config *restclient.Config, podName, namespace string) *K8sAPIExecutor
func (*K8sAPIExecutor) GetExitCode ¶
func (*K8sAPIExecutor) GetFileContents ¶
func (k *K8sAPIExecutor) GetFileContents(containerName string, sourcePath string) (string, error)
func (*K8sAPIExecutor) GetOutputStream ¶
func (k *K8sAPIExecutor) GetOutputStream(ctx context.Context, containerName string, combinedOutput bool) (io.ReadCloser, error)
func (*K8sAPIExecutor) Kill ¶
func (k *K8sAPIExecutor) Kill(ctx context.Context, containerNames []string, terminationGracePeriodDuration time.Duration) error
Kill kills a list of containers first with a SIGTERM then with a SIGKILL after a grace period
Click to show internal directories.
Click to hide internal directories.