github.com/reds/docker@v1.11.2-rc1/libcontainerd/remote.go (about)

     1  package libcontainerd
     2  
     3  // Remote on Linux defines the accesspoint to the containerd grpc API.
     4  // Remote on Windows is largely an unimplemented interface as there is
     5  // no remote containerd.
     6  type Remote interface {
     7  	// Client returns a new Client instance connected with given Backend.
     8  	Client(Backend) (Client, error)
     9  	// Cleanup stops containerd if it was started by libcontainerd.
    10  	// Note this is not used on Windows as there is no remote containerd.
    11  	Cleanup()
    12  }
    13  
    14  // RemoteOption allows to configure paramters of remotes.
    15  // This is unused on Windows.
    16  type RemoteOption interface {
    17  	Apply(Remote) error
    18  }