github.com/docker/engine@v22.0.0-20211208180946-d456264580cf+incompatible/libnetwork/sandbox_externalkey_windows.go (about)

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