mirror of https://github.com/docker/docs.git
23 lines
600 B
Go
23 lines
600 B
Go
package backends
|
|
|
|
import (
|
|
"github.com/docker/libswarm/beam"
|
|
)
|
|
|
|
// New returns a new engine, with all backends
|
|
// registered but not activated.
|
|
// To activate a backend, call a job on the resulting
|
|
// engine, named after the desired backend.
|
|
//
|
|
// Example: `New().Job("debug").Run()`
|
|
func New() *beam.Object {
|
|
backends := beam.NewTree()
|
|
backends.Bind("simulator", Simulator())
|
|
backends.Bind("debug", Debug())
|
|
backends.Bind("fakeclient", FakeClient())
|
|
backends.Bind("forward", Forward())
|
|
backends.Bind("exec", Exec())
|
|
backends.Bind("dockerserver", DockerServer())
|
|
return beam.Obj(backends)
|
|
}
|