2016-03-18 18:53:27 +00:00
|
|
|
package libcontainerd
|
|
|
|
|
2016-03-29 16:43:12 +00:00
|
|
|
import "github.com/docker/docker/pkg/locker"
|
2016-03-18 18:53:27 +00:00
|
|
|
|
|
|
|
type remote struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *remote) Client(b Backend) (Client, error) {
|
|
|
|
c := &client{
|
|
|
|
clientCommon: clientCommon{
|
2016-03-29 16:43:12 +00:00
|
|
|
backend: b,
|
|
|
|
containers: make(map[string]*container),
|
|
|
|
locker: locker.New(),
|
2016-03-18 18:53:27 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
return c, nil
|
|
|
|
}
|
|
|
|
|
2016-03-19 03:29:27 +00:00
|
|
|
// Cleanup is a no-op on Windows. It is here to implement the interface.
|
2016-03-18 18:53:27 +00:00
|
|
|
func (r *remote) Cleanup() {
|
|
|
|
}
|
|
|
|
|
2016-06-02 18:10:55 +00:00
|
|
|
func (r *remote) UpdateOptions(opts ...RemoteOption) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-03-19 03:29:27 +00:00
|
|
|
// New creates a fresh instance of libcontainerd remote. On Windows,
|
|
|
|
// this is not used as there is no remote containerd process.
|
2016-03-18 18:53:27 +00:00
|
|
|
func New(_ string, _ ...RemoteOption) (Remote, error) {
|
|
|
|
return &remote{}, nil
|
|
|
|
}
|
2016-06-02 18:10:55 +00:00
|
|
|
|
|
|
|
// WithLiveRestore is a noop on windows.
|
|
|
|
func WithLiveRestore(v bool) RemoteOption {
|
|
|
|
return nil
|
|
|
|
}
|