2014-04-21 17:31:08 -07:00
|
|
|
// DEPRECATION NOTICE. PLEASE DO NOT ADD ANYTHING TO THIS FILE.
|
|
|
|
//
|
|
|
|
// server/server.go is deprecated. We are working on breaking it up into smaller, cleaner
|
|
|
|
// pieces which will be easier to find and test. This will help make the code less
|
|
|
|
// redundant and more readable.
|
|
|
|
//
|
|
|
|
// Contributors, please don't add anything to server/server.go, unless it has the explicit
|
|
|
|
// goal of helping the deprecation effort.
|
|
|
|
//
|
|
|
|
// Maintainers, please refuse patches which add code to server/server.go.
|
|
|
|
//
|
|
|
|
// Instead try the following files:
|
|
|
|
// * For code related to local image management, try graph/
|
|
|
|
// * For code related to image downloading, uploading, remote search etc, try registry/
|
|
|
|
// * For code related to the docker daemon, try daemon/
|
|
|
|
// * For small utilities which could potentially be useful outside of Docker, try pkg/
|
|
|
|
// * For miscalleneous "util" functions which are docker-specific, try encapsulating them
|
|
|
|
// inside one of the subsystems above. If you really think they should be more widely
|
|
|
|
// available, are you sure you can't remove the docker dependencies and move them to
|
|
|
|
// pkg? In last resort, you can add them to utils/ (but please try not to).
|
|
|
|
|
2014-03-11 10:40:06 -07:00
|
|
|
package server
|
2013-05-06 11:31:22 +02:00
|
|
|
|
|
|
|
import (
|
2013-06-17 16:10:00 -07:00
|
|
|
"sync"
|
2014-04-28 19:03:31 +00:00
|
|
|
|
2014-07-24 22:19:50 +00:00
|
|
|
"github.com/docker/docker/daemon"
|
|
|
|
"github.com/docker/docker/engine"
|
2013-05-06 11:31:22 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type Server struct {
|
2013-11-25 13:58:17 -05:00
|
|
|
sync.RWMutex
|
2014-08-08 06:58:58 +00:00
|
|
|
daemon *daemon.Daemon
|
|
|
|
Eng *engine.Engine
|
|
|
|
tasks sync.WaitGroup
|
2013-05-06 11:31:22 +02:00
|
|
|
}
|