mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
The go-connections package implementation is only a shallow wrapper around go-winio for named pipes; use the go-winio implementation directly. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
18 lines
481 B
Go
18 lines
481 B
Go
package client
|
|
|
|
import (
|
|
"context"
|
|
"net"
|
|
|
|
"github.com/Microsoft/go-winio"
|
|
)
|
|
|
|
// DefaultDockerHost defines OS-specific default host if the DOCKER_HOST
|
|
// (EnvOverrideHost) environment variable is unset or empty.
|
|
const DefaultDockerHost = "npipe:////./pipe/docker_engine"
|
|
|
|
// dialPipeContext connects to a Windows named pipe. It is not supported on non-Windows.
|
|
func dialPipeContext(ctx context.Context, addr string) (net.Conn, error) {
|
|
return winio.DialPipeContext(ctx, addr)
|
|
}
|