mirror of
https://github.com/traefik/traefik.git
synced 2025-05-06 07:53:01 +00: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)
|
|
}
|