func GetContainerResponse(containerID string, state dockerstate.TaskEngineState) (*v2.ContainerResponse, error) {
	containerResponse, err := v2.NewContainerResponse(containerID, state)
	if err != nil {
		return nil, errors.Errorf("Unable to generate metadata for container '%s'", containerID)
	}
	// fill in network details if not set
	if containerResponse.Networks == nil {
		if containerResponse.Networks, err = GetContainerNetworkMetadata(containerID, state); err != nil {
			return nil, err
		}
	}
	return containerResponse, nil
}
func GetContainerResponse(containerID string, state dockerstate.TaskEngineState) (*v2.ContainerResponse, error) {
	containerResponse, err := v2.NewContainerResponse(containerID, state)
	if err != nil {
		return nil, errors.Errorf("Unable to generate metadata for container '%s'", containerID)
	}
	
	if containerResponse.Networks == nil {
		if containerResponse.Networks, err = GetContainerNetworkMetadata(containerID, state); err != nil {
			return nil, err
		}
	}
	return containerResponse, nil
}
func GetContainerResponse ( containerID string , state dockerstate . TaskEngineState ) ( * v2 . ContainerResponse , error ) { containerResponse , err := v2 . NewContainerResponse ( containerID , state ) if err != nil { return nil , errors . Errorf ( " " , containerID ) } // fill in network details if not set if containerResponse . Networks == nil { if containerResponse . Networks , err = GetContainerNetworkMetadata ( containerID , state ) ; err != nil { return nil , err } } return containerResponse , nil }
// GetContainerResponse gets container response for v3 metadata
GetContainerResponse gets container response for v3 metadata