Skip to content

client/distribution_inspect: Wrap options and result#51264

Merged
thaJeztah merged 1 commit intomoby:masterfrom
vvoland:client-distrib-opts
Oct 22, 2025
Merged

client/distribution_inspect: Wrap options and result#51264
thaJeztah merged 1 commit intomoby:masterfrom
vvoland:client-distrib-opts

Conversation

@vvoland
Copy link
Contributor

@vvoland vvoland commented Oct 22, 2025

No description provided.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
@vvoland vvoland added this to the 29.0.0 milestone Oct 22, 2025
@vvoland vvoland self-assigned this Oct 22, 2025
@vvoland vvoland added the kind/refactor PR's that refactor, or clean-up code label Oct 22, 2025
@austinvazquez austinvazquez requested a review from Copilot October 22, 2025 12:18
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the DistributionInspect API to use structured options and result types instead of individual parameters, improving API consistency and extensibility.

Key Changes:

  • Introduced DistributionInspectOptions struct to wrap the encodedRegistryAuth parameter
  • Introduced DistributionInspectResult struct to wrap the return value
  • Updated all call sites to use the new API signature

Reviewed Changes

Copilot reviewed 4 out of 7 changed files in this pull request and generated no comments.

File Description
client/distribution_inspect.go Added new options and result structs; updated function signature and implementation to use these types
client/client_interfaces.go Updated interface definition to match new function signature
client/service_create.go Updated function call to pass options struct instead of individual auth parameter
client/distribution_inspect_test.go Updated test to pass empty options struct instead of empty string

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah merged commit 4ae709e into moby:master Oct 22, 2025
257 of 258 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/dependencies kind/refactor PR's that refactor, or clean-up code module/client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants