Skip to content

client: refactor Events, Info, RegistryLogin#51320

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:refactor_client_system_step1
Oct 29, 2025
Merged

client: refactor Events, Info, RegistryLogin#51320
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:refactor_client_system_step1

Conversation

@thaJeztah
Copy link
Member

- Human readable description for the release notes

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

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

// RegistryLoginResult holds the result of a RegistryLogin query.
type RegistryLoginResult struct {
Auth registry.AuthenticateOKBody
Copy link
Member Author

Choose a reason for hiding this comment

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

I'll open a follow-up PR to rename this type to something cleaner (AuthenticateResponse probably?)

Comment on lines +27 to +33
auth := registry.AuthConfig{
Username: options.Username,
Password: options.Password,
ServerAddress: options.ServerAddress,
IdentityToken: options.IdentityToken,
RegistryToken: options.RegistryToken,
}
Copy link
Member Author

Choose a reason for hiding this comment

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

@Benehiko wondering if you've had time to look if all of these fields should indeed be user-configurable as part of the request (mostly looking at IdentityToken and RegistryToken), or if one of them is only used internally (as part of the registry client round-trip)

@thaJeztah thaJeztah merged commit 7041c02 into moby:master Oct 29, 2025
223 of 224 checks passed
@thaJeztah thaJeztah deleted the refactor_client_system_step1 branch October 29, 2025 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants