// Exec prepares a streaming endpoint to execute a command in the container.
Exec prepares a streaming endpoint to execute a command in the container.
// Exec prepares a streaming endpoint to execute a command in the container .
func (h *Runtime) Exec(req *kubeapi.ExecRequest) (*kubeapi.ExecResponse, error) {
	if h.streamingServer == nil {
		return nil, streaming.ErrorStreamingDisabled("exec")
	}
	err := ensureContainerRunning(h.client, req.ContainerId)
	if err != nil {
		return nil, err
	}
	return h.streamingServer.GetExec(req)
}
func ( h * Runtime ) Exec ( req * kubeapi . ExecRequest ) ( * kubeapi . ExecResponse , error ) { if h . streamingServer == nil { return nil , streaming . ErrorStreamingDisabled ( " " ) } err := ensureContainerRunning ( h . client , req . ContainerId ) if err != nil { return nil , err } return h . streamingServer . GetExec ( req ) }
Exec prepares a streaming endpoint to execute a command in the container.
Exec prepares a streaming endpoint to execute a command in the container .