12 lines
303 B
Go
12 lines
303 B
Go
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)
|
|
}
|