deprecate pkg/stdcopy, move to api/stdcopy#50462
Conversation
pkg/stdcopy/stdcopy_deprecated.go
Outdated
| import ( | ||
| "io" | ||
|
|
||
| "github.com/docker/docker/api/stdcopy" |
There was a problem hiding this comment.
I was on the fence on the best location for this; it's not a "type" (really?), so it didn't feel right to put it under types/. Also considered if we needed a utils/ or common/ package underneath api/.
☝️ input welcome!
There was a problem hiding this comment.
Maybe api/internal/stdcopy, or api/pkg/stdcopy if internalization is too strict
There was a problem hiding this comment.
The tricky bit is that it's used by the client; it's the implementation to decode these multiplexed streams, so it can't be internal.
There was a problem hiding this comment.
It's basically the implementation to both produce and handle this format;
Lines 8657 to 8700 in a1ee566
|
Derp; need to adjust the validation; |
The stdcopy package is used to produce and read multiplexed streams for "attach" and "logs". It is used both by the API server (to produce), and the client (to read / de-multiplex). Move it to the api package, so that it can be included in the api module. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
The stdcopy package is used to produce and read multiplexed streams for "attach" and "logs". It is used both by the API server (to produce), and the client (to read / de-multiplex).
Move it to the api package, so that it can be included in the api module.
- Human readable description for the release notes
- A picture of a cute animal (not mandatory but encouraged)