github.com/olljanat/moby@v1.13.1/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  	// UpdateOptions allows various remote options to be updated at runtime.
    13  	UpdateOptions(...RemoteOption) error
    14  }
    15  
    16  // RemoteOption allows to configure parameters of remotes.
    17  // This is unused on Windows.
    18  type RemoteOption interface {
    19  	Apply(Remote) error
    20  }