imagetools: support oci-layout refs

Add oci-layout:// source and target support to imagetools create and
inspect while keeping merge, filter, and referrer logic shared.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2026-03-12 22:45:01 -07:00
parent 71edf28d8e
commit 9894189361
13 changed files with 869 additions and 192 deletions
+7
View File
@@ -15,6 +15,13 @@ func RegistryAuthForRef(ref string, auth authprovider.AuthConfigProvider) (strin
if auth == nil {
return "", nil
}
loc, err := ParseLocation(ref)
if err != nil {
return "", err
}
if loc.IsOCILayout() {
return "", nil
}
r, err := parseRef(ref)
if err != nil {
return "", err