github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/libnetwork/sandbox_externalkey_windows.go (about)

     1  // +build windows
     2  
     3  package libnetwork
     4  
     5  import (
     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
    16  func processSetKeyReexec() {
    17  }
    18  
    19  // SetExternalKey provides a convenient way to set an External key to a sandbox
    20  func SetExternalKey(controllerID string, containerID string, key string) error {
    21  	return types.NotImplementedErrorf("SetExternalKey isn't supported on non linux systems")
    22  }
    23  
    24  func sendKey(c net.Conn, data setKeyData) error {
    25  	return types.NotImplementedErrorf("sendKey isn't supported on non linux systems")
    26  }
    27  
    28  func 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
    33  func (c *controller) startExternalKeyListener() error {
    34  	return nil
    35  }
    36  
    37  func (c *controller) acceptClientConnections(sock string, l net.Listener) {
    38  }
    39  
    40  func (c *controller) processExternalKey(conn net.Conn) error {
    41  	return types.NotImplementedErrorf("processExternalKey isn't supported on non linux systems")
    42  }
    43  
    44  func (c *controller) stopExternalKeyListener() {
    45  }