Issuer is the interface implemented by sources that can issue certificates on-demand.
| 25 | // Issuer is the interface implemented by sources that can issue certificates |
| 26 | // on-demand. |
| 27 | type Issuer interface { |
| 28 | // Issue issues a new certificate for the given common name. Issue must |
| 29 | // return a certificate or an error, never (nil, nil). |
| 30 | Issue(commonName string) (*tls.Certificate, error) |
| 31 | } |
| 32 | |
| 33 | // NewSource generates a cert source from the config options. |
| 34 | func NewSource(cfg config.CertSource) (Source, error) { |
no outgoing calls
no test coverage detected