Skip to content

api/types/registry: move auth config functions to pkg#50785

Merged
thaJeztah merged 2 commits intomoby:masterfrom
austinvazquez:move-auth-config-functions-from-types
Aug 26, 2025
Merged

api/types/registry: move auth config functions to pkg#50785
thaJeztah merged 2 commits intomoby:masterfrom
austinvazquez:move-auth-config-functions-from-types

Conversation

@austinvazquez
Copy link
Contributor

- What I did
Partial for #50740
Alternative to #50765

- How I did it
Refactor the encode/decode auth config functions into their own utility package.

Carried forward the daemon touch-ups suggested from #50765

- How to verify it

- Human readable description for the release notes

api/types/registry: moved encode/decode auth config functions into reference utility package

- A picture of a cute animal (not mandatory but encouraged)

@austinvazquez austinvazquez added this to the 29.0.0 milestone Aug 22, 2025
@austinvazquez austinvazquez added area/api API area/daemon Core Engine kind/refactor PR's that refactor, or clean-up code release-blocker PRs we want to block a release on impact/api labels Aug 22, 2025
@austinvazquez austinvazquez force-pushed the move-auth-config-functions-from-types branch 2 times, most recently from 8f3fb92 to 5b0471d Compare August 22, 2025 01:55
@austinvazquez austinvazquez marked this pull request as ready for review August 22, 2025 01:58
@austinvazquez austinvazquez self-assigned this Aug 22, 2025
"fmt"
"io"
)
import "context"
Copy link
Member

Choose a reason for hiding this comment

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

Looks like RequestAuthConfig below is only used in the client, and it's referred to through GoDoc in some places. We can probably move it as well, or even consider if it's adding value (other than documentation, which ... could probably be put in the places where the signature is used).

I haven't checked yet if it's referenced in other places though (e.g. the docker CLI or elsewhere)

thaJeztah and others added 2 commits August 26, 2025 07:16
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
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 e317661 into moby:master Aug 26, 2025
203 of 206 checks passed
@austinvazquez austinvazquez deleted the move-auth-config-functions-from-types branch August 26, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api API area/daemon Core Engine impact/api kind/refactor PR's that refactor, or clean-up code release-blocker PRs we want to block a release on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants