func Get(desire string) executor.Executor { var executor executor.Executor switch desire { case "null": executor = &null.Executor{} case "nsinit": executor = &nsinit.Executor{} case "chroot": executor = &chroot.Executor{} default: panic(def.ValidationError.New("No such executor %s", desire)) } // Set the base path to operate from executor.Configure(filepath.Join(def.Base(), "executor", desire)) return executor }