MCPcopy Create free account
hub / github.com/docker/go-plugins-helpers / NewHandler

Function NewHandler

ipam/api.go:98–102  ·  view source on GitHub ↗

NewHandler initializes the request handler with a driver implementation.

(ipam Ipam)

Source from the content-addressed store, hash-verified

96
97// NewHandler initializes the request handler with a driver implementation.
98func NewHandler(ipam Ipam) *Handler {
99 h := &Handler{ipam, sdk.NewHandler(manifest)}
100 h.initMux()
101 return h
102}
103
104func (h *Handler) initMux() {
105 h.HandleFunc(capabilitiesPath, func(w http.ResponseWriter, r *http.Request) {

Callers

nothing calls this directly

Calls 1

initMuxMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…