1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00
Files
docs/backends/backends.go
Ben Firshman aef71e2d82 Add basic apiserver backend
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-06-06 16:33:25 -07:00

23 lines
594 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("apiserver", ApiServer())
return beam.Obj(backends)
}