1
0
mirror of https://github.com/containous/traefik.git synced 2024-12-24 21:34:39 +03:00
traefik/provider/ecs/config_root.go
2018-04-11 12:26:03 +02:00

13 lines
278 B
Go

package ecs
import (
"github.com/containous/traefik/types"
)
func (p *Provider) buildConfiguration(instances []ecsInstance) (*types.Configuration, error) {
if p.TemplateVersion == 1 {
return p.buildConfigurationV1(instances)
}
return p.buildConfigurationV2(instances)
}