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)
| 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] |
nothing calls this directly
no test coverage detected