12 lines
301 B
Go
12 lines
301 B
Go
package docker
|
|
|
|
import (
|
|
"github.com/containous/traefik/types"
|
|
)
|
|
|
|
func (p *Provider) buildConfiguration(containersInspected []dockerData) *types.Configuration {
|
|
if p.TemplateVersion == 1 {
|
|
return p.buildConfigurationV1(containersInspected)
|
|
}
|
|
return p.buildConfigurationV2(containersInspected)
|
|
}
|