0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-01-20 22:52:51 -05:00
zot/pkg
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
..
api chore: fix dependabot alerts (#2377) 2024-04-09 10:40:16 +03:00
cli refactor(http): refactor http client to accept more customisable options (#2414) 2024-05-06 13:43:41 -07:00
common refactor(http): refactor http client to accept more customisable options (#2414) 2024-05-06 13:43:41 -07:00
compliance refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
debug refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
exporter refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
extensions refactor(http): refactor http client to accept more customisable options (#2414) 2024-05-06 13:43:41 -07:00
log refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
meta fix: ignore metadb errors if tag not found (#2301) 2024-03-13 07:28:08 +02:00
regexp
requestcontext refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
retention refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
scheduler fix(scheduler): the session cleanup generator is reset too often (#2220) 2024-02-01 09:15:53 -08:00
storage fix(oras)!: remove ORAS artifact references support (#2294) 2024-03-06 12:16:42 -08:00
test fix(oras)!: remove ORAS artifact references support (#2294) 2024-03-06 12:16:42 -08:00