mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
This was added in 20d594fb79, but was
written before the API module was added. Now that the API is a separate
module, the check will no longer flag packages importing the API.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
34 lines
1.1 KiB
Go
34 lines
1.1 KiB
Go
package stdcopy // Deprecated: use [github.com/moby/moby/api/stdcopy] instead.
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/moby/moby/api/stdcopy"
|
|
)
|
|
|
|
// StdType is the type of standard stream
|
|
// a writer can multiplex to.
|
|
//
|
|
// Deprecated: use [stdcopy.StdType]. This alias will be removed in the next release.
|
|
type StdType = stdcopy.StdType
|
|
|
|
const (
|
|
Stdin = stdcopy.Stdin // Deprecated: use [stdcopy.Stderr]. This alias will be removed in the next release.
|
|
Stdout = stdcopy.Stdout // Deprecated: use [stdcopy.Stdout]. This alias will be removed in the next release.
|
|
Stderr = stdcopy.Stderr // Deprecated: use [stdcopy.Stderr]. This alias will be removed in the next release.
|
|
)
|
|
|
|
// NewStdWriter instantiates a new Writer.
|
|
//
|
|
// Deprecated: use [stdcopy.NewStdWriter]. This alias will be removed in the next release.
|
|
func NewStdWriter(w io.Writer, t stdcopy.StdType) io.Writer {
|
|
return stdcopy.NewStdWriter(w, t)
|
|
}
|
|
|
|
// StdCopy is a modified version of io.Copy.
|
|
//
|
|
// Deprecated: use [stdcopy.StdCopy]. This alias will be removed in the next release.
|
|
func StdCopy(dstout, dsterr io.Writer, src io.Reader) (written int64, _ error) {
|
|
return stdcopy.StdCopy(dstout, dsterr, src)
|
|
}
|