traefik/provider/rancher/config_root.go

13 lines
303 B
Go
Raw Normal View History

2018-03-26 13:32:04 +00:00
package rancher
import (
"github.com/containous/traefik/types"
)
func (p *Provider) buildConfiguration(containersInspected []rancherData) *types.Configuration {
if p.TemplateVersion == 1 {
return p.buildConfigurationV1(containersInspected)
}
return p.buildConfigurationV2(containersInspected)
}