MCPcopy
hub / github.com/docker/docker-py / reload

Method reload

docker/models/swarm.py:144–153  ·  view source on GitHub ↗

Inspect the swarm on the server and store the response in :py:attr:`attrs`. Raises: :py:class:`docker.errors.APIError` If the server returns an error.

(self)

Source from the content-addressed store, hash-verified

142 leave.__doc__ = APIClient.leave_swarm.__doc__
143
144 def reload(self):
145 """
146 Inspect the swarm on the server and store the response in
147 :py:attr:`attrs`.
148
149 Raises:
150 :py:class:`docker.errors.APIError`
151 If the server returns an error.
152 """
153 self.attrs = self.client.api.inspect_swarm()
154
155 def unlock(self, key):
156 return self.client.api.unlock_swarm(key)

Callers 15

__init__Method · 0.95
initMethod · 0.95
test_killMethod · 0.45
test_pauseMethod · 0.45
test_renameMethod · 0.45
test_restartMethod · 0.45
test_startMethod · 0.45
test_stopMethod · 0.45

Calls 1

inspect_swarmMethod · 0.80

Tested by 15

test_killMethod · 0.36
test_pauseMethod · 0.36
test_renameMethod · 0.36
test_restartMethod · 0.36
test_startMethod · 0.36
test_stopMethod · 0.36
test_updateMethod · 0.36
test_list_get_updateMethod · 0.36