traefik/provider/docker/config_root.go

13 lines
301 B
Go
Raw Normal View History

2018-03-23 12:30:03 +00:00
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)
}