12345678910111213141516171819202122232425262728293031323334 |
- 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() {
- }
- func (r *remote) UpdateOptions(opts ...RemoteOption) error {
- return nil
- }
- // New creates a fresh instance of libcontainerd remote.
- func New(_ string, _ ...RemoteOption) (Remote, error) {
- return &remote{}, nil
- }
- // WithLiveRestore is a noop on solaris.
- func WithLiveRestore(v bool) RemoteOption {
- return nil
- }
|