HasCA returns whether the configuration has a certificate authority or not.
()
| 78 | |
| 79 | // HasCA returns whether the configuration has a certificate authority or not. |
| 80 | func (c *Config) HasCA() bool { |
| 81 | return len(c.TLS.CAData) > 0 || len(c.TLS.CAFile) > 0 |
| 82 | } |
| 83 | |
| 84 | // HasBasicAuth returns whether the configuration has basic authentication or not. |
| 85 | func (c *Config) HasBasicAuth() bool { |
no outgoing calls
no test coverage detected