github.com/olljanat/moby@v1.13.1/libcontainerd/remote_windows.go (about)

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