github.com/recobe182/terraform@v0.8.5-0.20170117231232-49ab22a935b7/builtin/providers/rancher/util.go (about) 1 package rancher 2 3 import "github.com/rancher/go-rancher/client" 4 5 // GetActiveOrchestration get the name of the active orchestration for a environment 6 func GetActiveOrchestration(project *client.Project) string { 7 orch := "cattle" 8 9 switch { 10 case project.Swarm: 11 orch = "swarm" 12 case project.Mesos: 13 orch = "mesos" 14 case project.Kubernetes: 15 orch = "kubernetes" 16 } 17 18 return orch 19 }