package rancher import "github.com/rancher/go-rancher/client" // GetActiveOrchestration get the name of the active orchestration for a environment func GetActiveOrchestration(project *client.Project) string { orch := "cattle" switch { case project.Swarm: orch = "swarm" case project.Mesos: orch = "mesos" case project.Kubernetes: orch = "kubernetes" } return orch }