Ejemplo n.º 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)
Ejemplo n.º 2
0
 def stream_logs(self, con, timeout=0.5, **kw):
     for line in stream_logs(con, timeout=timeout, **kw):
         yield line
Ejemplo n.º 3
0
 def stream_logs(self, con, timeout=0.5, **kw):
     return stream_logs(con, timeout=timeout, **kw)
Ejemplo n.º 4
0
 def stream_only(self, con, timeout=1):
     return list(stream_logs(con, tail=0, timeout=timeout))
Ejemplo n.º 5
0
 def stream(self, con, **kw):
     return list(stream_logs(con, **kw))