remote_windows.go 801 B

123456789101112131415161718192021222324252627282930313233343536
  1. package libcontainerd
  2. import "github.com/docker/docker/pkg/locker"
  3. type remote struct {
  4. }
  5. func (r *remote) Client(b Backend) (Client, error) {
  6. c := &client{
  7. clientCommon: clientCommon{
  8. backend: b,
  9. containers: make(map[string]*container),
  10. locker: locker.New(),
  11. },
  12. }
  13. return c, nil
  14. }
  15. // Cleanup is a no-op on Windows. It is here to implement the interface.
  16. func (r *remote) Cleanup() {
  17. }
  18. func (r *remote) UpdateOptions(opts ...RemoteOption) error {
  19. return nil
  20. }
  21. // New creates a fresh instance of libcontainerd remote. On Windows,
  22. // this is not used as there is no remote containerd process.
  23. func New(_ string, _ ...RemoteOption) (Remote, error) {
  24. return &remote{}, nil
  25. }
  26. // WithLiveRestore is a noop on windows.
  27. func WithLiveRestore(v bool) RemoteOption {
  28. return nil
  29. }