Documentation
¶
Index ¶
- Constants
- type Executor
- func (e *Executor) Exec(pod types.NamespacedName, containerID string, command []string, blocking bool) (Result, error)
- func (e *Executor) GetPodLogs(ctx context.Context, pod corev1.Pod, logLinesCount ...int64) (logs []byte, err error)
- func (e *Executor) TailPodLogs(ctx context.Context, pod corev1.Pod, logs chan []byte) (err error)
- type Result
Constants ¶
View Source
const ( MaxStdoutLen = 3072 MaxStderrLen = 3072 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
KubeClient *kubernetes.Clientset
KubeConfig *rest.Config
}
Executor implements the remote execution in pods.
func NewExecutor ¶
NewExecutor creates a new executor from a kube config.
func (*Executor) Exec ¶
func (e *Executor) Exec(pod types.NamespacedName, containerID string, command []string, blocking bool) (Result, error)
Exec runs an exec call on the container without a shell.
Click to show internal directories.
Click to hide internal directories.