remote_solaris.go 654 B

12345678910111213141516171819202122232425262728293031323334
  1. package libcontainerd
  2. import "github.com/docker/docker/pkg/locker"
  3. type remote struct {
  4. }
  5. func (r *remote) Client(b Backend) (Client, error) {
  6. c := &client{
  7. clientCommon: clientCommon{
  8. backend: b,
  9. containers: make(map[string]*container),
  10. locker: locker.New(),
  11. },
  12. }
  13. return c, nil
  14. }
  15. func (r *remote) Cleanup() {
  16. }
  17. func (r *remote) UpdateOptions(opts ...RemoteOption) error {
  18. return nil
  19. }
  20. // New creates a fresh instance of libcontainerd remote.
  21. func New(_ string, _ ...RemoteOption) (Remote, error) {
  22. return &remote{}, nil
  23. }
  24. // WithLiveRestore is a noop on solaris.
  25. func WithLiveRestore(v bool) RemoteOption {
  26. return nil
  27. }