MCPcopy
hub / github.com/caddyserver/caddy / Adapt

Method Adapt

caddyconfig/configadapters.go:27–27  ·  view source on GitHub ↗
(body []byte, options map[string]any)

Source from the content-addressed store, hash-verified

25// It returns the results and any warnings, or an error.
26type Adapter interface {
27 Adapt(body []byte, options map[string]any) ([]byte, []Warning, error)
28}
29
30// Warning represents a warning or notice related to conversion.

Callers 6

loadConfigWithLoggerFunction · 0.95
cmdAdaptConfigFunction · 0.65
ensureConfigRunningMethod · 0.65
CompareAdaptFunction · 0.65
TestCaddyfileAdaptToJSONFunction · 0.65
adaptByContentTypeFunction · 0.65

Implementers 1

Adaptercaddyconfig/caddyfile/adapter.go

Calls

no outgoing calls

Tested by 1

TestCaddyfileAdaptToJSONFunction · 0.52