0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-30 22:34:13 -05:00
zot/pkg/extensions/sync
Vishwas R be5ad66797
refactor(http): refactor http client to accept more customisable options (#2414)
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>
2024-05-06 13:43:41 -07:00
..
constants fix(oras)!: remove ORAS artifact references support (#2294) 2024-03-06 12:16:42 -08:00
features fix(sync): sync generator now backs off on errors (#2272) 2024-03-04 09:44:11 -08:00
httpclient refactor(http): refactor http client to accept more customisable options (#2414) 2024-05-06 13:43:41 -07:00
references fix(oras)!: remove ORAS artifact references support (#2294) 2024-03-06 12:16:42 -08:00
content.go refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
content_internal_test.go refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
destination.go fix(sync): better cleaning sync's download dir (#2273) 2024-02-29 09:09:21 -08:00
oci_layout.go refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
on_demand.go fix(sync): added bearer client for sync (#2222) 2024-02-14 09:18:10 -08:00
on_demand_disabled.go feat(scheduler): pass the shutdown/reload ctx to running tasks (#1671) 2023-09-05 09:48:56 -07:00
remote.go fix(sync): added bearer client for sync (#2222) 2024-02-14 09:18:10 -08:00
service.go fix(sync): sync generator now backs off on errors (#2272) 2024-03-04 09:44:11 -08:00
sync.go fix(sync): sync generator now backs off on errors (#2272) 2024-03-04 09:44:11 -08:00
sync_disabled_test.go refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
sync_internal_test.go refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
sync_test.go fix(oras)!: remove ORAS artifact references support (#2294) 2024-03-06 12:16:42 -08:00
utils.go refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00