Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecContainer ¶
func ExecContainer(ctx context.Context, opts ExecOptions, terminalSizeQueue remotecommand.TerminalSizeQueue) (int, error)
ExecContainer executes a remote execution against a pod. Returns exit code and error. The error will be non-nil if exit code is not 0.
func SyncExec ¶
func SyncExec(coreClient corev1client.CoreV1Interface, clientConfig *restclient.Config, ns, pod, container string, command ...string) (int, string, string, error)
SyncExec returns exitcode, stdout, stderr. A non-zero exit code from the command is not considered an error.
Types ¶
type ExecOptions ¶
type ExecOptions struct { StreamOptions Command []string CoreClient corev1client.CoreV1Interface Config *restclient.Config }
Click to show internal directories.
Click to hide internal directories.