traefik/provider/ecs/config_root.go

13 lines
286 B
Go
Raw Normal View History

2018-03-28 00:13:48 +00:00
package ecs
import (
"github.com/containous/traefik/types"
)
func (p *Provider) buildConfiguration(services map[string][]ecsInstance) (*types.Configuration, error) {
if p.TemplateVersion == 1 {
return p.buildConfigurationV1(services)
}
return p.buildConfigurationV2(services)
}