Documentation
¶
Overview ¶
Package exec implements the Docker Engine exec endpoints:
POST /containers/{id}/exec -> create an exec instance
POST /exec/{id}/start -> run it, streaming over the hijacked connection
POST /exec/{id}/resize -> resize its TTY
GET /exec/{id}/json -> inspect it, including its exit code
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler holds the exec instances, which live in memory as in the daemon.
func NewHandler ¶
func NewHandler(a *adapter.KubernetesDockerAdapter) *Handler
NewHandler creates a Handler.
func (*Handler) Create ¶
func (h *Handler) Create(w http.ResponseWriter, r *http.Request)
Create handles POST /containers/{id}/exec.
func (*Handler) Inspect ¶
func (h *Handler) Inspect(w http.ResponseWriter, r *http.Request)
Inspect handles GET /exec/{id}/json.
Click to show internal directories.
Click to hide internal directories.