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

Method read_channel

kubernetes/base/stream/ws_client.py:92–102  ·  view source on GitHub ↗

Read data from a channel.

(self, channel, timeout=0)

Source from the content-addressed store, hash-verified

90 return b"" if self.binary else ""
91
92 def read_channel(self, channel, timeout=0):
93 """Read data from a channel."""
94 if channel in self._closed_channels and channel not in self._channels:
95 return b"" if self.binary else ""
96 if channel not in self._channels:
97 ret = self.peek_channel(channel, timeout)
98 else:
99 ret = self._channels[channel]
100 if channel in self._channels:
101 del self._channels[channel]
102 return ret
103
104 def readline_channel(self, channel, timeout=None):
105 """Read a line from a channel."""

Callers 6

read_stdoutMethod · 0.95
read_stderrMethod · 0.95
returncodeMethod · 0.95
test_pod_apisMethod · 0.80

Calls 1

peek_channelMethod · 0.95