remote.go 722 B

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