1// +build windows 2 3package libnetwork 4 5import ( 6 "io" 7 "net" 8 9 "github.com/docker/libnetwork/types" 10) 11 12// processSetKeyReexec is a private function that must be called only on an reexec path 13// It expects 3 args { [0] = "libnetwork-setkey", [1] = <container-id>, [2] = <controller-id> } 14// It also expects configs.HookState as a json string in <stdin> 15// Refer to https://github.com/opencontainers/runc/pull/160/ for more information 16func processSetKeyReexec() { 17} 18 19// SetExternalKey provides a convenient way to set an External key to a sandbox 20func SetExternalKey(controllerID string, containerID string, key string) error { 21 return types.NotImplementedErrorf("SetExternalKey isn't supported on non linux systems") 22} 23 24func sendKey(c net.Conn, data setKeyData) error { 25 return types.NotImplementedErrorf("sendKey isn't supported on non linux systems") 26} 27 28func processReturn(r io.Reader) error { 29 return types.NotImplementedErrorf("processReturn isn't supported on non linux systems") 30} 31 32// no-op on non linux systems 33func (c *controller) startExternalKeyListener() error { 34 return nil 35} 36 37func (c *controller) acceptClientConnections(sock string, l net.Listener) { 38} 39 40func (c *controller) processExternalKey(conn net.Conn) error { 41 return types.NotImplementedErrorf("processExternalKey isn't supported on non linux systems") 42} 43 44func (c *controller) stopExternalKeyListener() { 45} 46