@@ -127,8 +127,7 @@ public function version()
127127 public function events ($ since = null , $ until = null , $ filters = array ())
128128 {
129129 return $ this ->streamingParser ->deferredStream (
130- $ this ->eventsStream ($ since , $ until , $ filters ),
131- 'progress '
130+ $ this ->eventsStream ($ since , $ until , $ filters )
132131 );
133132 }
134133
@@ -138,12 +137,9 @@ public function events($since = null, $until = null, $filters = array())
138137 * This is a JSON streaming API endpoint that returns a stream instance.
139138 *
140139 * The resulting stream will emit the following events:
141- * - progress: for *each* element in the update stream
142- * - error: once if an error occurs, will close() stream then
143- * - close: once the stream ends (either finished or after "error")
144- *
145- * Please note that the resulting stream does not emit any "data" events, so
146- * you will not be able to pipe() its events into another `WritableStream`.
140+ * - data: for *each* element in the update stream
141+ * - error: once if an error occurs, will close() stream then
142+ * - close: once the stream ends (either finished or after "error")
147143 *
148144 * The optional `$filters` parameter can be used to only get events for
149145 * certain event types, images and/or containers etc. like this:
@@ -758,9 +754,9 @@ public function imageList($all = false)
758754 */
759755 public function imageCreate ($ fromImage = null , $ fromSrc = null , $ repo = null , $ tag = null , $ registry = null , $ registryAuth = null )
760756 {
761- $ stream = $ this ->imageCreateStream ( $ fromImage , $ fromSrc , $ repo , $ tag , $ registry , $ registryAuth );
762-
763- return $ this -> streamingParser -> deferredStream ( $ stream , ' progress ' );
757+ return $ this ->streamingParser -> deferredStream (
758+ $ this -> imageCreateStream ( $ fromImage , $ fromSrc , $ repo , $ tag , $ registry , $ registryAuth )
759+ );
764760 }
765761
766762 /**
@@ -769,12 +765,9 @@ public function imageCreate($fromImage = null, $fromSrc = null, $repo = null, $t
769765 * This is a JSON streaming API endpoint that returns a stream instance.
770766 *
771767 * The resulting stream will emit the following events:
772- * - progress: for *each* element in the update stream
773- * - error: once if an error occurs, will close() stream then
774- * - close: once the stream ends (either finished or after "error")
775- *
776- * Please note that the resulting stream does not emit any "data" events, so
777- * you will not be able to pipe() its events into another `WritableStream`.
768+ * - data: for *each* element in the update stream
769+ * - error: once if an error occurs, will close() stream then
770+ * - close: once the stream ends (either finished or after "error").
778771 *
779772 * Pulling a private image from a remote registry will likely require authorization, so make
780773 * sure to pass the $registryAuth parameter, see `self::authHeaders()` for
@@ -871,9 +864,9 @@ public function imageHistory($image)
871864 */
872865 public function imagePush ($ image , $ tag = null , $ registry = null , $ registryAuth = null )
873866 {
874- $ stream = $ this ->imagePushStream ( $ image , $ tag , $ registry , $ registryAuth );
875-
876- return $ this -> streamingParser -> deferredStream ( $ stream , ' progress ' );
867+ return $ this ->streamingParser -> deferredStream (
868+ $ this -> imagePushStream ( $ image , $ tag , $ registry , $ registryAuth )
869+ );
877870 }
878871
879872 /**
@@ -882,12 +875,9 @@ public function imagePush($image, $tag = null, $registry = null, $registryAuth =
882875 * This is a JSON streaming API endpoint that returns a stream instance.
883876 *
884877 * The resulting stream will emit the following events:
885- * - progress: for *each* element in the update stream
886- * - error: once if an error occurs, will close() stream then
887- * - close: once the stream ends (either finished or after "error")
888- *
889- * Please note that the resulting stream does not emit any "data" events, so
890- * you will not be able to pipe() its events into another `WritableStream`.
878+ * - data: for *each* element in the update stream
879+ * - error: once if an error occurs, will close() stream then
880+ * - close: once the stream ends (either finished or after "error")
891881 *
892882 * Pushing to a remote registry will likely require authorization, so make
893883 * sure to pass the $registryAuth parameter, see `self::authHeaders()` for
0 commit comments