Пример #1
0
 def stream_logs(self, stdout=True, stderr=True, tail='all', timeout=10.0):
     """
     Stream container output.
     """
     return stream_logs(self.inner(),
                        stdout=stdout,
                        stderr=stderr,
                        tail=tail,
                        timeout=timeout)
Пример #2
0
 def stream_logs(self, con, timeout=0.5, **kw):
     for line in stream_logs(con, timeout=timeout, **kw):
         yield line
Пример #3
0
 def stream_logs(self, con, timeout=0.5, **kw):
     return stream_logs(con, timeout=timeout, **kw)
Пример #4
0
 def stream_only(self, con, timeout=1):
     return list(stream_logs(con, tail=0, timeout=timeout))
Пример #5
0
 def stream(self, con, **kw):
     return list(stream_logs(con, **kw))