sandbox_externalkey_solaris.go 1.3 KB

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