2016-03-25 23:38:00 +00:00
|
|
|
package libcontainerd
|
|
|
|
|
|
|
|
import "github.com/docker/docker/pkg/locker"
|
|
|
|
|
|
|
|
type remote struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *remote) Client(b Backend) (Client, error) {
|
|
|
|
c := &client{
|
|
|
|
clientCommon: clientCommon{
|
|
|
|
backend: b,
|
|
|
|
containers: make(map[string]*container),
|
|
|
|
locker: locker.New(),
|
|
|
|
},
|
|
|
|
}
|
|
|
|
return c, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *remote) Cleanup() {
|
|
|
|
}
|
|
|
|
|
2016-06-02 18:10:55 +00:00
|
|
|
func (r *remote) UpdateOptions(opts ...RemoteOption) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-03-25 23:38:00 +00:00
|
|
|
// New creates a fresh instance of libcontainerd remote.
|
|
|
|
func New(_ string, _ ...RemoteOption) (Remote, error) {
|
|
|
|
return &remote{}, nil
|
|
|
|
}
|
2016-06-02 18:10:55 +00:00
|
|
|
|
|
|
|
// WithLiveRestore is a noop on solaris.
|
|
|
|
func WithLiveRestore(v bool) RemoteOption {
|
|
|
|
return nil
|
|
|
|
}
|