Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
-
21
-
c9e6cdc19 (dev), d5d9317c3 (dev), 60ff03736 (dev), 28bff27b8 (dev), b85acc835 (dev), 791455c03 (dev), e88a2ed83 (dev)
-
Foundation Sprint 101, Foundations Sprint 102, Foundation Sprint 103, Foundation Sprint 104, Foundation Sprint 105, Foundation Sprint 106
Description
Dockers REST api by default listens on a unix socket ( on mac / linux ) or a named pipe ( on windows ).
To allow Qt Creator ( and others ) to interface with this API we need a way to either directly support some form of url ( e.g. unix:///var/run/docker.socket ), or specify an alternative ( in this case QLocalSocket ) socket for QNAM to use for certain requests.
Trying to implement this currently is not feasible without re-implementing / copying the private HTTP Request classes. Using the QNetworkBackend mechanism is also not an option as it is private, and not used by the HTTP Request classes that QNAM uses.
As an example, see here for how the curl api supports this: https://github.com/cqbqdd11519/DockerClient/blob/master/docker.cpp#L238
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-102855 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
550197,5 | QNAM: Trivial AbstractSocket*=>IODevice* transforms | dev | qt/qtbase | Status: NEW | +2 | 0 |
550198,5 | QNAM: Add Q*Socket abstractions in new namespace | dev | qt/qtbase | Status: NEW | 0 | 0 |
550199,4 | QNAM: Prepare protocol handlers for local socket | dev | qt/qtbase | Status: NEW | 0 | 0 |
550200,4 | Http connection channel: modernize connect | dev | qt/qtbase | Status: NEW | 0 | 0 |
550201,5 | Http connection( channel)?: support local socket | dev | qt/qtbase | Status: NEW | 0 | 0 |
550202,6 | Http: Support unix: scheme in http backend | dev | qt/qtbase | Status: NEW | 0 | 0 |
550203,5 | QNetworkReply: Add a separate test for self-contained tests | dev | qt/qtbase | Status: NEW | +2 | 0 |
550204,7 | Http: Add support for full localsocket paths | dev | qt/qtbase | Status: NEW | 0 | 0 |
555275,1 | QHttpNetworkConnection: make channels member const | dev | qt/qtbase | Status: NEW | 0 | 0 |