mirror of
https://github.com/containerd/containerd.git
synced 2026-08-08 17:11:15 +00:00
According to the OCI distribution spec registries may include
informational warnings in HTTP Warning headers:
- e612a6e1e1/spec.md (warnings)
- https://www.rfc-editor.org/rfc/rfc7234#section-5.5
This change implements support for handling these warnings and
propagating them to the resolver.
This patch adds a new, optional WarningHandler interface field to
ResolverOptions that allows callers to receive and process warnings sent
by registries via HTTP Warning headers with warn-code 299.
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>