2ab94e11a2
* Moving Network Remote APIs out of experimental * --net can now accept user created networks using network drivers/plugins * Removed the experimental services concept and --default-network option * Neccessary backend changes to accomodate multiple networks per container * Integration Tests Signed-off-by: David Calavera <david.calavera@gmail.com> Signed-off-by: Madhu Venugopal <madhu@docker.com>
18 lines
542 B
Go
18 lines
542 B
Go
package router
|
|
|
|
import "github.com/docker/docker/api/server/httputils"
|
|
|
|
// Router defines an interface to specify a group of routes to add the the docker server.
|
|
type Router interface {
|
|
Routes() []Route
|
|
}
|
|
|
|
// Route defines an individual API route in the docker server.
|
|
type Route interface {
|
|
// Handler returns the raw function to create the http handler.
|
|
Handler() httputils.APIFunc
|
|
// Method returns the http method that the route responds to.
|
|
Method() string
|
|
// Path returns the subpath where the route responds to.
|
|
Path() string
|
|
}
|