66
77use Docker \API \Client ;
88use Docker \API \Model \AuthConfig ;
9- use Docker \API \Model \ExecIdStartPostBody ;
10- use Docker \Endpoint \ContainerAttach ;
11- use Docker \Endpoint \ContainerAttachWebsocket ;
12- use Docker \Endpoint \ContainerLogs ;
13- use Docker \Endpoint \ExecStart ;
14- use Docker \Endpoint \ImageBuild ;
15- use Docker \Endpoint \ImageCreate ;
169use Docker \Endpoint \ImagePush ;
17- use Docker \Endpoint \SystemEvents ;
1810
1911/**
2012 * Docker\Docker.
2113 */
2214class Docker extends Client
2315{
24- /**
25- * {@inheritdoc}
26- */
27- public function containerAttach (string $ id , array $ queryParameters = [], string $ fetch = self ::FETCH_OBJECT , array $ accept = [])
28- {
29- return $ this ->executeEndpoint (new ContainerAttach ($ id , $ queryParameters , $ accept ), $ fetch );
30- }
31-
32- /**
33- * {@inheritdoc}
34- */
35- public function containerAttachWebsocket (string $ id , array $ queryParameters = [], string $ fetch = self ::FETCH_OBJECT , array $ accept = [])
36- {
37- return $ this ->executeEndpoint (new ContainerAttachWebsocket ($ id , $ queryParameters , $ accept ), $ fetch );
38- }
39-
40- /**
41- * {@inheritdoc}
42- */
43- public function containerLogs (string $ id , array $ queryParameters = [], string $ fetch = self ::FETCH_OBJECT , array $ accept = [])
44- {
45- return $ this ->executeEndpoint (new ContainerLogs ($ id , $ queryParameters , $ accept ), $ fetch );
46- }
47-
48- /**
49- * {@inheritdoc}
50- */
51- public function execStart (string $ id , ?ExecIdStartPostBody $ execStartConfig = null , string $ fetch = self ::FETCH_OBJECT )
52- {
53- return $ this ->executeEndpoint (new ExecStart ($ id , $ execStartConfig ), $ fetch );
54- }
55-
56- /**
57- * {@inheritdoc}
58- */
59- public function imageBuild ($ inputStream = null , array $ queryParameters = [], array $ headerParameters = [], string $ fetch = self ::FETCH_OBJECT )
60- {
61- return $ this ->executeEndpoint (new ImageBuild ($ inputStream , $ queryParameters , $ headerParameters ), $ fetch );
62- }
63-
64- /**
65- * {@inheritdoc}
66- */
67- public function imageCreate (?string $ inputImage = null , array $ queryParameters = [], array $ headerParameters = [], string $ fetch = self ::FETCH_OBJECT )
68- {
69- return $ this ->executeEndpoint (new ImageCreate ($ inputImage , $ queryParameters , $ headerParameters ), $ fetch );
70- }
71-
7216 /**
7317 * {@inheritdoc}
7418 */
@@ -81,14 +25,6 @@ public function imagePush(string $name, array $queryParameters = [], array $head
8125 return $ this ->executeEndpoint (new ImagePush ($ name , $ queryParameters , $ headerParameters , $ accept ), $ fetch );
8226 }
8327
84- /**
85- * {@inheritdoc}
86- */
87- public function systemEvents (array $ queryParameters = [], string $ fetch = self ::FETCH_OBJECT )
88- {
89- return $ this ->executeEndpoint (new SystemEvents ($ queryParameters ), $ fetch );
90- }
91-
9228 public static function create ($ httpClient = null , array $ additionalPlugins = [], array $ additionalNormalizers = [])
9329 {
9430 if (null === $ httpClient ) {
0 commit comments