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

Method list

docker/models/configs.py:55–70  ·  view source on GitHub ↗

List configs. Similar to the ``docker config ls`` command. Args: filters (dict): Server-side list filtering options. Returns: (list of :py:class:`Config`): The configs. Raises: :py:class:`docker.errors.APIError`

(self, **kwargs)

Source from the content-addressed store, hash-verified

53 return self.prepare_model(self.client.api.inspect_config(config_id))
54
55 def list(self, **kwargs):
56 """
57 List configs. Similar to the ``docker config ls`` command.
58
59 Args:
60 filters (dict): Server-side list filtering options.
61
62 Returns:
63 (list of :py:class:`Config`): The configs.
64
65 Raises:
66 :py:class:`docker.errors.APIError`
67 If the server returns an error.
68 """
69 resp = self.client.api.configs(**kwargs)
70 return [self.prepare_model(obj) for obj in resp]

Callers

nothing calls this directly

Calls 2

prepare_modelMethod · 0.80
configsMethod · 0.45

Tested by

no test coverage detected