mirror of
https://github.com/containous/traefik.git
synced 2024-12-23 17:34:13 +03:00
13 lines
278 B
Go
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)
|
|
}
|