MCPcopy Index your code
hub / github.com/kubernetes-client/python / read_all

Method read_all

kubernetes/base/stream/ws_client.py:177–189  ·  view source on GitHub ↗

Return buffered data received on stdout and stderr channels. This is useful for non-interactive call where a set of command passed to the API call and their result is needed after the call is concluded. Should be called after run_forever() or update() TODO: Maybe we

(self)

Source from the content-addressed store, hash-verified

175 return self.readline_channel(STDERR_CHANNEL, timeout=timeout)
176
177 def read_all(self):
178 """Return buffered data received on stdout and stderr channels.
179 This is useful for non-interactive call where a set of command passed
180 to the API call and their result is needed after the call is concluded.
181 Should be called after run_forever() or update()
182
183 TODO: Maybe we can process this and return a more meaningful map with
184 channels mapped for each input.
185 """
186 out = self._all.getvalue()
187 self._all = self._all.__class__()
188 self._channels = {}
189 return out
190
191 def is_open(self):
192 """True if the connection is still alive."""

Callers 1

websocket_callFunction · 0.95

Calls 1

getvalueMethod · 0.80

Tested by

no test coverage detected