mirror of https://github.com/docker/docs.git
parent
cd243cfa34
commit
9196927ce2
|
@ -22,9 +22,10 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
strategies = make(map[string]PlacementStrategy)
|
strategies = map[string]PlacementStrategy{
|
||||||
strategies["binpacking"] = &BinPackingPlacementStrategy{}
|
"binpacking": &BinPackingPlacementStrategy{},
|
||||||
strategies["random"] = &RandomPlacementStrategy{}
|
"random": &RandomPlacementStrategy{},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func New(nameAndOpts string) (PlacementStrategy, error) {
|
func New(nameAndOpts string) (PlacementStrategy, error) {
|
||||||
|
|
Loading…
Reference in New Issue