func NewTestExec(tclient *TestClient) *TestExec {
	return &TestExec{tclient}
}
NewTestExec returns a new TestExec pointer.
package kube
import (
	"bytes"
	"errors"
	"fmt"
	"io"
	"net/http"
	corev1api "k8s.io/api/core/v1"
	"k8s.io/client-go/kubernetes/scheme"
	"k8s.io/client-go/tools/remotecommand"
)
const (
	podsResourceName   = "pods"
	execSubResource    = "exec"
	containerParamName = "container"
)
type PodCommand struct {
	Command       []string
	Namespace     string
	PodName       string
	ContainerName string
}
type BufferedCommandHandler struct {
	stdout *bytes.Buffer
	stderr *bytes.Buffer
}
func NewBufferedCommandHandler() *BufferedCommandHandler {
	b1 := make([]byte, 0, 2048)
	b2 := make([]byte, 0, 2048)
	return &BufferedCommandHandler{
		stdout: bytes.NewBuffer(b1),
		stderr: bytes.NewBuffer(b2),
	}
}
func (bpc *BufferedCommandHandler) Stdout() io.Writer {
	return bpc.stdout
}
func (bpc *BufferedCommandHandler) Stderr() io.Writer {
	return bpc.stderr
}
func (bpc *BufferedCommandHandler) GetStdout() []byte {
	return bpc.stdout.Bytes()
}
func (bpc *BufferedCommandHandler) GetStderr() []byte {
	return bpc.stderr.Bytes()
}
type CommandHandler interface {
	Stdout() io.Writer
	Stderr() io.Writer
}
type TestExec struct {
	tclient *TestClient
}