reorder some source files

This commit is contained in:
2026-03-11 09:54:17 +02:00
parent 30fe237657
commit f4c9948c61
27 changed files with 283 additions and 2403 deletions
+2 -2
View File
@@ -49,13 +49,13 @@ func (util *ImageUtil) imageManifest(common *CommonImageParams, params *ImageMan
}
timeout := time.Duration(common.Timeout) * time.Second
ctx, _ := context.WithTimeout(context.Background(), timeout)
ref, err := repocli.ParseReference(params.Imagepath)
ref, err := repocli.NewReferer(params.Imagepath)
if err != nil {
return res, err
}
mw := repocli.NewBasicAuthMiddleware(ref.Userinfo())
cli := repocli.NewClient(nil, mw)
exists, mime, man, err := cli.GetRawManifest(ctx, ref.Repo())
exists, mime, man, _, err := cli.GetRawManifest(ctx, ref.RawRepo())
if !exists {
err = fmt.Errorf("Manifest not found")
return res, err