mirror of
https://github.com/traefik/traefik.git
synced 2025-08-13 01:57:11 +02:00
13 lines
301 B
Go
13 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)
|
|
}
|