mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
api: remove / internalize LegacyDiskUsage
These fields have been removed from the API specification, and the struct was only needed to produce legacy responses (server), or to unmarshal legacy responses in the client. As the API module only provides API definitions for the current API version, we should remove these legacy structs, and keep them internal to the daemon and client. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -139,11 +139,9 @@ func TestLegacyDiskUsage(t *testing.T) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return mockJSONResponse(http.StatusOK, nil, system.DiskUsage{
|
||||
LegacyDiskUsage: system.LegacyDiskUsage{
|
||||
LayersSize: 4096,
|
||||
Images: []image.Summary{},
|
||||
},
|
||||
return mockJSONResponse(http.StatusOK, nil, &legacyDiskUsage{
|
||||
LayersSize: 4096,
|
||||
Images: []image.Summary{},
|
||||
})(req)
|
||||
}))
|
||||
assert.NilError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user