94d70d83 |
package libcontainerd
|
a7851e25 |
import "github.com/docker/docker/pkg/locker" |
94d70d83 |
type remote struct {
}
func (r *remote) Client(b Backend) (Client, error) {
c := &client{
clientCommon: clientCommon{ |
a7851e25 |
backend: b,
containers: make(map[string]*container),
locker: locker.New(), |
94d70d83 |
},
}
return c, nil
}
|
e331df5a |
// Cleanup is a no-op on Windows. It is here to implement the interface. |
94d70d83 |
func (r *remote) Cleanup() {
}
|
d705dab1 |
func (r *remote) UpdateOptions(opts ...RemoteOption) error {
return nil
}
|
e331df5a |
// New creates a fresh instance of libcontainerd remote. On Windows,
// this is not used as there is no remote containerd process. |
94d70d83 |
func New(_ string, _ ...RemoteOption) (Remote, error) {
return &remote{}, nil
} |
d705dab1 |
// WithLiveRestore is a noop on windows.
func WithLiveRestore(v bool) RemoteOption {
return nil
} |