internal/

directory
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

Directories

Path Synopsis
Package adapter is the core of d2k.
Package adapter is the core of d2k.
api
containers
Package containers implements the Docker Engine API surface for container lifecycle management, translating each endpoint into Kubernetes Deployment operations via the adapter layer.
Package containers implements the Docker Engine API surface for container lifecycle management, translating each endpoint into Kubernetes Deployment operations via the adapter layer.
events
Package events implements GET /events: the namespace's Docker events, recorded by the adapter as the daemon records its own.
Package events implements GET /events: the namespace's Docker events, recorded by the adapter as the daemon records its own.
exec
Package exec implements the Docker Engine exec endpoints:
Package exec implements the Docker Engine exec endpoints:
images
Package images implements the Docker Engine API image endpoints d2k needs.
Package images implements the Docker Engine API image endpoints d2k needs.
networks
Package networks implements the Docker Engine API surface for network management.
Package networks implements the Docker Engine API surface for network management.
swarm
Package swarm implements the Docker Swarm API surface for d2k.
Package swarm implements the Docker Swarm API surface for d2k.
system
Package system implements the Docker Engine system endpoints.
Package system implements the Docker Engine system endpoints.
volumes
Package volumes implements the Docker Engine API surface for volume management, translating each endpoint into Kubernetes PVC operations.
Package volumes implements the Docker Engine API surface for volume management, translating each endpoint into Kubernetes PVC operations.
Package apispec holds the Docker Engine API routes d2k is measured against, generated from the pinned moby API specification in docker-v1.52.yaml (https://github.com/moby/moby/blob/master/api/swagger.yaml, v1.52.0, Apache-2.0).
Package apispec holds the Docker Engine API routes d2k is measured against, generated from the pinned moby API specification in docker-v1.52.yaml (https://github.com/moby/moby/blob/master/api/swagger.yaml, v1.52.0, Apache-2.0).
gen command
Command gen writes the Docker Engine API route table from a swagger spec.
Command gen writes the Docker Engine API route table from a swagger spec.
Package errdefs classifies errors by the kind of failure, so the HTTP layer can answer with the status the Docker daemon uses for it.
Package errdefs classifies errors by the kind of failure, so the HTTP layer can answer with the status the Docker daemon uses for it.
Package filters provides tools for encoding a mapping of keys to a set of multiple values.
Package filters provides tools for encoding a mapping of keys to a set of multiple values.
Package logging configures zerolog the way Portainer does (portainer server-ce/api/logs).
Package logging configures zerolog the way Portainer does (portainer server-ce/api/logs).
Package namesgenerator generates random names.
Package namesgenerator generates random names.
Package pki creates the certificates d2k's mTLS endpoint needs: a CA, a server certificate signed by it, and a client certificate for Docker clients such as the Docker CLI and Portainer.
Package pki creates the certificates d2k's mTLS endpoint needs: a CA, a server certificate signed by it, and a client certificate for Docker clients such as the Docker CLI and Portainer.
Package router builds and returns the http.ServeMux that implements the Docker Engine API surface exposed by d2k.
Package router builds and returns the http.ServeMux that implements the Docker Engine API surface exposed by d2k.
Package server runs d2k's listeners: the Docker API over mutual TLS (or plain TCP when explicitly insecure), an optional unix socket, and a plain health endpoint for kubelet probes.
Package server runs d2k's listeners: the Docker API over mutual TLS (or plain TCP when explicitly insecure), an optional unix socket, and a plain health endpoint for kubelet probes.
Package streams implements the Docker Engine API's stream formats: the multiplexed framing of stdout and stderr, and taking over the connection for attach and exec.
Package streams implements the Docker Engine API's stream formats: the multiplexed framing of stdout and stderr, and taking over the connection for attach and exec.

Jump to

Keyboard shortcuts

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