exec

package
v0.0.0-...-1fc562e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 18 Imported by: 0

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.

func (*Handler) Resize

func (h *Handler) Resize(w http.ResponseWriter, r *http.Request)

Resize handles POST /exec/{id}/resize.

func (*Handler) Start

func (h *Handler) Start(w http.ResponseWriter, r *http.Request)

Start handles POST /exec/{id}/start.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL