builtins.go 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package builtins
  2. import (
  3. "github.com/dotcloud/docker/engine"
  4. "github.com/dotcloud/docker/api"
  5. "github.com/dotcloud/docker/networkdriver/lxc"
  6. "github.com/dotcloud/docker/server"
  7. )
  8. func Register(eng *engine.Engine) {
  9. daemon(eng)
  10. remote(eng)
  11. }
  12. // remote: a RESTful api for cross-docker communication
  13. func remote(eng *engine.Engine) {
  14. eng.Register("serveapi", api.ServeApi)
  15. }
  16. // daemon: a default execution and storage backend for Docker on Linux,
  17. // with the following underlying components:
  18. //
  19. // * Pluggable storage drivers including aufs, vfs, lvm and btrfs.
  20. // * Pluggable execution drivers including lxc and chroot.
  21. //
  22. // In practice `daemon` still includes most core Docker components, including:
  23. //
  24. // * The reference registry client implementation
  25. // * Image management
  26. // * The build facility
  27. // * Logging
  28. //
  29. // These components should be broken off into plugins of their own.
  30. //
  31. func daemon(eng *engine.Engine) {
  32. eng.Register("initserver", server.InitServer)
  33. eng.Register("init_networkdriver", lxc.InitDriver)
  34. }