mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
committed by
Aaron Schlesinger
parent
dbe44e627a
commit
26d565d7bc
@@ -51,7 +51,7 @@ func (s *storageImpl) Catalog(ctx context.Context, token string, pageSize int) (
|
||||
return nil
|
||||
}
|
||||
|
||||
res = append(res, paths.AllPathParams{module, version})
|
||||
res = append(res, paths.AllPathParams{Module: module, Version: version})
|
||||
count--
|
||||
if count == 0 {
|
||||
resToken = tokenFromModVer(module, version)
|
||||
|
||||
@@ -81,5 +81,5 @@ func parseGcpKey(p string) (paths.AllPathParams, error) {
|
||||
if m == "" || v == "" {
|
||||
return paths.AllPathParams{}, errors.E(op, fmt.Errorf("invalid object key format %s", p))
|
||||
}
|
||||
return paths.AllPathParams{m, v}, nil
|
||||
return paths.AllPathParams{Module: m, Version: v}, nil
|
||||
}
|
||||
|
||||
@@ -80,5 +80,5 @@ func parseMinioKey(o *minio.ObjectInfo) (paths.AllPathParams, error) {
|
||||
if m == "" || v == "" {
|
||||
return paths.AllPathParams{}, errors.E(op, fmt.Errorf("invalid object key format %s", o.Key))
|
||||
}
|
||||
return paths.AllPathParams{m, v}, nil
|
||||
return paths.AllPathParams{Module: m, Version: v}, nil
|
||||
}
|
||||
|
||||
@@ -81,5 +81,5 @@ func parseS3Key(o *s3.Object) (paths.AllPathParams, error) {
|
||||
if m == "" || v == "" {
|
||||
return paths.AllPathParams{}, errors.E(op, fmt.Errorf("invalid object key format %s", *o.Key))
|
||||
}
|
||||
return paths.AllPathParams{m, v}, nil
|
||||
return paths.AllPathParams{Module: m, Version: v}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user