agent/handlers/v1/response.go
func NewVolumesResponse(dockerContainer *apicontainer.DockerContainer) []VolumeResponse {
	container := dockerContainer.Container
	var resp []VolumeResponse

	volumes := container.GetVolumes()

	for _, volume := range volumes {
		volResp := VolumeResponse{
			DockerName:  volume.Name,
			Source:      volume.Source,
			Destination: volume.Destination,
		}

		resp = append(resp, volResp)
	}
	return resp
}
func NewVolumesResponse(dockerContainer *apicontainer.DockerContainer) []VolumeResponse {
	container := dockerContainer.Container
	var resp []VolumeResponse

	volumes := container.GetVolumes()

	for _, volume := range volumes {
		volResp := VolumeResponse{
			DockerName:  volume.Name,
			Source:      volume.Source,
			Destination: volume.Destination,
		}

		resp = append(resp, volResp)
	}
	return resp
}
// NewVolumesResponse creates VolumeResponse for a container