TLSRemoteAPIConfig implements certificate retrieval from other service API
| 60 | |
| 61 | // TLSRemoteAPIConfig implements certificate retrieval from other service API |
| 62 | type TLSRemoteAPIConfig struct { |
| 63 | url string // Certificate PEM download URL |
| 64 | headers map[string]string // Optional: request headers |
| 65 | timeout time.Duration // Optional: HTTP timeout |
| 66 | cacheDir string // Cache directory |
| 67 | |
| 68 | certFile string // Cached certificate file path |
| 69 | keyFile string // Cached private key file path |
| 70 | |
| 71 | httpClient *http.Client // Internal HTTP client |
| 72 | } |
| 73 | |
| 74 | func NewTLSRemoteAPIConfig(url string, opts ...TLSRemoteAPIOption) *TLSRemoteAPIConfig { |
| 75 | o := defaultTLSRemoteAPIOptions() |
nothing calls this directly
no outgoing calls
no test coverage detected