mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-21 16:01:22 +02:00
feat(api): add GetContainer endpoint and Docker host ID mapping
- Implemented GetContainer function to retrieve container details by ID. - Introduced idDockerHostMap for mapping container IDs to Docker hosts. - Updated Container struct to allow omitting the State field in JSON responses.
This commit is contained in:
@@ -16,7 +16,7 @@ type Container struct {
|
||||
Name string `json:"name"`
|
||||
ID string `json:"id"`
|
||||
Image string `json:"image"`
|
||||
State ContainerState `json:"state"`
|
||||
State ContainerState `json:"state,omitempty" extensions:"x-nullable"`
|
||||
} // @name ContainerResponse
|
||||
|
||||
// @x-id "containers"
|
||||
|
||||
Reference in New Issue
Block a user