sandbox_externalkey_windows.go 1.4 KB

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