feat: docker usage examples & statfs

This commit is contained in:
Nicolas Meienberger
2025-09-25 21:13:49 +02:00
parent 86f7ae8a89
commit c261590ea3
16 changed files with 339 additions and 121 deletions

View File

@@ -100,6 +100,16 @@ export const deleteVolumeDto = describeRoute({
},
});
const getVolumeResponse = type({
volume: volumeSchema,
statfs: type({
total: "number",
used: "number",
free: "number",
}),
});
export type GetVolumeResponseDto = typeof getVolumeResponse.infer;
/**
* Get a volume
*/
@@ -113,7 +123,7 @@ export const getVolumeDto = describeRoute({
description: "Volume details",
content: {
"application/json": {
schema: resolver(volumeSchema),
schema: resolver(getVolumeResponse),
},
},
},