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

Method UnmarshalCaddyfile

modules/caddytls/leafpemloader.go:57–61  ·  view source on GitHub ↗

UnmarshalCaddyfile implements caddyfile.Unmarshaler.

(d *caddyfile.Dispenser)

Source from the content-addressed store, hash-verified

55
56// UnmarshalCaddyfile implements caddyfile.Unmarshaler.
57func (fl *LeafPEMLoader) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
58 d.NextArg()
59 fl.Certificates = append(fl.Certificates, d.RemainingArgs()...)
60 return nil
61}
62
63// LoadLeafCertificates returns the certificates contained in pl.
64func (pl LeafPEMLoader) LoadLeafCertificates() ([]*x509.Certificate, error) {

Callers

nothing calls this directly

Calls 2

NextArgMethod · 0.80
RemainingArgsMethod · 0.80

Tested by

no test coverage detected