mirror of
https://github.com/project-zot/zot.git
synced 2024-12-30 22:34:13 -05:00
be5ad66797
refactor(http): refactor http client to take options struct This commit updates the arguments for the `CreateHTTPClient` function to consume a struct which can be extended as required. It replaces the certPath argument with a struct of 3 paths for client ertificate, client key, and ca cert. It also adds a TLSEnabled option for when an HTTP Client is required without any further TLS config. Existing consumers of this function have been updated so that they can work as they do today. This change is a no-op for existing features. This allows for certificate paths to be customised and allows other modules to re-use the same HTTP client and get the benefits of mTLS support and per-host certificates. Signed-off-by: Vishwas Rajashekar <vrajashe@cisco.com> |
||
---|---|---|
.. | ||
constants | ||
features | ||
httpclient | ||
references | ||
content.go | ||
content_internal_test.go | ||
destination.go | ||
oci_layout.go | ||
on_demand.go | ||
on_demand_disabled.go | ||
remote.go | ||
service.go | ||
sync.go | ||
sync_disabled_test.go | ||
sync_internal_test.go | ||
sync_test.go | ||
utils.go |