Files
kata-containers/vendor/github.com/mdlayher/vsock/vsock_others.go
Jose Carlos Venegas Munoz dad59fe092 vendor: Move virtcontainers to project's root directory
Lets have a global vendor base on virtcontainers.

Signed-off-by: Julio Montes <julio.montes@intel.com>
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
2018-03-14 11:42:02 -06:00

25 lines
445 B
Go

//+build !linux
package vsock
import (
"fmt"
"net"
"runtime"
)
var (
// errUnimplemented is returned by all functions on platforms that
// cannot make use of VM sockets.
errUnimplemented = fmt.Errorf("vsock: not implemented on %s/%s",
runtime.GOOS, runtime.GOARCH)
)
func listenStream(_ uint32) (net.Listener, error) {
return nil, errUnimplemented
}
func dialStream(_, _ uint32) (net.Conn, error) {
return nil, errUnimplemented
}