UnmarshalCaddyfile implements caddyfile.Unmarshaler.
(d *caddyfile.Dispenser)
| 55 | |
| 56 | // UnmarshalCaddyfile implements caddyfile.Unmarshaler. |
| 57 | func (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. |
| 64 | func (pl LeafPEMLoader) LoadLeafCertificates() ([]*x509.Certificate, error) { |
nothing calls this directly
no test coverage detected