traefik/provider/ecs/config_root.go

13 lines
278 B
Go
Raw Normal View History

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