Skip to content

api/types/volume: move volume list options from api to client#50789

Merged
thaJeztah merged 4 commits intomoby:masterfrom
austinvazquez:move-volume-list-options-from-api-to-client
Aug 22, 2025
Merged

api/types/volume: move volume list options from api to client#50789
thaJeztah merged 4 commits intomoby:masterfrom
austinvazquez:move-volume-list-options-from-api-to-client

Conversation

@austinvazquez
Copy link
Contributor

- What I did
Partial for #50740

This change moves the volume.ListOptions type from the api to VolumeListOptions type in the client. This change also introduces a backend volumebackend.ListOptions type to keep the daemon decoupled from the client module.

- How I did it

- How to verify it

- Human readable description for the release notes

api/types/volume: move the `ListOptions` type to the client module.

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

Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
@austinvazquez austinvazquez added this to the 29.0.0 milestone Aug 22, 2025
@austinvazquez austinvazquez self-assigned this Aug 22, 2025
@austinvazquez austinvazquez added area/api API impact/api area/daemon Core Engine kind/refactor PR's that refactor, or clean-up code area/go-sdk release-blocker PRs we want to block a release on labels Aug 22, 2025
Copy link
Member

Choose a reason for hiding this comment

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

I think we may be able to generate this file now from the swagger spec. We can do that in a follow-up, but from the looks of it, I think we can.

t.Helper()
client := testEnv.APIClient()
volumeList, err := client.VolumeList(ctx, volume.ListOptions{})
apiClient := testEnv.APIClient()
Copy link
Member

Choose a reason for hiding this comment

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

I made a few passes at this, but we should probably consider doing a rename for this across the board (i.e., integration, testutil, etc), and use apiClient as canonical name everywhere.

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, thanks!

@thaJeztah thaJeztah merged commit 35a36ce into moby:master Aug 22, 2025
228 of 229 checks passed
@austinvazquez austinvazquez deleted the move-volume-list-options-from-api-to-client branch August 22, 2025 14:35
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 area/go-sdk impact/api kind/refactor PR's that refactor, or clean-up code release-blocker PRs we want to block a release on status/4-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants