|
@@ -3,20 +3,19 @@ package system // import "github.com/docker/docker/api/server/router/system"
|
|
import (
|
|
import (
|
|
"github.com/docker/docker/api/server/router"
|
|
"github.com/docker/docker/api/server/router"
|
|
"github.com/docker/docker/builder/fscache"
|
|
"github.com/docker/docker/builder/fscache"
|
|
- "github.com/docker/docker/daemon/cluster"
|
|
|
|
)
|
|
)
|
|
|
|
|
|
// systemRouter provides information about the Docker system overall.
|
|
// systemRouter provides information about the Docker system overall.
|
|
// It gathers information about host, daemon and container events.
|
|
// It gathers information about host, daemon and container events.
|
|
type systemRouter struct {
|
|
type systemRouter struct {
|
|
backend Backend
|
|
backend Backend
|
|
- cluster *cluster.Cluster
|
|
|
|
|
|
+ cluster ClusterBackend
|
|
routes []router.Route
|
|
routes []router.Route
|
|
builder *fscache.FSCache
|
|
builder *fscache.FSCache
|
|
}
|
|
}
|
|
|
|
|
|
// NewRouter initializes a new system router
|
|
// NewRouter initializes a new system router
|
|
-func NewRouter(b Backend, c *cluster.Cluster, fscache *fscache.FSCache) router.Router {
|
|
|
|
|
|
+func NewRouter(b Backend, c ClusterBackend, fscache *fscache.FSCache) router.Router {
|
|
r := &systemRouter{
|
|
r := &systemRouter{
|
|
backend: b,
|
|
backend: b,
|
|
cluster: c,
|
|
cluster: c,
|