Adapter adapts Caddyfile to Caddy JSON.
| 25 | |
| 26 | // Adapter adapts Caddyfile to Caddy JSON. |
| 27 | type Adapter struct { |
| 28 | ServerType ServerType |
| 29 | } |
| 30 | |
| 31 | // Adapt converts the Caddyfile config in body to Caddy JSON. |
| 32 | func (a Adapter) Adapt(body []byte, options map[string]any) ([]byte, []caddyconfig.Warning, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected