SHARE
TWEET

Untitled

a guest Jul 21st, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn logs-seq
  2.   "Convert a docker-client ^LogStream to a seq of lines."
  3.   [logs]
  4.   (let [it (iterator-seq logs)
  5.         content (map #(.toString (.decode StandardCharsets/UTF_8 (.content ^LogMessage %))) it)]
  6.     (mapcat #(string/split % #"\n") content)))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top