MCPcopy Index your code
hub / github.com/docker/docker-py / _result

Method _result

docker/api/client.py:279–287  ·  view source on GitHub ↗
(self, response, json=False, binary=False)

Source from the content-addressed store, hash-verified

277 raise create_api_error_from_http_exception(e) from e
278
279 def _result(self, response, json=False, binary=False):
280 assert not (json and binary)
281 self._raise_for_status(response)
282
283 if json:
284 return response.json()
285 if binary:
286 return response.content
287 return response.text
288
289 def _post_json(self, url, data, **kwargs):
290 # Go <1.1 can't unserialize null to a string

Callers 15

_stream_helperMethod · 0.95
_get_result_ttyMethod · 0.95
create_configMethod · 0.80
inspect_configMethod · 0.80
configsMethod · 0.80
networksMethod · 0.80
create_networkMethod · 0.80
prune_networksMethod · 0.80
inspect_networkMethod · 0.80
historyMethod · 0.80
imagesMethod · 0.80

Calls 1

_raise_for_statusMethod · 0.95

Tested by

no test coverage detected