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