diff --git a/pkg/storage/fs/cataloger.go b/pkg/storage/fs/cataloger.go index 33ebf940..a1c3e1d6 100644 --- a/pkg/storage/fs/cataloger.go +++ b/pkg/storage/fs/cataloger.go @@ -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) diff --git a/pkg/storage/gcp/cataloger.go b/pkg/storage/gcp/cataloger.go index 4bee434f..4442824a 100644 --- a/pkg/storage/gcp/cataloger.go +++ b/pkg/storage/gcp/cataloger.go @@ -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 } diff --git a/pkg/storage/minio/cataloger.go b/pkg/storage/minio/cataloger.go index a518aed5..9f2b9583 100644 --- a/pkg/storage/minio/cataloger.go +++ b/pkg/storage/minio/cataloger.go @@ -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 } diff --git a/pkg/storage/s3/cataloger.go b/pkg/storage/s3/cataloger.go index 1c31d638..3614329f 100644 --- a/pkg/storage/s3/cataloger.go +++ b/pkg/storage/s3/cataloger.go @@ -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 }