From 4ebb17f3d997e90f87364fd5103480887fe985a4 Mon Sep 17 00:00:00 2001 From: "Lixia (Sylvia) Lei" Date: Thu, 7 Nov 2024 16:43:33 +0800 Subject: [PATCH 1/3] docs: update doc for ReferrerListPageSize Signed-off-by: Lixia (Sylvia) Lei --- registry/remote/repository.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/registry/remote/repository.go b/registry/remote/repository.go index 7c36dc1c..6c2bda63 100644 --- a/registry/remote/repository.go +++ b/registry/remote/repository.go @@ -118,6 +118,10 @@ type Repository struct { // ReferrerListPageSize specifies the page size when invoking the Referrers // API. // If zero, the page size is determined by the remote registry. + // + // NOTE: Pagination for the Referrers API is not defined in the distribution spec, so not all registries support it. + // ReferrerListPageSize may be ignored if pagination is unsupported by the remote registry. + // // Reference: https://github.com/opencontainers/distribution-spec/blob/v1.1.0/spec.md#listing-referrers ReferrerListPageSize int From 49e591f709c8dca68678c86b9356d3cecae16bfd Mon Sep 17 00:00:00 2001 From: "Lixia (Sylvia) Lei" Date: Fri, 8 Nov 2024 15:43:05 +0800 Subject: [PATCH 2/3] reference the issue Signed-off-by: Lixia (Sylvia) Lei --- registry/remote/repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/remote/repository.go b/registry/remote/repository.go index 6c2bda63..0a98844f 100644 --- a/registry/remote/repository.go +++ b/registry/remote/repository.go @@ -122,7 +122,7 @@ type Repository struct { // NOTE: Pagination for the Referrers API is not defined in the distribution spec, so not all registries support it. // ReferrerListPageSize may be ignored if pagination is unsupported by the remote registry. // - // Reference: https://github.com/opencontainers/distribution-spec/blob/v1.1.0/spec.md#listing-referrers + // Reference: https://github.com/oras-project/oras-go/issues/841 ReferrerListPageSize int // MaxMetadataBytes specifies a limit on how many response bytes are allowed From 1bf7e79bc5f091484ac65e08204f3bdcf43537b9 Mon Sep 17 00:00:00 2001 From: "Lixia (Sylvia) Lei" Date: Fri, 8 Nov 2024 16:56:15 +0800 Subject: [PATCH 3/3] fix format Signed-off-by: Lixia (Sylvia) Lei --- registry/remote/repository.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/registry/remote/repository.go b/registry/remote/repository.go index 0a98844f..2d81b11b 100644 --- a/registry/remote/repository.go +++ b/registry/remote/repository.go @@ -119,8 +119,9 @@ type Repository struct { // API. // If zero, the page size is determined by the remote registry. // - // NOTE: Pagination for the Referrers API is not defined in the distribution spec, so not all registries support it. - // ReferrerListPageSize may be ignored if pagination is unsupported by the remote registry. + // NOTE: Pagination for the Referrers API is not defined in the distribution + // spec, so not all registries support it. ReferrerListPageSize may be + // ignored if pagination is unsupported by the remote registry. // // Reference: https://github.com/oras-project/oras-go/issues/841 ReferrerListPageSize int