traefik/provider/ecs/config_root.go

13 lines
278 B
Go
Raw Normal View History

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