go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/providers/os/resources/os.lr.go (about) 1 // Copyright (c) Mondoo, Inc. 2 // SPDX-License-Identifier: BUSL-1.1 3 4 // Code generated by resources. DO NOT EDIT. 5 6 package resources 7 8 import ( 9 "errors" 10 "time" 11 12 "go.mondoo.com/cnquery/llx" 13 "go.mondoo.com/cnquery/providers-sdk/v1/plugin" 14 "go.mondoo.com/cnquery/types" 15 ) 16 17 var resourceFactories map[string]plugin.ResourceFactory 18 19 func init() { 20 resourceFactories = map[string]plugin.ResourceFactory { 21 "asset": { 22 // to override args, implement: initAsset(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 23 Create: createAsset, 24 }, 25 "asset.eol": { 26 Init: initAssetEol, 27 Create: createAssetEol, 28 }, 29 "mondoo.eol": { 30 // to override args, implement: initMondooEol(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 31 Create: createMondooEol, 32 }, 33 "platform.eol": { 34 Init: initPlatformEol, 35 Create: createPlatformEol, 36 }, 37 "platform": { 38 // to override args, implement: initPlatform(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 39 Create: createPlatform, 40 }, 41 "platform.advisories": { 42 // to override args, implement: initPlatformAdvisories(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 43 Create: createPlatformAdvisories, 44 }, 45 "platform.cves": { 46 // to override args, implement: initPlatformCves(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 47 Create: createPlatformCves, 48 }, 49 "audit.cvss": { 50 // to override args, implement: initAuditCvss(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 51 Create: createAuditCvss, 52 }, 53 "audit.advisory": { 54 // to override args, implement: initAuditAdvisory(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 55 Create: createAuditAdvisory, 56 }, 57 "audit.cve": { 58 // to override args, implement: initAuditCve(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 59 Create: createAuditCve, 60 }, 61 "machine": { 62 // to override args, implement: initMachine(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 63 Create: createMachine, 64 }, 65 "machine.bios": { 66 Init: initMachineBios, 67 Create: createMachineBios, 68 }, 69 "machine.system": { 70 Init: initMachineSystem, 71 Create: createMachineSystem, 72 }, 73 "machine.baseboard": { 74 Init: initMachineBaseboard, 75 Create: createMachineBaseboard, 76 }, 77 "machine.chassis": { 78 Init: initMachineChassis, 79 Create: createMachineChassis, 80 }, 81 "os": { 82 // to override args, implement: initOs(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 83 Create: createOs, 84 }, 85 "os.update": { 86 // to override args, implement: initOsUpdate(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 87 Create: createOsUpdate, 88 }, 89 "os.base": { 90 // to override args, implement: initOsBase(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 91 Create: createOsBase, 92 }, 93 "os.unix": { 94 // to override args, implement: initOsUnix(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 95 Create: createOsUnix, 96 }, 97 "os.linux": { 98 // to override args, implement: initOsLinux(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 99 Create: createOsLinux, 100 }, 101 "os.rootCertificates": { 102 Init: initOsRootCertificates, 103 Create: createOsRootCertificates, 104 }, 105 "command": { 106 // to override args, implement: initCommand(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 107 Create: createCommand, 108 }, 109 "powershell": { 110 // to override args, implement: initPowershell(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 111 Create: createPowershell, 112 }, 113 "file": { 114 // to override args, implement: initFile(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 115 Create: createFile, 116 }, 117 "file.permissions": { 118 // to override args, implement: initFilePermissions(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 119 Create: createFilePermissions, 120 }, 121 "files": { 122 // to override args, implement: initFiles(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 123 Create: createFiles, 124 }, 125 "files.find": { 126 Init: initFilesFind, 127 Create: createFilesFind, 128 }, 129 "parse.ini": { 130 Init: initParseIni, 131 Create: createParseIni, 132 }, 133 "parse.json": { 134 Init: initParseJson, 135 Create: createParseJson, 136 }, 137 "parse.plist": { 138 Init: initParsePlist, 139 Create: createParsePlist, 140 }, 141 "parse.yaml": { 142 Init: initParseYaml, 143 Create: createParseYaml, 144 }, 145 "parse.certificates": { 146 Init: initParseCertificates, 147 Create: createParseCertificates, 148 }, 149 "parse.openpgp": { 150 Init: initParseOpenpgp, 151 Create: createParseOpenpgp, 152 }, 153 "user": { 154 Init: initUser, 155 Create: createUser, 156 }, 157 "privatekey": { 158 Init: initPrivatekey, 159 Create: createPrivatekey, 160 }, 161 "users": { 162 // to override args, implement: initUsers(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 163 Create: createUsers, 164 }, 165 "authorizedkeys": { 166 Init: initAuthorizedkeys, 167 Create: createAuthorizedkeys, 168 }, 169 "authorizedkeys.entry": { 170 // to override args, implement: initAuthorizedkeysEntry(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 171 Create: createAuthorizedkeysEntry, 172 }, 173 "group": { 174 // to override args, implement: initGroup(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 175 Create: createGroup, 176 }, 177 "groups": { 178 // to override args, implement: initGroups(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 179 Create: createGroups, 180 }, 181 "package": { 182 Init: initPackage, 183 Create: createPackage, 184 }, 185 "packages": { 186 // to override args, implement: initPackages(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 187 Create: createPackages, 188 }, 189 "pam.conf": { 190 Init: initPamConf, 191 Create: createPamConf, 192 }, 193 "pam.conf.serviceEntry": { 194 // to override args, implement: initPamConfServiceEntry(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 195 Create: createPamConfServiceEntry, 196 }, 197 "sshd": { 198 // to override args, implement: initSshd(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 199 Create: createSshd, 200 }, 201 "sshd.config": { 202 Init: initSshdConfig, 203 Create: createSshdConfig, 204 }, 205 "service": { 206 Init: initService, 207 Create: createService, 208 }, 209 "services": { 210 // to override args, implement: initServices(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 211 Create: createServices, 212 }, 213 "kernel": { 214 Init: initKernel, 215 Create: createKernel, 216 }, 217 "kernel.module": { 218 Init: initKernelModule, 219 Create: createKernelModule, 220 }, 221 "docker": { 222 // to override args, implement: initDocker(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 223 Create: createDocker, 224 }, 225 "docker.image": { 226 // to override args, implement: initDockerImage(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 227 Create: createDockerImage, 228 }, 229 "docker.container": { 230 // to override args, implement: initDockerContainer(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 231 Create: createDockerContainer, 232 }, 233 "iptables": { 234 // to override args, implement: initIptables(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 235 Create: createIptables, 236 }, 237 "ip6tables": { 238 // to override args, implement: initIp6tables(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 239 Create: createIp6tables, 240 }, 241 "iptables.entry": { 242 // to override args, implement: initIptablesEntry(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 243 Create: createIptablesEntry, 244 }, 245 "process": { 246 Init: initProcess, 247 Create: createProcess, 248 }, 249 "processes": { 250 // to override args, implement: initProcesses(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 251 Create: createProcesses, 252 }, 253 "port": { 254 // to override args, implement: initPort(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 255 Create: createPort, 256 }, 257 "ports": { 258 // to override args, implement: initPorts(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 259 Create: createPorts, 260 }, 261 "auditpol": { 262 // to override args, implement: initAuditpol(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 263 Create: createAuditpol, 264 }, 265 "auditpol.entry": { 266 // to override args, implement: initAuditpolEntry(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 267 Create: createAuditpolEntry, 268 }, 269 "secpol": { 270 // to override args, implement: initSecpol(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 271 Create: createSecpol, 272 }, 273 "ntp.conf": { 274 Init: initNtpConf, 275 Create: createNtpConf, 276 }, 277 "rsyslog.conf": { 278 // to override args, implement: initRsyslogConf(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 279 Create: createRsyslogConf, 280 }, 281 "logindefs": { 282 Init: initLogindefs, 283 Create: createLogindefs, 284 }, 285 "lsblk": { 286 // to override args, implement: initLsblk(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 287 Create: createLsblk, 288 }, 289 "lsblk.entry": { 290 // to override args, implement: initLsblkEntry(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 291 Create: createLsblkEntry, 292 }, 293 "mount": { 294 // to override args, implement: initMount(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 295 Create: createMount, 296 }, 297 "mount.point": { 298 Init: initMountPoint, 299 Create: createMountPoint, 300 }, 301 "shadow": { 302 // to override args, implement: initShadow(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 303 Create: createShadow, 304 }, 305 "shadow.entry": { 306 // to override args, implement: initShadowEntry(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 307 Create: createShadowEntry, 308 }, 309 "yum": { 310 // to override args, implement: initYum(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 311 Create: createYum, 312 }, 313 "yum.repo": { 314 Init: initYumRepo, 315 Create: createYumRepo, 316 }, 317 "registrykey": { 318 // to override args, implement: initRegistrykey(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 319 Create: createRegistrykey, 320 }, 321 "registrykey.property": { 322 Init: initRegistrykeyProperty, 323 Create: createRegistrykeyProperty, 324 }, 325 "container.image": { 326 Init: initContainerImage, 327 Create: createContainerImage, 328 }, 329 "container.repository": { 330 // to override args, implement: initContainerRepository(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 331 Create: createContainerRepository, 332 }, 333 "kubelet": { 334 Init: initKubelet, 335 Create: createKubelet, 336 }, 337 "python": { 338 Init: initPython, 339 Create: createPython, 340 }, 341 "python.package": { 342 Init: initPythonPackage, 343 Create: createPythonPackage, 344 }, 345 "macos": { 346 // to override args, implement: initMacos(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 347 Create: createMacos, 348 }, 349 "macos.alf": { 350 Init: initMacosAlf, 351 Create: createMacosAlf, 352 }, 353 "macos.timemachine": { 354 // to override args, implement: initMacosTimemachine(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 355 Create: createMacosTimemachine, 356 }, 357 "macos.systemsetup": { 358 // to override args, implement: initMacosSystemsetup(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 359 Create: createMacosSystemsetup, 360 }, 361 "windows": { 362 // to override args, implement: initWindows(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 363 Create: createWindows, 364 }, 365 "windows.hotfix": { 366 Init: initWindowsHotfix, 367 Create: createWindowsHotfix, 368 }, 369 "windows.feature": { 370 Init: initWindowsFeature, 371 Create: createWindowsFeature, 372 }, 373 "windows.firewall": { 374 // to override args, implement: initWindowsFirewall(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 375 Create: createWindowsFirewall, 376 }, 377 "windows.firewall.profile": { 378 // to override args, implement: initWindowsFirewallProfile(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 379 Create: createWindowsFirewallProfile, 380 }, 381 "windows.firewall.rule": { 382 // to override args, implement: initWindowsFirewallRule(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 383 Create: createWindowsFirewallRule, 384 }, 385 "windows.bitlocker": { 386 // to override args, implement: initWindowsBitlocker(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 387 Create: createWindowsBitlocker, 388 }, 389 "windows.bitlocker.volume": { 390 // to override args, implement: initWindowsBitlockerVolume(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 391 Create: createWindowsBitlockerVolume, 392 }, 393 "windows.security": { 394 // to override args, implement: initWindowsSecurity(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 395 Create: createWindowsSecurity, 396 }, 397 "windows.security.product": { 398 // to override args, implement: initWindowsSecurityProduct(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) 399 Create: createWindowsSecurityProduct, 400 }, 401 "windows.security.health": { 402 Init: initWindowsSecurityHealth, 403 Create: createWindowsSecurityHealth, 404 }, 405 } 406 } 407 408 // NewResource is used by the runtime of this plugin to create new resources. 409 // Its arguments may be provided by users. This function is generally not 410 // used by initializing resources from recordings or from lists. 411 func NewResource(runtime *plugin.Runtime, name string, args map[string]*llx.RawData) (plugin.Resource, error) { 412 f, ok := resourceFactories[name] 413 if !ok { 414 return nil, errors.New("cannot find resource " + name + " in this provider") 415 } 416 417 if f.Init != nil { 418 cargs, res, err := f.Init(runtime, args) 419 if err != nil { 420 return res, err 421 } 422 423 if res != nil { 424 id := name+"\x00"+res.MqlID() 425 if x, ok := runtime.Resources.Get(id); ok { 426 return x, nil 427 } 428 runtime.Resources.Set(id, res) 429 return res, nil 430 } 431 432 args = cargs 433 } 434 435 res, err := f.Create(runtime, args) 436 if err != nil { 437 return nil, err 438 } 439 440 id := name+"\x00"+res.MqlID() 441 if x, ok := runtime.Resources.Get(id); ok { 442 return x, nil 443 } 444 445 runtime.Resources.Set(id, res) 446 return res, nil 447 } 448 449 // CreateResource is used by the runtime of this plugin to create resources. 450 // Its arguments must be complete and pre-processed. This method is used 451 // for initializing resources from recordings or from lists. 452 func CreateResource(runtime *plugin.Runtime, name string, args map[string]*llx.RawData) (plugin.Resource, error) { 453 f, ok := resourceFactories[name] 454 if !ok { 455 return nil, errors.New("cannot find resource " + name + " in this provider") 456 } 457 458 res, err := f.Create(runtime, args) 459 if err != nil { 460 return nil, err 461 } 462 463 id := name+"\x00"+res.MqlID() 464 if x, ok := runtime.Resources.Get(id); ok { 465 return x, nil 466 } 467 468 runtime.Resources.Set(id, res) 469 return res, nil 470 } 471 472 var getDataFields = map[string]func(r plugin.Resource) *plugin.DataRes{ 473 "asset.vulnerabilityReport": func(r plugin.Resource) *plugin.DataRes { 474 return (r.(*mqlAsset).GetVulnerabilityReport()).ToDataRes(types.Dict) 475 }, 476 "asset.eol.docsUrl": func(r plugin.Resource) *plugin.DataRes { 477 return (r.(*mqlAssetEol).GetDocsUrl()).ToDataRes(types.String) 478 }, 479 "asset.eol.productUrl": func(r plugin.Resource) *plugin.DataRes { 480 return (r.(*mqlAssetEol).GetProductUrl()).ToDataRes(types.String) 481 }, 482 "asset.eol.date": func(r plugin.Resource) *plugin.DataRes { 483 return (r.(*mqlAssetEol).GetDate()).ToDataRes(types.Time) 484 }, 485 "mondoo.eol.product": func(r plugin.Resource) *plugin.DataRes { 486 return (r.(*mqlMondooEol).GetProduct()).ToDataRes(types.String) 487 }, 488 "mondoo.eol.version": func(r plugin.Resource) *plugin.DataRes { 489 return (r.(*mqlMondooEol).GetVersion()).ToDataRes(types.String) 490 }, 491 "mondoo.eol.date": func(r plugin.Resource) *plugin.DataRes { 492 return (r.(*mqlMondooEol).GetDate()).ToDataRes(types.Time) 493 }, 494 "platform.eol.docsUrl": func(r plugin.Resource) *plugin.DataRes { 495 return (r.(*mqlPlatformEol).GetDocsUrl()).ToDataRes(types.String) 496 }, 497 "platform.eol.productUrl": func(r plugin.Resource) *plugin.DataRes { 498 return (r.(*mqlPlatformEol).GetProductUrl()).ToDataRes(types.String) 499 }, 500 "platform.eol.date": func(r plugin.Resource) *plugin.DataRes { 501 return (r.(*mqlPlatformEol).GetDate()).ToDataRes(types.Time) 502 }, 503 "platform.vulnerabilityReport": func(r plugin.Resource) *plugin.DataRes { 504 return (r.(*mqlPlatform).GetVulnerabilityReport()).ToDataRes(types.Dict) 505 }, 506 "platform.advisories.cvss": func(r plugin.Resource) *plugin.DataRes { 507 return (r.(*mqlPlatformAdvisories).GetCvss()).ToDataRes(types.Resource("audit.cvss")) 508 }, 509 "platform.advisories.stats": func(r plugin.Resource) *plugin.DataRes { 510 return (r.(*mqlPlatformAdvisories).GetStats()).ToDataRes(types.Dict) 511 }, 512 "platform.advisories.list": func(r plugin.Resource) *plugin.DataRes { 513 return (r.(*mqlPlatformAdvisories).GetList()).ToDataRes(types.Array(types.Resource("audit.advisory"))) 514 }, 515 "platform.cves.cvss": func(r plugin.Resource) *plugin.DataRes { 516 return (r.(*mqlPlatformCves).GetCvss()).ToDataRes(types.Resource("audit.cvss")) 517 }, 518 "platform.cves.stats": func(r plugin.Resource) *plugin.DataRes { 519 return (r.(*mqlPlatformCves).GetStats()).ToDataRes(types.Dict) 520 }, 521 "platform.cves.list": func(r plugin.Resource) *plugin.DataRes { 522 return (r.(*mqlPlatformCves).GetList()).ToDataRes(types.Array(types.Resource("audit.cve"))) 523 }, 524 "audit.cvss.score": func(r plugin.Resource) *plugin.DataRes { 525 return (r.(*mqlAuditCvss).GetScore()).ToDataRes(types.Float) 526 }, 527 "audit.cvss.vector": func(r plugin.Resource) *plugin.DataRes { 528 return (r.(*mqlAuditCvss).GetVector()).ToDataRes(types.String) 529 }, 530 "audit.advisory.id": func(r plugin.Resource) *plugin.DataRes { 531 return (r.(*mqlAuditAdvisory).GetId()).ToDataRes(types.String) 532 }, 533 "audit.advisory.mrn": func(r plugin.Resource) *plugin.DataRes { 534 return (r.(*mqlAuditAdvisory).GetMrn()).ToDataRes(types.String) 535 }, 536 "audit.advisory.title": func(r plugin.Resource) *plugin.DataRes { 537 return (r.(*mqlAuditAdvisory).GetTitle()).ToDataRes(types.String) 538 }, 539 "audit.advisory.description": func(r plugin.Resource) *plugin.DataRes { 540 return (r.(*mqlAuditAdvisory).GetDescription()).ToDataRes(types.String) 541 }, 542 "audit.advisory.published": func(r plugin.Resource) *plugin.DataRes { 543 return (r.(*mqlAuditAdvisory).GetPublished()).ToDataRes(types.Time) 544 }, 545 "audit.advisory.modified": func(r plugin.Resource) *plugin.DataRes { 546 return (r.(*mqlAuditAdvisory).GetModified()).ToDataRes(types.Time) 547 }, 548 "audit.advisory.worstScore": func(r plugin.Resource) *plugin.DataRes { 549 return (r.(*mqlAuditAdvisory).GetWorstScore()).ToDataRes(types.Resource("audit.cvss")) 550 }, 551 "audit.cve.id": func(r plugin.Resource) *plugin.DataRes { 552 return (r.(*mqlAuditCve).GetId()).ToDataRes(types.String) 553 }, 554 "audit.cve.mrn": func(r plugin.Resource) *plugin.DataRes { 555 return (r.(*mqlAuditCve).GetMrn()).ToDataRes(types.String) 556 }, 557 "audit.cve.state": func(r plugin.Resource) *plugin.DataRes { 558 return (r.(*mqlAuditCve).GetState()).ToDataRes(types.String) 559 }, 560 "audit.cve.summary": func(r plugin.Resource) *plugin.DataRes { 561 return (r.(*mqlAuditCve).GetSummary()).ToDataRes(types.String) 562 }, 563 "audit.cve.unscored": func(r plugin.Resource) *plugin.DataRes { 564 return (r.(*mqlAuditCve).GetUnscored()).ToDataRes(types.Bool) 565 }, 566 "audit.cve.published": func(r plugin.Resource) *plugin.DataRes { 567 return (r.(*mqlAuditCve).GetPublished()).ToDataRes(types.Time) 568 }, 569 "audit.cve.modified": func(r plugin.Resource) *plugin.DataRes { 570 return (r.(*mqlAuditCve).GetModified()).ToDataRes(types.Time) 571 }, 572 "audit.cve.worstScore": func(r plugin.Resource) *plugin.DataRes { 573 return (r.(*mqlAuditCve).GetWorstScore()).ToDataRes(types.Resource("audit.cvss")) 574 }, 575 "machine.bios.vendor": func(r plugin.Resource) *plugin.DataRes { 576 return (r.(*mqlMachineBios).GetVendor()).ToDataRes(types.String) 577 }, 578 "machine.bios.version": func(r plugin.Resource) *plugin.DataRes { 579 return (r.(*mqlMachineBios).GetVersion()).ToDataRes(types.String) 580 }, 581 "machine.bios.releaseDate": func(r plugin.Resource) *plugin.DataRes { 582 return (r.(*mqlMachineBios).GetReleaseDate()).ToDataRes(types.String) 583 }, 584 "machine.system.manufacturer": func(r plugin.Resource) *plugin.DataRes { 585 return (r.(*mqlMachineSystem).GetManufacturer()).ToDataRes(types.String) 586 }, 587 "machine.system.product": func(r plugin.Resource) *plugin.DataRes { 588 return (r.(*mqlMachineSystem).GetProduct()).ToDataRes(types.String) 589 }, 590 "machine.system.version": func(r plugin.Resource) *plugin.DataRes { 591 return (r.(*mqlMachineSystem).GetVersion()).ToDataRes(types.String) 592 }, 593 "machine.system.serial": func(r plugin.Resource) *plugin.DataRes { 594 return (r.(*mqlMachineSystem).GetSerial()).ToDataRes(types.String) 595 }, 596 "machine.system.uuid": func(r plugin.Resource) *plugin.DataRes { 597 return (r.(*mqlMachineSystem).GetUuid()).ToDataRes(types.String) 598 }, 599 "machine.system.sku": func(r plugin.Resource) *plugin.DataRes { 600 return (r.(*mqlMachineSystem).GetSku()).ToDataRes(types.String) 601 }, 602 "machine.system.family": func(r plugin.Resource) *plugin.DataRes { 603 return (r.(*mqlMachineSystem).GetFamily()).ToDataRes(types.String) 604 }, 605 "machine.baseboard.manufacturer": func(r plugin.Resource) *plugin.DataRes { 606 return (r.(*mqlMachineBaseboard).GetManufacturer()).ToDataRes(types.String) 607 }, 608 "machine.baseboard.product": func(r plugin.Resource) *plugin.DataRes { 609 return (r.(*mqlMachineBaseboard).GetProduct()).ToDataRes(types.String) 610 }, 611 "machine.baseboard.version": func(r plugin.Resource) *plugin.DataRes { 612 return (r.(*mqlMachineBaseboard).GetVersion()).ToDataRes(types.String) 613 }, 614 "machine.baseboard.serial": func(r plugin.Resource) *plugin.DataRes { 615 return (r.(*mqlMachineBaseboard).GetSerial()).ToDataRes(types.String) 616 }, 617 "machine.baseboard.assetTag": func(r plugin.Resource) *plugin.DataRes { 618 return (r.(*mqlMachineBaseboard).GetAssetTag()).ToDataRes(types.String) 619 }, 620 "machine.chassis.manufacturer": func(r plugin.Resource) *plugin.DataRes { 621 return (r.(*mqlMachineChassis).GetManufacturer()).ToDataRes(types.String) 622 }, 623 "machine.chassis.version": func(r plugin.Resource) *plugin.DataRes { 624 return (r.(*mqlMachineChassis).GetVersion()).ToDataRes(types.String) 625 }, 626 "machine.chassis.serial": func(r plugin.Resource) *plugin.DataRes { 627 return (r.(*mqlMachineChassis).GetSerial()).ToDataRes(types.String) 628 }, 629 "machine.chassis.assetTag": func(r plugin.Resource) *plugin.DataRes { 630 return (r.(*mqlMachineChassis).GetAssetTag()).ToDataRes(types.String) 631 }, 632 "os.name": func(r plugin.Resource) *plugin.DataRes { 633 return (r.(*mqlOs).GetName()).ToDataRes(types.String) 634 }, 635 "os.env": func(r plugin.Resource) *plugin.DataRes { 636 return (r.(*mqlOs).GetEnv()).ToDataRes(types.Map(types.String, types.String)) 637 }, 638 "os.path": func(r plugin.Resource) *plugin.DataRes { 639 return (r.(*mqlOs).GetPath()).ToDataRes(types.Array(types.String)) 640 }, 641 "os.uptime": func(r plugin.Resource) *plugin.DataRes { 642 return (r.(*mqlOs).GetUptime()).ToDataRes(types.Time) 643 }, 644 "os.updates": func(r plugin.Resource) *plugin.DataRes { 645 return (r.(*mqlOs).GetUpdates()).ToDataRes(types.Array(types.Resource("os.update"))) 646 }, 647 "os.rebootpending": func(r plugin.Resource) *plugin.DataRes { 648 return (r.(*mqlOs).GetRebootpending()).ToDataRes(types.Bool) 649 }, 650 "os.hostname": func(r plugin.Resource) *plugin.DataRes { 651 return (r.(*mqlOs).GetHostname()).ToDataRes(types.String) 652 }, 653 "os.machineid": func(r plugin.Resource) *plugin.DataRes { 654 return (r.(*mqlOs).GetMachineid()).ToDataRes(types.String) 655 }, 656 "os.update.name": func(r plugin.Resource) *plugin.DataRes { 657 return (r.(*mqlOsUpdate).GetName()).ToDataRes(types.String) 658 }, 659 "os.update.category": func(r plugin.Resource) *plugin.DataRes { 660 return (r.(*mqlOsUpdate).GetCategory()).ToDataRes(types.String) 661 }, 662 "os.update.severity": func(r plugin.Resource) *plugin.DataRes { 663 return (r.(*mqlOsUpdate).GetSeverity()).ToDataRes(types.String) 664 }, 665 "os.update.restart": func(r plugin.Resource) *plugin.DataRes { 666 return (r.(*mqlOsUpdate).GetRestart()).ToDataRes(types.Bool) 667 }, 668 "os.update.format": func(r plugin.Resource) *plugin.DataRes { 669 return (r.(*mqlOsUpdate).GetFormat()).ToDataRes(types.String) 670 }, 671 "os.base.machine": func(r plugin.Resource) *plugin.DataRes { 672 return (r.(*mqlOsBase).GetMachine()).ToDataRes(types.Resource("machine")) 673 }, 674 "os.base.name": func(r plugin.Resource) *plugin.DataRes { 675 return (r.(*mqlOsBase).GetName()).ToDataRes(types.String) 676 }, 677 "os.base.env": func(r plugin.Resource) *plugin.DataRes { 678 return (r.(*mqlOsBase).GetEnv()).ToDataRes(types.Map(types.String, types.String)) 679 }, 680 "os.base.path": func(r plugin.Resource) *plugin.DataRes { 681 return (r.(*mqlOsBase).GetPath()).ToDataRes(types.Array(types.String)) 682 }, 683 "os.base.uptime": func(r plugin.Resource) *plugin.DataRes { 684 return (r.(*mqlOsBase).GetUptime()).ToDataRes(types.Time) 685 }, 686 "os.base.updates": func(r plugin.Resource) *plugin.DataRes { 687 return (r.(*mqlOsBase).GetUpdates()).ToDataRes(types.Array(types.Resource("os.update"))) 688 }, 689 "os.base.rebootpending": func(r plugin.Resource) *plugin.DataRes { 690 return (r.(*mqlOsBase).GetRebootpending()).ToDataRes(types.Bool) 691 }, 692 "os.base.hostname": func(r plugin.Resource) *plugin.DataRes { 693 return (r.(*mqlOsBase).GetHostname()).ToDataRes(types.String) 694 }, 695 "os.base.groups": func(r plugin.Resource) *plugin.DataRes { 696 return (r.(*mqlOsBase).GetGroups()).ToDataRes(types.Resource("groups")) 697 }, 698 "os.base.users": func(r plugin.Resource) *plugin.DataRes { 699 return (r.(*mqlOsBase).GetUsers()).ToDataRes(types.Resource("users")) 700 }, 701 "os.unix.base": func(r plugin.Resource) *plugin.DataRes { 702 return (r.(*mqlOsUnix).GetBase()).ToDataRes(types.Resource("os.base")) 703 }, 704 "os.linux.unix": func(r plugin.Resource) *plugin.DataRes { 705 return (r.(*mqlOsLinux).GetUnix()).ToDataRes(types.Resource("os.unix")) 706 }, 707 "os.linux.iptables": func(r plugin.Resource) *plugin.DataRes { 708 return (r.(*mqlOsLinux).GetIptables()).ToDataRes(types.Resource("iptables")) 709 }, 710 "os.linux.ip6tables": func(r plugin.Resource) *plugin.DataRes { 711 return (r.(*mqlOsLinux).GetIp6tables()).ToDataRes(types.Resource("ip6tables")) 712 }, 713 "os.rootCertificates.files": func(r plugin.Resource) *plugin.DataRes { 714 return (r.(*mqlOsRootCertificates).GetFiles()).ToDataRes(types.Array(types.Resource("file"))) 715 }, 716 "os.rootCertificates.content": func(r plugin.Resource) *plugin.DataRes { 717 return (r.(*mqlOsRootCertificates).GetContent()).ToDataRes(types.Array(types.String)) 718 }, 719 "os.rootCertificates.list": func(r plugin.Resource) *plugin.DataRes { 720 return (r.(*mqlOsRootCertificates).GetList()).ToDataRes(types.Array(types.Resource("certificate"))) 721 }, 722 "command.command": func(r plugin.Resource) *plugin.DataRes { 723 return (r.(*mqlCommand).GetCommand()).ToDataRes(types.String) 724 }, 725 "command.stdout": func(r plugin.Resource) *plugin.DataRes { 726 return (r.(*mqlCommand).GetStdout()).ToDataRes(types.String) 727 }, 728 "command.stderr": func(r plugin.Resource) *plugin.DataRes { 729 return (r.(*mqlCommand).GetStderr()).ToDataRes(types.String) 730 }, 731 "command.exitcode": func(r plugin.Resource) *plugin.DataRes { 732 return (r.(*mqlCommand).GetExitcode()).ToDataRes(types.Int) 733 }, 734 "powershell.script": func(r plugin.Resource) *plugin.DataRes { 735 return (r.(*mqlPowershell).GetScript()).ToDataRes(types.String) 736 }, 737 "powershell.stdout": func(r plugin.Resource) *plugin.DataRes { 738 return (r.(*mqlPowershell).GetStdout()).ToDataRes(types.String) 739 }, 740 "powershell.stderr": func(r plugin.Resource) *plugin.DataRes { 741 return (r.(*mqlPowershell).GetStderr()).ToDataRes(types.String) 742 }, 743 "powershell.exitcode": func(r plugin.Resource) *plugin.DataRes { 744 return (r.(*mqlPowershell).GetExitcode()).ToDataRes(types.Int) 745 }, 746 "file.path": func(r plugin.Resource) *plugin.DataRes { 747 return (r.(*mqlFile).GetPath()).ToDataRes(types.String) 748 }, 749 "file.basename": func(r plugin.Resource) *plugin.DataRes { 750 return (r.(*mqlFile).GetBasename()).ToDataRes(types.String) 751 }, 752 "file.dirname": func(r plugin.Resource) *plugin.DataRes { 753 return (r.(*mqlFile).GetDirname()).ToDataRes(types.String) 754 }, 755 "file.content": func(r plugin.Resource) *plugin.DataRes { 756 return (r.(*mqlFile).GetContent()).ToDataRes(types.String) 757 }, 758 "file.exists": func(r plugin.Resource) *plugin.DataRes { 759 return (r.(*mqlFile).GetExists()).ToDataRes(types.Bool) 760 }, 761 "file.permissions": func(r plugin.Resource) *plugin.DataRes { 762 return (r.(*mqlFile).GetPermissions()).ToDataRes(types.Resource("file.permissions")) 763 }, 764 "file.size": func(r plugin.Resource) *plugin.DataRes { 765 return (r.(*mqlFile).GetSize()).ToDataRes(types.Int) 766 }, 767 "file.user": func(r plugin.Resource) *plugin.DataRes { 768 return (r.(*mqlFile).GetUser()).ToDataRes(types.Resource("user")) 769 }, 770 "file.group": func(r plugin.Resource) *plugin.DataRes { 771 return (r.(*mqlFile).GetGroup()).ToDataRes(types.Resource("group")) 772 }, 773 "file.empty": func(r plugin.Resource) *plugin.DataRes { 774 return (r.(*mqlFile).GetEmpty()).ToDataRes(types.Bool) 775 }, 776 "file.permissions.mode": func(r plugin.Resource) *plugin.DataRes { 777 return (r.(*mqlFilePermissions).GetMode()).ToDataRes(types.Int) 778 }, 779 "file.permissions.user_readable": func(r plugin.Resource) *plugin.DataRes { 780 return (r.(*mqlFilePermissions).GetUser_readable()).ToDataRes(types.Bool) 781 }, 782 "file.permissions.user_writeable": func(r plugin.Resource) *plugin.DataRes { 783 return (r.(*mqlFilePermissions).GetUser_writeable()).ToDataRes(types.Bool) 784 }, 785 "file.permissions.user_executable": func(r plugin.Resource) *plugin.DataRes { 786 return (r.(*mqlFilePermissions).GetUser_executable()).ToDataRes(types.Bool) 787 }, 788 "file.permissions.group_readable": func(r plugin.Resource) *plugin.DataRes { 789 return (r.(*mqlFilePermissions).GetGroup_readable()).ToDataRes(types.Bool) 790 }, 791 "file.permissions.group_writeable": func(r plugin.Resource) *plugin.DataRes { 792 return (r.(*mqlFilePermissions).GetGroup_writeable()).ToDataRes(types.Bool) 793 }, 794 "file.permissions.group_executable": func(r plugin.Resource) *plugin.DataRes { 795 return (r.(*mqlFilePermissions).GetGroup_executable()).ToDataRes(types.Bool) 796 }, 797 "file.permissions.other_readable": func(r plugin.Resource) *plugin.DataRes { 798 return (r.(*mqlFilePermissions).GetOther_readable()).ToDataRes(types.Bool) 799 }, 800 "file.permissions.other_writeable": func(r plugin.Resource) *plugin.DataRes { 801 return (r.(*mqlFilePermissions).GetOther_writeable()).ToDataRes(types.Bool) 802 }, 803 "file.permissions.other_executable": func(r plugin.Resource) *plugin.DataRes { 804 return (r.(*mqlFilePermissions).GetOther_executable()).ToDataRes(types.Bool) 805 }, 806 "file.permissions.suid": func(r plugin.Resource) *plugin.DataRes { 807 return (r.(*mqlFilePermissions).GetSuid()).ToDataRes(types.Bool) 808 }, 809 "file.permissions.sgid": func(r plugin.Resource) *plugin.DataRes { 810 return (r.(*mqlFilePermissions).GetSgid()).ToDataRes(types.Bool) 811 }, 812 "file.permissions.sticky": func(r plugin.Resource) *plugin.DataRes { 813 return (r.(*mqlFilePermissions).GetSticky()).ToDataRes(types.Bool) 814 }, 815 "file.permissions.isDirectory": func(r plugin.Resource) *plugin.DataRes { 816 return (r.(*mqlFilePermissions).GetIsDirectory()).ToDataRes(types.Bool) 817 }, 818 "file.permissions.isFile": func(r plugin.Resource) *plugin.DataRes { 819 return (r.(*mqlFilePermissions).GetIsFile()).ToDataRes(types.Bool) 820 }, 821 "file.permissions.isSymlink": func(r plugin.Resource) *plugin.DataRes { 822 return (r.(*mqlFilePermissions).GetIsSymlink()).ToDataRes(types.Bool) 823 }, 824 "file.permissions.string": func(r plugin.Resource) *plugin.DataRes { 825 return (r.(*mqlFilePermissions).GetString()).ToDataRes(types.String) 826 }, 827 "files.find.from": func(r plugin.Resource) *plugin.DataRes { 828 return (r.(*mqlFilesFind).GetFrom()).ToDataRes(types.String) 829 }, 830 "files.find.xdev": func(r plugin.Resource) *plugin.DataRes { 831 return (r.(*mqlFilesFind).GetXdev()).ToDataRes(types.Bool) 832 }, 833 "files.find.type": func(r plugin.Resource) *plugin.DataRes { 834 return (r.(*mqlFilesFind).GetType()).ToDataRes(types.String) 835 }, 836 "files.find.regex": func(r plugin.Resource) *plugin.DataRes { 837 return (r.(*mqlFilesFind).GetRegex()).ToDataRes(types.String) 838 }, 839 "files.find.permissions": func(r plugin.Resource) *plugin.DataRes { 840 return (r.(*mqlFilesFind).GetPermissions()).ToDataRes(types.Int) 841 }, 842 "files.find.name": func(r plugin.Resource) *plugin.DataRes { 843 return (r.(*mqlFilesFind).GetName()).ToDataRes(types.String) 844 }, 845 "files.find.list": func(r plugin.Resource) *plugin.DataRes { 846 return (r.(*mqlFilesFind).GetList()).ToDataRes(types.Array(types.Resource("file"))) 847 }, 848 "parse.ini.delimiter": func(r plugin.Resource) *plugin.DataRes { 849 return (r.(*mqlParseIni).GetDelimiter()).ToDataRes(types.String) 850 }, 851 "parse.ini.file": func(r plugin.Resource) *plugin.DataRes { 852 return (r.(*mqlParseIni).GetFile()).ToDataRes(types.Resource("file")) 853 }, 854 "parse.ini.content": func(r plugin.Resource) *plugin.DataRes { 855 return (r.(*mqlParseIni).GetContent()).ToDataRes(types.String) 856 }, 857 "parse.ini.sections": func(r plugin.Resource) *plugin.DataRes { 858 return (r.(*mqlParseIni).GetSections()).ToDataRes(types.Map(types.String, types.Map(types.String, types.String))) 859 }, 860 "parse.ini.params": func(r plugin.Resource) *plugin.DataRes { 861 return (r.(*mqlParseIni).GetParams()).ToDataRes(types.Map(types.String, types.String)) 862 }, 863 "parse.json.file": func(r plugin.Resource) *plugin.DataRes { 864 return (r.(*mqlParseJson).GetFile()).ToDataRes(types.Resource("file")) 865 }, 866 "parse.json.content": func(r plugin.Resource) *plugin.DataRes { 867 return (r.(*mqlParseJson).GetContent()).ToDataRes(types.String) 868 }, 869 "parse.json.params": func(r plugin.Resource) *plugin.DataRes { 870 return (r.(*mqlParseJson).GetParams()).ToDataRes(types.Dict) 871 }, 872 "parse.plist.file": func(r plugin.Resource) *plugin.DataRes { 873 return (r.(*mqlParsePlist).GetFile()).ToDataRes(types.Resource("file")) 874 }, 875 "parse.plist.content": func(r plugin.Resource) *plugin.DataRes { 876 return (r.(*mqlParsePlist).GetContent()).ToDataRes(types.String) 877 }, 878 "parse.plist.params": func(r plugin.Resource) *plugin.DataRes { 879 return (r.(*mqlParsePlist).GetParams()).ToDataRes(types.Dict) 880 }, 881 "parse.yaml.file": func(r plugin.Resource) *plugin.DataRes { 882 return (r.(*mqlParseYaml).GetFile()).ToDataRes(types.Resource("file")) 883 }, 884 "parse.yaml.content": func(r plugin.Resource) *plugin.DataRes { 885 return (r.(*mqlParseYaml).GetContent()).ToDataRes(types.String) 886 }, 887 "parse.yaml.params": func(r plugin.Resource) *plugin.DataRes { 888 return (r.(*mqlParseYaml).GetParams()).ToDataRes(types.Dict) 889 }, 890 "parse.certificates.path": func(r plugin.Resource) *plugin.DataRes { 891 return (r.(*mqlParseCertificates).GetPath()).ToDataRes(types.String) 892 }, 893 "parse.certificates.file": func(r plugin.Resource) *plugin.DataRes { 894 return (r.(*mqlParseCertificates).GetFile()).ToDataRes(types.Resource("file")) 895 }, 896 "parse.certificates.content": func(r plugin.Resource) *plugin.DataRes { 897 return (r.(*mqlParseCertificates).GetContent()).ToDataRes(types.String) 898 }, 899 "parse.certificates.list": func(r plugin.Resource) *plugin.DataRes { 900 return (r.(*mqlParseCertificates).GetList()).ToDataRes(types.Array(types.Resource("certificate"))) 901 }, 902 "parse.openpgp.path": func(r plugin.Resource) *plugin.DataRes { 903 return (r.(*mqlParseOpenpgp).GetPath()).ToDataRes(types.String) 904 }, 905 "parse.openpgp.file": func(r plugin.Resource) *plugin.DataRes { 906 return (r.(*mqlParseOpenpgp).GetFile()).ToDataRes(types.Resource("file")) 907 }, 908 "parse.openpgp.content": func(r plugin.Resource) *plugin.DataRes { 909 return (r.(*mqlParseOpenpgp).GetContent()).ToDataRes(types.String) 910 }, 911 "parse.openpgp.list": func(r plugin.Resource) *plugin.DataRes { 912 return (r.(*mqlParseOpenpgp).GetList()).ToDataRes(types.Array(types.Resource("openpgp.entity"))) 913 }, 914 "user.uid": func(r plugin.Resource) *plugin.DataRes { 915 return (r.(*mqlUser).GetUid()).ToDataRes(types.Int) 916 }, 917 "user.gid": func(r plugin.Resource) *plugin.DataRes { 918 return (r.(*mqlUser).GetGid()).ToDataRes(types.Int) 919 }, 920 "user.sid": func(r plugin.Resource) *plugin.DataRes { 921 return (r.(*mqlUser).GetSid()).ToDataRes(types.String) 922 }, 923 "user.name": func(r plugin.Resource) *plugin.DataRes { 924 return (r.(*mqlUser).GetName()).ToDataRes(types.String) 925 }, 926 "user.home": func(r plugin.Resource) *plugin.DataRes { 927 return (r.(*mqlUser).GetHome()).ToDataRes(types.String) 928 }, 929 "user.shell": func(r plugin.Resource) *plugin.DataRes { 930 return (r.(*mqlUser).GetShell()).ToDataRes(types.String) 931 }, 932 "user.enabled": func(r plugin.Resource) *plugin.DataRes { 933 return (r.(*mqlUser).GetEnabled()).ToDataRes(types.Bool) 934 }, 935 "user.authorizedkeys": func(r plugin.Resource) *plugin.DataRes { 936 return (r.(*mqlUser).GetAuthorizedkeys()).ToDataRes(types.Resource("authorizedkeys")) 937 }, 938 "user.sshkeys": func(r plugin.Resource) *plugin.DataRes { 939 return (r.(*mqlUser).GetSshkeys()).ToDataRes(types.Array(types.Resource("privatekey"))) 940 }, 941 "user.group": func(r plugin.Resource) *plugin.DataRes { 942 return (r.(*mqlUser).GetGroup()).ToDataRes(types.Resource("group")) 943 }, 944 "privatekey.pem": func(r plugin.Resource) *plugin.DataRes { 945 return (r.(*mqlPrivatekey).GetPem()).ToDataRes(types.String) 946 }, 947 "privatekey.path": func(r plugin.Resource) *plugin.DataRes { 948 return (r.(*mqlPrivatekey).GetPath()).ToDataRes(types.String) 949 }, 950 "privatekey.file": func(r plugin.Resource) *plugin.DataRes { 951 return (r.(*mqlPrivatekey).GetFile()).ToDataRes(types.Resource("file")) 952 }, 953 "privatekey.encrypted": func(r plugin.Resource) *plugin.DataRes { 954 return (r.(*mqlPrivatekey).GetEncrypted()).ToDataRes(types.Bool) 955 }, 956 "users.list": func(r plugin.Resource) *plugin.DataRes { 957 return (r.(*mqlUsers).GetList()).ToDataRes(types.Array(types.Resource("user"))) 958 }, 959 "authorizedkeys.path": func(r plugin.Resource) *plugin.DataRes { 960 return (r.(*mqlAuthorizedkeys).GetPath()).ToDataRes(types.String) 961 }, 962 "authorizedkeys.file": func(r plugin.Resource) *plugin.DataRes { 963 return (r.(*mqlAuthorizedkeys).GetFile()).ToDataRes(types.Resource("file")) 964 }, 965 "authorizedkeys.content": func(r plugin.Resource) *plugin.DataRes { 966 return (r.(*mqlAuthorizedkeys).GetContent()).ToDataRes(types.String) 967 }, 968 "authorizedkeys.list": func(r plugin.Resource) *plugin.DataRes { 969 return (r.(*mqlAuthorizedkeys).GetList()).ToDataRes(types.Array(types.Resource("authorizedkeys.entry"))) 970 }, 971 "authorizedkeys.entry.line": func(r plugin.Resource) *plugin.DataRes { 972 return (r.(*mqlAuthorizedkeysEntry).GetLine()).ToDataRes(types.Int) 973 }, 974 "authorizedkeys.entry.type": func(r plugin.Resource) *plugin.DataRes { 975 return (r.(*mqlAuthorizedkeysEntry).GetType()).ToDataRes(types.String) 976 }, 977 "authorizedkeys.entry.key": func(r plugin.Resource) *plugin.DataRes { 978 return (r.(*mqlAuthorizedkeysEntry).GetKey()).ToDataRes(types.String) 979 }, 980 "authorizedkeys.entry.label": func(r plugin.Resource) *plugin.DataRes { 981 return (r.(*mqlAuthorizedkeysEntry).GetLabel()).ToDataRes(types.String) 982 }, 983 "authorizedkeys.entry.options": func(r plugin.Resource) *plugin.DataRes { 984 return (r.(*mqlAuthorizedkeysEntry).GetOptions()).ToDataRes(types.Array(types.String)) 985 }, 986 "authorizedkeys.entry.file": func(r plugin.Resource) *plugin.DataRes { 987 return (r.(*mqlAuthorizedkeysEntry).GetFile()).ToDataRes(types.Resource("file")) 988 }, 989 "group.gid": func(r plugin.Resource) *plugin.DataRes { 990 return (r.(*mqlGroup).GetGid()).ToDataRes(types.Int) 991 }, 992 "group.sid": func(r plugin.Resource) *plugin.DataRes { 993 return (r.(*mqlGroup).GetSid()).ToDataRes(types.String) 994 }, 995 "group.name": func(r plugin.Resource) *plugin.DataRes { 996 return (r.(*mqlGroup).GetName()).ToDataRes(types.String) 997 }, 998 "group.members": func(r plugin.Resource) *plugin.DataRes { 999 return (r.(*mqlGroup).GetMembers()).ToDataRes(types.Array(types.Resource("user"))) 1000 }, 1001 "groups.list": func(r plugin.Resource) *plugin.DataRes { 1002 return (r.(*mqlGroups).GetList()).ToDataRes(types.Array(types.Resource("group"))) 1003 }, 1004 "package.name": func(r plugin.Resource) *plugin.DataRes { 1005 return (r.(*mqlPackage).GetName()).ToDataRes(types.String) 1006 }, 1007 "package.version": func(r plugin.Resource) *plugin.DataRes { 1008 return (r.(*mqlPackage).GetVersion()).ToDataRes(types.String) 1009 }, 1010 "package.arch": func(r plugin.Resource) *plugin.DataRes { 1011 return (r.(*mqlPackage).GetArch()).ToDataRes(types.String) 1012 }, 1013 "package.epoch": func(r plugin.Resource) *plugin.DataRes { 1014 return (r.(*mqlPackage).GetEpoch()).ToDataRes(types.String) 1015 }, 1016 "package.format": func(r plugin.Resource) *plugin.DataRes { 1017 return (r.(*mqlPackage).GetFormat()).ToDataRes(types.String) 1018 }, 1019 "package.status": func(r plugin.Resource) *plugin.DataRes { 1020 return (r.(*mqlPackage).GetStatus()).ToDataRes(types.String) 1021 }, 1022 "package.description": func(r plugin.Resource) *plugin.DataRes { 1023 return (r.(*mqlPackage).GetDescription()).ToDataRes(types.String) 1024 }, 1025 "package.origin": func(r plugin.Resource) *plugin.DataRes { 1026 return (r.(*mqlPackage).GetOrigin()).ToDataRes(types.String) 1027 }, 1028 "package.available": func(r plugin.Resource) *plugin.DataRes { 1029 return (r.(*mqlPackage).GetAvailable()).ToDataRes(types.String) 1030 }, 1031 "package.installed": func(r plugin.Resource) *plugin.DataRes { 1032 return (r.(*mqlPackage).GetInstalled()).ToDataRes(types.Bool) 1033 }, 1034 "package.outdated": func(r plugin.Resource) *plugin.DataRes { 1035 return (r.(*mqlPackage).GetOutdated()).ToDataRes(types.Bool) 1036 }, 1037 "packages.list": func(r plugin.Resource) *plugin.DataRes { 1038 return (r.(*mqlPackages).GetList()).ToDataRes(types.Array(types.Resource("package"))) 1039 }, 1040 "pam.conf.files": func(r plugin.Resource) *plugin.DataRes { 1041 return (r.(*mqlPamConf).GetFiles()).ToDataRes(types.Array(types.Resource("file"))) 1042 }, 1043 "pam.conf.content": func(r plugin.Resource) *plugin.DataRes { 1044 return (r.(*mqlPamConf).GetContent()).ToDataRes(types.String) 1045 }, 1046 "pam.conf.services": func(r plugin.Resource) *plugin.DataRes { 1047 return (r.(*mqlPamConf).GetServices()).ToDataRes(types.Map(types.String, types.Array(types.String))) 1048 }, 1049 "pam.conf.entries": func(r plugin.Resource) *plugin.DataRes { 1050 return (r.(*mqlPamConf).GetEntries()).ToDataRes(types.Map(types.String, types.Array(types.Resource("pam.conf.serviceEntry")))) 1051 }, 1052 "pam.conf.serviceEntry.service": func(r plugin.Resource) *plugin.DataRes { 1053 return (r.(*mqlPamConfServiceEntry).GetService()).ToDataRes(types.String) 1054 }, 1055 "pam.conf.serviceEntry.lineNumber": func(r plugin.Resource) *plugin.DataRes { 1056 return (r.(*mqlPamConfServiceEntry).GetLineNumber()).ToDataRes(types.Int) 1057 }, 1058 "pam.conf.serviceEntry.pamType": func(r plugin.Resource) *plugin.DataRes { 1059 return (r.(*mqlPamConfServiceEntry).GetPamType()).ToDataRes(types.String) 1060 }, 1061 "pam.conf.serviceEntry.control": func(r plugin.Resource) *plugin.DataRes { 1062 return (r.(*mqlPamConfServiceEntry).GetControl()).ToDataRes(types.String) 1063 }, 1064 "pam.conf.serviceEntry.module": func(r plugin.Resource) *plugin.DataRes { 1065 return (r.(*mqlPamConfServiceEntry).GetModule()).ToDataRes(types.String) 1066 }, 1067 "pam.conf.serviceEntry.options": func(r plugin.Resource) *plugin.DataRes { 1068 return (r.(*mqlPamConfServiceEntry).GetOptions()).ToDataRes(types.Array(types.String)) 1069 }, 1070 "sshd.config.file": func(r plugin.Resource) *plugin.DataRes { 1071 return (r.(*mqlSshdConfig).GetFile()).ToDataRes(types.Resource("file")) 1072 }, 1073 "sshd.config.files": func(r plugin.Resource) *plugin.DataRes { 1074 return (r.(*mqlSshdConfig).GetFiles()).ToDataRes(types.Array(types.Resource("file"))) 1075 }, 1076 "sshd.config.content": func(r plugin.Resource) *plugin.DataRes { 1077 return (r.(*mqlSshdConfig).GetContent()).ToDataRes(types.String) 1078 }, 1079 "sshd.config.params": func(r plugin.Resource) *plugin.DataRes { 1080 return (r.(*mqlSshdConfig).GetParams()).ToDataRes(types.Map(types.String, types.String)) 1081 }, 1082 "sshd.config.ciphers": func(r plugin.Resource) *plugin.DataRes { 1083 return (r.(*mqlSshdConfig).GetCiphers()).ToDataRes(types.Array(types.String)) 1084 }, 1085 "sshd.config.macs": func(r plugin.Resource) *plugin.DataRes { 1086 return (r.(*mqlSshdConfig).GetMacs()).ToDataRes(types.Array(types.String)) 1087 }, 1088 "sshd.config.kexs": func(r plugin.Resource) *plugin.DataRes { 1089 return (r.(*mqlSshdConfig).GetKexs()).ToDataRes(types.Array(types.String)) 1090 }, 1091 "sshd.config.hostkeys": func(r plugin.Resource) *plugin.DataRes { 1092 return (r.(*mqlSshdConfig).GetHostkeys()).ToDataRes(types.Array(types.String)) 1093 }, 1094 "service.name": func(r plugin.Resource) *plugin.DataRes { 1095 return (r.(*mqlService).GetName()).ToDataRes(types.String) 1096 }, 1097 "service.description": func(r plugin.Resource) *plugin.DataRes { 1098 return (r.(*mqlService).GetDescription()).ToDataRes(types.String) 1099 }, 1100 "service.installed": func(r plugin.Resource) *plugin.DataRes { 1101 return (r.(*mqlService).GetInstalled()).ToDataRes(types.Bool) 1102 }, 1103 "service.running": func(r plugin.Resource) *plugin.DataRes { 1104 return (r.(*mqlService).GetRunning()).ToDataRes(types.Bool) 1105 }, 1106 "service.enabled": func(r plugin.Resource) *plugin.DataRes { 1107 return (r.(*mqlService).GetEnabled()).ToDataRes(types.Bool) 1108 }, 1109 "service.type": func(r plugin.Resource) *plugin.DataRes { 1110 return (r.(*mqlService).GetType()).ToDataRes(types.String) 1111 }, 1112 "service.masked": func(r plugin.Resource) *plugin.DataRes { 1113 return (r.(*mqlService).GetMasked()).ToDataRes(types.Bool) 1114 }, 1115 "services.list": func(r plugin.Resource) *plugin.DataRes { 1116 return (r.(*mqlServices).GetList()).ToDataRes(types.Array(types.Resource("service"))) 1117 }, 1118 "kernel.info": func(r plugin.Resource) *plugin.DataRes { 1119 return (r.(*mqlKernel).GetInfo()).ToDataRes(types.Dict) 1120 }, 1121 "kernel.parameters": func(r plugin.Resource) *plugin.DataRes { 1122 return (r.(*mqlKernel).GetParameters()).ToDataRes(types.Map(types.String, types.String)) 1123 }, 1124 "kernel.modules": func(r plugin.Resource) *plugin.DataRes { 1125 return (r.(*mqlKernel).GetModules()).ToDataRes(types.Array(types.Resource("kernel.module"))) 1126 }, 1127 "kernel.installed": func(r plugin.Resource) *plugin.DataRes { 1128 return (r.(*mqlKernel).GetInstalled()).ToDataRes(types.Array(types.Dict)) 1129 }, 1130 "kernel.module.name": func(r plugin.Resource) *plugin.DataRes { 1131 return (r.(*mqlKernelModule).GetName()).ToDataRes(types.String) 1132 }, 1133 "kernel.module.size": func(r plugin.Resource) *plugin.DataRes { 1134 return (r.(*mqlKernelModule).GetSize()).ToDataRes(types.String) 1135 }, 1136 "kernel.module.loaded": func(r plugin.Resource) *plugin.DataRes { 1137 return (r.(*mqlKernelModule).GetLoaded()).ToDataRes(types.Bool) 1138 }, 1139 "docker.images": func(r plugin.Resource) *plugin.DataRes { 1140 return (r.(*mqlDocker).GetImages()).ToDataRes(types.Array(types.Resource("docker.image"))) 1141 }, 1142 "docker.containers": func(r plugin.Resource) *plugin.DataRes { 1143 return (r.(*mqlDocker).GetContainers()).ToDataRes(types.Array(types.Resource("docker.container"))) 1144 }, 1145 "docker.image.id": func(r plugin.Resource) *plugin.DataRes { 1146 return (r.(*mqlDockerImage).GetId()).ToDataRes(types.String) 1147 }, 1148 "docker.image.size": func(r plugin.Resource) *plugin.DataRes { 1149 return (r.(*mqlDockerImage).GetSize()).ToDataRes(types.Int) 1150 }, 1151 "docker.image.virtualsize": func(r plugin.Resource) *plugin.DataRes { 1152 return (r.(*mqlDockerImage).GetVirtualsize()).ToDataRes(types.Int) 1153 }, 1154 "docker.image.tags": func(r plugin.Resource) *plugin.DataRes { 1155 return (r.(*mqlDockerImage).GetTags()).ToDataRes(types.Array(types.String)) 1156 }, 1157 "docker.image.labels": func(r plugin.Resource) *plugin.DataRes { 1158 return (r.(*mqlDockerImage).GetLabels()).ToDataRes(types.Map(types.String, types.String)) 1159 }, 1160 "docker.container.os": func(r plugin.Resource) *plugin.DataRes { 1161 return (r.(*mqlDockerContainer).GetOs()).ToDataRes(types.Resource("os.linux")) 1162 }, 1163 "docker.container.id": func(r plugin.Resource) *plugin.DataRes { 1164 return (r.(*mqlDockerContainer).GetId()).ToDataRes(types.String) 1165 }, 1166 "docker.container.command": func(r plugin.Resource) *plugin.DataRes { 1167 return (r.(*mqlDockerContainer).GetCommand()).ToDataRes(types.String) 1168 }, 1169 "docker.container.image": func(r plugin.Resource) *plugin.DataRes { 1170 return (r.(*mqlDockerContainer).GetImage()).ToDataRes(types.String) 1171 }, 1172 "docker.container.imageid": func(r plugin.Resource) *plugin.DataRes { 1173 return (r.(*mqlDockerContainer).GetImageid()).ToDataRes(types.String) 1174 }, 1175 "docker.container.names": func(r plugin.Resource) *plugin.DataRes { 1176 return (r.(*mqlDockerContainer).GetNames()).ToDataRes(types.Array(types.String)) 1177 }, 1178 "docker.container.state": func(r plugin.Resource) *plugin.DataRes { 1179 return (r.(*mqlDockerContainer).GetState()).ToDataRes(types.String) 1180 }, 1181 "docker.container.status": func(r plugin.Resource) *plugin.DataRes { 1182 return (r.(*mqlDockerContainer).GetStatus()).ToDataRes(types.String) 1183 }, 1184 "docker.container.labels": func(r plugin.Resource) *plugin.DataRes { 1185 return (r.(*mqlDockerContainer).GetLabels()).ToDataRes(types.Map(types.String, types.String)) 1186 }, 1187 "iptables.input": func(r plugin.Resource) *plugin.DataRes { 1188 return (r.(*mqlIptables).GetInput()).ToDataRes(types.Array(types.Resource("iptables.entry"))) 1189 }, 1190 "iptables.output": func(r plugin.Resource) *plugin.DataRes { 1191 return (r.(*mqlIptables).GetOutput()).ToDataRes(types.Array(types.Resource("iptables.entry"))) 1192 }, 1193 "ip6tables.input": func(r plugin.Resource) *plugin.DataRes { 1194 return (r.(*mqlIp6tables).GetInput()).ToDataRes(types.Array(types.Resource("iptables.entry"))) 1195 }, 1196 "ip6tables.output": func(r plugin.Resource) *plugin.DataRes { 1197 return (r.(*mqlIp6tables).GetOutput()).ToDataRes(types.Array(types.Resource("iptables.entry"))) 1198 }, 1199 "iptables.entry.lineNumber": func(r plugin.Resource) *plugin.DataRes { 1200 return (r.(*mqlIptablesEntry).GetLineNumber()).ToDataRes(types.Int) 1201 }, 1202 "iptables.entry.packets": func(r plugin.Resource) *plugin.DataRes { 1203 return (r.(*mqlIptablesEntry).GetPackets()).ToDataRes(types.Int) 1204 }, 1205 "iptables.entry.bytes": func(r plugin.Resource) *plugin.DataRes { 1206 return (r.(*mqlIptablesEntry).GetBytes()).ToDataRes(types.Int) 1207 }, 1208 "iptables.entry.target": func(r plugin.Resource) *plugin.DataRes { 1209 return (r.(*mqlIptablesEntry).GetTarget()).ToDataRes(types.String) 1210 }, 1211 "iptables.entry.protocol": func(r plugin.Resource) *plugin.DataRes { 1212 return (r.(*mqlIptablesEntry).GetProtocol()).ToDataRes(types.String) 1213 }, 1214 "iptables.entry.opt": func(r plugin.Resource) *plugin.DataRes { 1215 return (r.(*mqlIptablesEntry).GetOpt()).ToDataRes(types.String) 1216 }, 1217 "iptables.entry.in": func(r plugin.Resource) *plugin.DataRes { 1218 return (r.(*mqlIptablesEntry).GetIn()).ToDataRes(types.String) 1219 }, 1220 "iptables.entry.out": func(r plugin.Resource) *plugin.DataRes { 1221 return (r.(*mqlIptablesEntry).GetOut()).ToDataRes(types.String) 1222 }, 1223 "iptables.entry.source": func(r plugin.Resource) *plugin.DataRes { 1224 return (r.(*mqlIptablesEntry).GetSource()).ToDataRes(types.String) 1225 }, 1226 "iptables.entry.destination": func(r plugin.Resource) *plugin.DataRes { 1227 return (r.(*mqlIptablesEntry).GetDestination()).ToDataRes(types.String) 1228 }, 1229 "iptables.entry.options": func(r plugin.Resource) *plugin.DataRes { 1230 return (r.(*mqlIptablesEntry).GetOptions()).ToDataRes(types.String) 1231 }, 1232 "iptables.entry.chain": func(r plugin.Resource) *plugin.DataRes { 1233 return (r.(*mqlIptablesEntry).GetChain()).ToDataRes(types.String) 1234 }, 1235 "process.pid": func(r plugin.Resource) *plugin.DataRes { 1236 return (r.(*mqlProcess).GetPid()).ToDataRes(types.Int) 1237 }, 1238 "process.state": func(r plugin.Resource) *plugin.DataRes { 1239 return (r.(*mqlProcess).GetState()).ToDataRes(types.String) 1240 }, 1241 "process.executable": func(r plugin.Resource) *plugin.DataRes { 1242 return (r.(*mqlProcess).GetExecutable()).ToDataRes(types.String) 1243 }, 1244 "process.command": func(r plugin.Resource) *plugin.DataRes { 1245 return (r.(*mqlProcess).GetCommand()).ToDataRes(types.String) 1246 }, 1247 "process.flags": func(r plugin.Resource) *plugin.DataRes { 1248 return (r.(*mqlProcess).GetFlags()).ToDataRes(types.Map(types.String, types.String)) 1249 }, 1250 "processes.list": func(r plugin.Resource) *plugin.DataRes { 1251 return (r.(*mqlProcesses).GetList()).ToDataRes(types.Array(types.Resource("process"))) 1252 }, 1253 "port.protocol": func(r plugin.Resource) *plugin.DataRes { 1254 return (r.(*mqlPort).GetProtocol()).ToDataRes(types.String) 1255 }, 1256 "port.port": func(r plugin.Resource) *plugin.DataRes { 1257 return (r.(*mqlPort).GetPort()).ToDataRes(types.Int) 1258 }, 1259 "port.address": func(r plugin.Resource) *plugin.DataRes { 1260 return (r.(*mqlPort).GetAddress()).ToDataRes(types.String) 1261 }, 1262 "port.user": func(r plugin.Resource) *plugin.DataRes { 1263 return (r.(*mqlPort).GetUser()).ToDataRes(types.Resource("user")) 1264 }, 1265 "port.process": func(r plugin.Resource) *plugin.DataRes { 1266 return (r.(*mqlPort).GetProcess()).ToDataRes(types.Resource("process")) 1267 }, 1268 "port.state": func(r plugin.Resource) *plugin.DataRes { 1269 return (r.(*mqlPort).GetState()).ToDataRes(types.String) 1270 }, 1271 "port.remoteAddress": func(r plugin.Resource) *plugin.DataRes { 1272 return (r.(*mqlPort).GetRemoteAddress()).ToDataRes(types.String) 1273 }, 1274 "port.remotePort": func(r plugin.Resource) *plugin.DataRes { 1275 return (r.(*mqlPort).GetRemotePort()).ToDataRes(types.Int) 1276 }, 1277 "port.tls": func(r plugin.Resource) *plugin.DataRes { 1278 return (r.(*mqlPort).GetTls()).ToDataRes(types.Resource("tls")) 1279 }, 1280 "ports.listening": func(r plugin.Resource) *plugin.DataRes { 1281 return (r.(*mqlPorts).GetListening()).ToDataRes(types.Array(types.Resource("port"))) 1282 }, 1283 "ports.list": func(r plugin.Resource) *plugin.DataRes { 1284 return (r.(*mqlPorts).GetList()).ToDataRes(types.Array(types.Resource("port"))) 1285 }, 1286 "auditpol.list": func(r plugin.Resource) *plugin.DataRes { 1287 return (r.(*mqlAuditpol).GetList()).ToDataRes(types.Array(types.Resource("auditpol.entry"))) 1288 }, 1289 "auditpol.entry.machinename": func(r plugin.Resource) *plugin.DataRes { 1290 return (r.(*mqlAuditpolEntry).GetMachinename()).ToDataRes(types.String) 1291 }, 1292 "auditpol.entry.policytarget": func(r plugin.Resource) *plugin.DataRes { 1293 return (r.(*mqlAuditpolEntry).GetPolicytarget()).ToDataRes(types.String) 1294 }, 1295 "auditpol.entry.subcategory": func(r plugin.Resource) *plugin.DataRes { 1296 return (r.(*mqlAuditpolEntry).GetSubcategory()).ToDataRes(types.String) 1297 }, 1298 "auditpol.entry.subcategoryguid": func(r plugin.Resource) *plugin.DataRes { 1299 return (r.(*mqlAuditpolEntry).GetSubcategoryguid()).ToDataRes(types.String) 1300 }, 1301 "auditpol.entry.inclusionsetting": func(r plugin.Resource) *plugin.DataRes { 1302 return (r.(*mqlAuditpolEntry).GetInclusionsetting()).ToDataRes(types.String) 1303 }, 1304 "auditpol.entry.exclusionsetting": func(r plugin.Resource) *plugin.DataRes { 1305 return (r.(*mqlAuditpolEntry).GetExclusionsetting()).ToDataRes(types.String) 1306 }, 1307 "secpol.systemaccess": func(r plugin.Resource) *plugin.DataRes { 1308 return (r.(*mqlSecpol).GetSystemaccess()).ToDataRes(types.Map(types.String, types.String)) 1309 }, 1310 "secpol.eventaudit": func(r plugin.Resource) *plugin.DataRes { 1311 return (r.(*mqlSecpol).GetEventaudit()).ToDataRes(types.Map(types.String, types.String)) 1312 }, 1313 "secpol.registryvalues": func(r plugin.Resource) *plugin.DataRes { 1314 return (r.(*mqlSecpol).GetRegistryvalues()).ToDataRes(types.Map(types.String, types.String)) 1315 }, 1316 "secpol.privilegerights": func(r plugin.Resource) *plugin.DataRes { 1317 return (r.(*mqlSecpol).GetPrivilegerights()).ToDataRes(types.Map(types.String, types.Array(types.String))) 1318 }, 1319 "ntp.conf.file": func(r plugin.Resource) *plugin.DataRes { 1320 return (r.(*mqlNtpConf).GetFile()).ToDataRes(types.Resource("file")) 1321 }, 1322 "ntp.conf.content": func(r plugin.Resource) *plugin.DataRes { 1323 return (r.(*mqlNtpConf).GetContent()).ToDataRes(types.String) 1324 }, 1325 "ntp.conf.settings": func(r plugin.Resource) *plugin.DataRes { 1326 return (r.(*mqlNtpConf).GetSettings()).ToDataRes(types.Array(types.String)) 1327 }, 1328 "ntp.conf.servers": func(r plugin.Resource) *plugin.DataRes { 1329 return (r.(*mqlNtpConf).GetServers()).ToDataRes(types.Array(types.String)) 1330 }, 1331 "ntp.conf.restrict": func(r plugin.Resource) *plugin.DataRes { 1332 return (r.(*mqlNtpConf).GetRestrict()).ToDataRes(types.Array(types.String)) 1333 }, 1334 "ntp.conf.fudge": func(r plugin.Resource) *plugin.DataRes { 1335 return (r.(*mqlNtpConf).GetFudge()).ToDataRes(types.Array(types.String)) 1336 }, 1337 "rsyslog.conf.path": func(r plugin.Resource) *plugin.DataRes { 1338 return (r.(*mqlRsyslogConf).GetPath()).ToDataRes(types.String) 1339 }, 1340 "rsyslog.conf.files": func(r plugin.Resource) *plugin.DataRes { 1341 return (r.(*mqlRsyslogConf).GetFiles()).ToDataRes(types.Array(types.Resource("file"))) 1342 }, 1343 "rsyslog.conf.content": func(r plugin.Resource) *plugin.DataRes { 1344 return (r.(*mqlRsyslogConf).GetContent()).ToDataRes(types.String) 1345 }, 1346 "rsyslog.conf.settings": func(r plugin.Resource) *plugin.DataRes { 1347 return (r.(*mqlRsyslogConf).GetSettings()).ToDataRes(types.Array(types.String)) 1348 }, 1349 "logindefs.file": func(r plugin.Resource) *plugin.DataRes { 1350 return (r.(*mqlLogindefs).GetFile()).ToDataRes(types.Resource("file")) 1351 }, 1352 "logindefs.content": func(r plugin.Resource) *plugin.DataRes { 1353 return (r.(*mqlLogindefs).GetContent()).ToDataRes(types.String) 1354 }, 1355 "logindefs.params": func(r plugin.Resource) *plugin.DataRes { 1356 return (r.(*mqlLogindefs).GetParams()).ToDataRes(types.Map(types.String, types.String)) 1357 }, 1358 "lsblk.list": func(r plugin.Resource) *plugin.DataRes { 1359 return (r.(*mqlLsblk).GetList()).ToDataRes(types.Array(types.Resource("lsblk.entry"))) 1360 }, 1361 "lsblk.entry.name": func(r plugin.Resource) *plugin.DataRes { 1362 return (r.(*mqlLsblkEntry).GetName()).ToDataRes(types.String) 1363 }, 1364 "lsblk.entry.fstype": func(r plugin.Resource) *plugin.DataRes { 1365 return (r.(*mqlLsblkEntry).GetFstype()).ToDataRes(types.String) 1366 }, 1367 "lsblk.entry.label": func(r plugin.Resource) *plugin.DataRes { 1368 return (r.(*mqlLsblkEntry).GetLabel()).ToDataRes(types.String) 1369 }, 1370 "lsblk.entry.uuid": func(r plugin.Resource) *plugin.DataRes { 1371 return (r.(*mqlLsblkEntry).GetUuid()).ToDataRes(types.String) 1372 }, 1373 "lsblk.entry.mountpoints": func(r plugin.Resource) *plugin.DataRes { 1374 return (r.(*mqlLsblkEntry).GetMountpoints()).ToDataRes(types.Array(types.String)) 1375 }, 1376 "mount.list": func(r plugin.Resource) *plugin.DataRes { 1377 return (r.(*mqlMount).GetList()).ToDataRes(types.Array(types.Resource("mount.point"))) 1378 }, 1379 "mount.point.device": func(r plugin.Resource) *plugin.DataRes { 1380 return (r.(*mqlMountPoint).GetDevice()).ToDataRes(types.String) 1381 }, 1382 "mount.point.path": func(r plugin.Resource) *plugin.DataRes { 1383 return (r.(*mqlMountPoint).GetPath()).ToDataRes(types.String) 1384 }, 1385 "mount.point.fstype": func(r plugin.Resource) *plugin.DataRes { 1386 return (r.(*mqlMountPoint).GetFstype()).ToDataRes(types.String) 1387 }, 1388 "mount.point.options": func(r plugin.Resource) *plugin.DataRes { 1389 return (r.(*mqlMountPoint).GetOptions()).ToDataRes(types.Map(types.String, types.String)) 1390 }, 1391 "mount.point.mounted": func(r plugin.Resource) *plugin.DataRes { 1392 return (r.(*mqlMountPoint).GetMounted()).ToDataRes(types.Bool) 1393 }, 1394 "shadow.list": func(r plugin.Resource) *plugin.DataRes { 1395 return (r.(*mqlShadow).GetList()).ToDataRes(types.Array(types.Resource("shadow.entry"))) 1396 }, 1397 "shadow.entry.user": func(r plugin.Resource) *plugin.DataRes { 1398 return (r.(*mqlShadowEntry).GetUser()).ToDataRes(types.String) 1399 }, 1400 "shadow.entry.password": func(r plugin.Resource) *plugin.DataRes { 1401 return (r.(*mqlShadowEntry).GetPassword()).ToDataRes(types.String) 1402 }, 1403 "shadow.entry.lastchanged": func(r plugin.Resource) *plugin.DataRes { 1404 return (r.(*mqlShadowEntry).GetLastchanged()).ToDataRes(types.Time) 1405 }, 1406 "shadow.entry.mindays": func(r plugin.Resource) *plugin.DataRes { 1407 return (r.(*mqlShadowEntry).GetMindays()).ToDataRes(types.Int) 1408 }, 1409 "shadow.entry.maxdays": func(r plugin.Resource) *plugin.DataRes { 1410 return (r.(*mqlShadowEntry).GetMaxdays()).ToDataRes(types.Int) 1411 }, 1412 "shadow.entry.warndays": func(r plugin.Resource) *plugin.DataRes { 1413 return (r.(*mqlShadowEntry).GetWarndays()).ToDataRes(types.Int) 1414 }, 1415 "shadow.entry.inactivedays": func(r plugin.Resource) *plugin.DataRes { 1416 return (r.(*mqlShadowEntry).GetInactivedays()).ToDataRes(types.Int) 1417 }, 1418 "shadow.entry.expirydates": func(r plugin.Resource) *plugin.DataRes { 1419 return (r.(*mqlShadowEntry).GetExpirydates()).ToDataRes(types.String) 1420 }, 1421 "shadow.entry.reserved": func(r plugin.Resource) *plugin.DataRes { 1422 return (r.(*mqlShadowEntry).GetReserved()).ToDataRes(types.String) 1423 }, 1424 "yum.vars": func(r plugin.Resource) *plugin.DataRes { 1425 return (r.(*mqlYum).GetVars()).ToDataRes(types.Map(types.String, types.String)) 1426 }, 1427 "yum.repos": func(r plugin.Resource) *plugin.DataRes { 1428 return (r.(*mqlYum).GetRepos()).ToDataRes(types.Array(types.Resource("yum.repo"))) 1429 }, 1430 "yum.repo.id": func(r plugin.Resource) *plugin.DataRes { 1431 return (r.(*mqlYumRepo).GetId()).ToDataRes(types.String) 1432 }, 1433 "yum.repo.name": func(r plugin.Resource) *plugin.DataRes { 1434 return (r.(*mqlYumRepo).GetName()).ToDataRes(types.String) 1435 }, 1436 "yum.repo.status": func(r plugin.Resource) *plugin.DataRes { 1437 return (r.(*mqlYumRepo).GetStatus()).ToDataRes(types.String) 1438 }, 1439 "yum.repo.baseurl": func(r plugin.Resource) *plugin.DataRes { 1440 return (r.(*mqlYumRepo).GetBaseurl()).ToDataRes(types.Array(types.String)) 1441 }, 1442 "yum.repo.expire": func(r plugin.Resource) *plugin.DataRes { 1443 return (r.(*mqlYumRepo).GetExpire()).ToDataRes(types.String) 1444 }, 1445 "yum.repo.filename": func(r plugin.Resource) *plugin.DataRes { 1446 return (r.(*mqlYumRepo).GetFilename()).ToDataRes(types.String) 1447 }, 1448 "yum.repo.file": func(r plugin.Resource) *plugin.DataRes { 1449 return (r.(*mqlYumRepo).GetFile()).ToDataRes(types.Resource("file")) 1450 }, 1451 "yum.repo.revision": func(r plugin.Resource) *plugin.DataRes { 1452 return (r.(*mqlYumRepo).GetRevision()).ToDataRes(types.String) 1453 }, 1454 "yum.repo.pkgs": func(r plugin.Resource) *plugin.DataRes { 1455 return (r.(*mqlYumRepo).GetPkgs()).ToDataRes(types.String) 1456 }, 1457 "yum.repo.size": func(r plugin.Resource) *plugin.DataRes { 1458 return (r.(*mqlYumRepo).GetSize()).ToDataRes(types.String) 1459 }, 1460 "yum.repo.mirrors": func(r plugin.Resource) *plugin.DataRes { 1461 return (r.(*mqlYumRepo).GetMirrors()).ToDataRes(types.String) 1462 }, 1463 "yum.repo.enabled": func(r plugin.Resource) *plugin.DataRes { 1464 return (r.(*mqlYumRepo).GetEnabled()).ToDataRes(types.Bool) 1465 }, 1466 "registrykey.path": func(r plugin.Resource) *plugin.DataRes { 1467 return (r.(*mqlRegistrykey).GetPath()).ToDataRes(types.String) 1468 }, 1469 "registrykey.exists": func(r plugin.Resource) *plugin.DataRes { 1470 return (r.(*mqlRegistrykey).GetExists()).ToDataRes(types.Bool) 1471 }, 1472 "registrykey.properties": func(r plugin.Resource) *plugin.DataRes { 1473 return (r.(*mqlRegistrykey).GetProperties()).ToDataRes(types.Map(types.String, types.String)) 1474 }, 1475 "registrykey.items": func(r plugin.Resource) *plugin.DataRes { 1476 return (r.(*mqlRegistrykey).GetItems()).ToDataRes(types.Array(types.Resource("registrykey.property"))) 1477 }, 1478 "registrykey.children": func(r plugin.Resource) *plugin.DataRes { 1479 return (r.(*mqlRegistrykey).GetChildren()).ToDataRes(types.Array(types.String)) 1480 }, 1481 "registrykey.property.path": func(r plugin.Resource) *plugin.DataRes { 1482 return (r.(*mqlRegistrykeyProperty).GetPath()).ToDataRes(types.String) 1483 }, 1484 "registrykey.property.name": func(r plugin.Resource) *plugin.DataRes { 1485 return (r.(*mqlRegistrykeyProperty).GetName()).ToDataRes(types.String) 1486 }, 1487 "registrykey.property.exists": func(r plugin.Resource) *plugin.DataRes { 1488 return (r.(*mqlRegistrykeyProperty).GetExists()).ToDataRes(types.Bool) 1489 }, 1490 "registrykey.property.value": func(r plugin.Resource) *plugin.DataRes { 1491 return (r.(*mqlRegistrykeyProperty).GetValue()).ToDataRes(types.String) 1492 }, 1493 "registrykey.property.type": func(r plugin.Resource) *plugin.DataRes { 1494 return (r.(*mqlRegistrykeyProperty).GetType()).ToDataRes(types.String) 1495 }, 1496 "registrykey.property.data": func(r plugin.Resource) *plugin.DataRes { 1497 return (r.(*mqlRegistrykeyProperty).GetData()).ToDataRes(types.Dict) 1498 }, 1499 "container.image.reference": func(r plugin.Resource) *plugin.DataRes { 1500 return (r.(*mqlContainerImage).GetReference()).ToDataRes(types.String) 1501 }, 1502 "container.image.name": func(r plugin.Resource) *plugin.DataRes { 1503 return (r.(*mqlContainerImage).GetName()).ToDataRes(types.String) 1504 }, 1505 "container.image.identifier": func(r plugin.Resource) *plugin.DataRes { 1506 return (r.(*mqlContainerImage).GetIdentifier()).ToDataRes(types.String) 1507 }, 1508 "container.image.identifierType": func(r plugin.Resource) *plugin.DataRes { 1509 return (r.(*mqlContainerImage).GetIdentifierType()).ToDataRes(types.String) 1510 }, 1511 "container.image.repository": func(r plugin.Resource) *plugin.DataRes { 1512 return (r.(*mqlContainerImage).GetRepository()).ToDataRes(types.Resource("container.repository")) 1513 }, 1514 "container.repository.name": func(r plugin.Resource) *plugin.DataRes { 1515 return (r.(*mqlContainerRepository).GetName()).ToDataRes(types.String) 1516 }, 1517 "container.repository.scheme": func(r plugin.Resource) *plugin.DataRes { 1518 return (r.(*mqlContainerRepository).GetScheme()).ToDataRes(types.String) 1519 }, 1520 "container.repository.fullName": func(r plugin.Resource) *plugin.DataRes { 1521 return (r.(*mqlContainerRepository).GetFullName()).ToDataRes(types.String) 1522 }, 1523 "container.repository.registry": func(r plugin.Resource) *plugin.DataRes { 1524 return (r.(*mqlContainerRepository).GetRegistry()).ToDataRes(types.String) 1525 }, 1526 "kubelet.configFile": func(r plugin.Resource) *plugin.DataRes { 1527 return (r.(*mqlKubelet).GetConfigFile()).ToDataRes(types.Resource("file")) 1528 }, 1529 "kubelet.process": func(r plugin.Resource) *plugin.DataRes { 1530 return (r.(*mqlKubelet).GetProcess()).ToDataRes(types.Resource("process")) 1531 }, 1532 "kubelet.configuration": func(r plugin.Resource) *plugin.DataRes { 1533 return (r.(*mqlKubelet).GetConfiguration()).ToDataRes(types.Dict) 1534 }, 1535 "python.path": func(r plugin.Resource) *plugin.DataRes { 1536 return (r.(*mqlPython).GetPath()).ToDataRes(types.String) 1537 }, 1538 "python.packages": func(r plugin.Resource) *plugin.DataRes { 1539 return (r.(*mqlPython).GetPackages()).ToDataRes(types.Array(types.Resource("python.package"))) 1540 }, 1541 "python.toplevel": func(r plugin.Resource) *plugin.DataRes { 1542 return (r.(*mqlPython).GetToplevel()).ToDataRes(types.Array(types.Resource("python.package"))) 1543 }, 1544 "python.package.id": func(r plugin.Resource) *plugin.DataRes { 1545 return (r.(*mqlPythonPackage).GetId()).ToDataRes(types.String) 1546 }, 1547 "python.package.name": func(r plugin.Resource) *plugin.DataRes { 1548 return (r.(*mqlPythonPackage).GetName()).ToDataRes(types.String) 1549 }, 1550 "python.package.file": func(r plugin.Resource) *plugin.DataRes { 1551 return (r.(*mqlPythonPackage).GetFile()).ToDataRes(types.Resource("file")) 1552 }, 1553 "python.package.version": func(r plugin.Resource) *plugin.DataRes { 1554 return (r.(*mqlPythonPackage).GetVersion()).ToDataRes(types.String) 1555 }, 1556 "python.package.license": func(r plugin.Resource) *plugin.DataRes { 1557 return (r.(*mqlPythonPackage).GetLicense()).ToDataRes(types.String) 1558 }, 1559 "python.package.author": func(r plugin.Resource) *plugin.DataRes { 1560 return (r.(*mqlPythonPackage).GetAuthor()).ToDataRes(types.String) 1561 }, 1562 "python.package.summary": func(r plugin.Resource) *plugin.DataRes { 1563 return (r.(*mqlPythonPackage).GetSummary()).ToDataRes(types.String) 1564 }, 1565 "python.package.dependencies": func(r plugin.Resource) *plugin.DataRes { 1566 return (r.(*mqlPythonPackage).GetDependencies()).ToDataRes(types.Array(types.Resource("python.package"))) 1567 }, 1568 "macos.userPreferences": func(r plugin.Resource) *plugin.DataRes { 1569 return (r.(*mqlMacos).GetUserPreferences()).ToDataRes(types.Map(types.String, types.Dict)) 1570 }, 1571 "macos.userHostPreferences": func(r plugin.Resource) *plugin.DataRes { 1572 return (r.(*mqlMacos).GetUserHostPreferences()).ToDataRes(types.Map(types.String, types.Dict)) 1573 }, 1574 "macos.globalAccountPolicies": func(r plugin.Resource) *plugin.DataRes { 1575 return (r.(*mqlMacos).GetGlobalAccountPolicies()).ToDataRes(types.Dict) 1576 }, 1577 "macos.alf.allowDownloadSignedEnabled": func(r plugin.Resource) *plugin.DataRes { 1578 return (r.(*mqlMacosAlf).GetAllowDownloadSignedEnabled()).ToDataRes(types.Int) 1579 }, 1580 "macos.alf.allowSignedEnabled": func(r plugin.Resource) *plugin.DataRes { 1581 return (r.(*mqlMacosAlf).GetAllowSignedEnabled()).ToDataRes(types.Int) 1582 }, 1583 "macos.alf.firewallUnload": func(r plugin.Resource) *plugin.DataRes { 1584 return (r.(*mqlMacosAlf).GetFirewallUnload()).ToDataRes(types.Int) 1585 }, 1586 "macos.alf.globalState": func(r plugin.Resource) *plugin.DataRes { 1587 return (r.(*mqlMacosAlf).GetGlobalState()).ToDataRes(types.Int) 1588 }, 1589 "macos.alf.loggingEnabled": func(r plugin.Resource) *plugin.DataRes { 1590 return (r.(*mqlMacosAlf).GetLoggingEnabled()).ToDataRes(types.Int) 1591 }, 1592 "macos.alf.loggingOption": func(r plugin.Resource) *plugin.DataRes { 1593 return (r.(*mqlMacosAlf).GetLoggingOption()).ToDataRes(types.Int) 1594 }, 1595 "macos.alf.stealthEnabled": func(r plugin.Resource) *plugin.DataRes { 1596 return (r.(*mqlMacosAlf).GetStealthEnabled()).ToDataRes(types.Int) 1597 }, 1598 "macos.alf.version": func(r plugin.Resource) *plugin.DataRes { 1599 return (r.(*mqlMacosAlf).GetVersion()).ToDataRes(types.String) 1600 }, 1601 "macos.alf.exceptions": func(r plugin.Resource) *plugin.DataRes { 1602 return (r.(*mqlMacosAlf).GetExceptions()).ToDataRes(types.Array(types.Dict)) 1603 }, 1604 "macos.alf.explicitAuths": func(r plugin.Resource) *plugin.DataRes { 1605 return (r.(*mqlMacosAlf).GetExplicitAuths()).ToDataRes(types.Array(types.String)) 1606 }, 1607 "macos.alf.applications": func(r plugin.Resource) *plugin.DataRes { 1608 return (r.(*mqlMacosAlf).GetApplications()).ToDataRes(types.Array(types.Dict)) 1609 }, 1610 "macos.timemachine.preferences": func(r plugin.Resource) *plugin.DataRes { 1611 return (r.(*mqlMacosTimemachine).GetPreferences()).ToDataRes(types.Dict) 1612 }, 1613 "macos.systemsetup.date": func(r plugin.Resource) *plugin.DataRes { 1614 return (r.(*mqlMacosSystemsetup).GetDate()).ToDataRes(types.String) 1615 }, 1616 "macos.systemsetup.time": func(r plugin.Resource) *plugin.DataRes { 1617 return (r.(*mqlMacosSystemsetup).GetTime()).ToDataRes(types.String) 1618 }, 1619 "macos.systemsetup.timeZone": func(r plugin.Resource) *plugin.DataRes { 1620 return (r.(*mqlMacosSystemsetup).GetTimeZone()).ToDataRes(types.String) 1621 }, 1622 "macos.systemsetup.usingNetworkTime": func(r plugin.Resource) *plugin.DataRes { 1623 return (r.(*mqlMacosSystemsetup).GetUsingNetworkTime()).ToDataRes(types.String) 1624 }, 1625 "macos.systemsetup.networkTimeServer": func(r plugin.Resource) *plugin.DataRes { 1626 return (r.(*mqlMacosSystemsetup).GetNetworkTimeServer()).ToDataRes(types.String) 1627 }, 1628 "macos.systemsetup.sleep": func(r plugin.Resource) *plugin.DataRes { 1629 return (r.(*mqlMacosSystemsetup).GetSleep()).ToDataRes(types.Array(types.String)) 1630 }, 1631 "macos.systemsetup.displaySleep": func(r plugin.Resource) *plugin.DataRes { 1632 return (r.(*mqlMacosSystemsetup).GetDisplaySleep()).ToDataRes(types.String) 1633 }, 1634 "macos.systemsetup.harddiskSleep": func(r plugin.Resource) *plugin.DataRes { 1635 return (r.(*mqlMacosSystemsetup).GetHarddiskSleep()).ToDataRes(types.String) 1636 }, 1637 "macos.systemsetup.wakeOnModem": func(r plugin.Resource) *plugin.DataRes { 1638 return (r.(*mqlMacosSystemsetup).GetWakeOnModem()).ToDataRes(types.String) 1639 }, 1640 "macos.systemsetup.wakeOnNetworkAccess": func(r plugin.Resource) *plugin.DataRes { 1641 return (r.(*mqlMacosSystemsetup).GetWakeOnNetworkAccess()).ToDataRes(types.String) 1642 }, 1643 "macos.systemsetup.restartPowerFailure": func(r plugin.Resource) *plugin.DataRes { 1644 return (r.(*mqlMacosSystemsetup).GetRestartPowerFailure()).ToDataRes(types.String) 1645 }, 1646 "macos.systemsetup.restartFreeze": func(r plugin.Resource) *plugin.DataRes { 1647 return (r.(*mqlMacosSystemsetup).GetRestartFreeze()).ToDataRes(types.String) 1648 }, 1649 "macos.systemsetup.allowPowerButtonToSleepComputer": func(r plugin.Resource) *plugin.DataRes { 1650 return (r.(*mqlMacosSystemsetup).GetAllowPowerButtonToSleepComputer()).ToDataRes(types.String) 1651 }, 1652 "macos.systemsetup.remoteLogin": func(r plugin.Resource) *plugin.DataRes { 1653 return (r.(*mqlMacosSystemsetup).GetRemoteLogin()).ToDataRes(types.String) 1654 }, 1655 "macos.systemsetup.remoteAppleEvents": func(r plugin.Resource) *plugin.DataRes { 1656 return (r.(*mqlMacosSystemsetup).GetRemoteAppleEvents()).ToDataRes(types.String) 1657 }, 1658 "macos.systemsetup.computerName": func(r plugin.Resource) *plugin.DataRes { 1659 return (r.(*mqlMacosSystemsetup).GetComputerName()).ToDataRes(types.String) 1660 }, 1661 "macos.systemsetup.localSubnetName": func(r plugin.Resource) *plugin.DataRes { 1662 return (r.(*mqlMacosSystemsetup).GetLocalSubnetName()).ToDataRes(types.String) 1663 }, 1664 "macos.systemsetup.startupDisk": func(r plugin.Resource) *plugin.DataRes { 1665 return (r.(*mqlMacosSystemsetup).GetStartupDisk()).ToDataRes(types.String) 1666 }, 1667 "macos.systemsetup.waitForStartupAfterPowerFailure": func(r plugin.Resource) *plugin.DataRes { 1668 return (r.(*mqlMacosSystemsetup).GetWaitForStartupAfterPowerFailure()).ToDataRes(types.String) 1669 }, 1670 "macos.systemsetup.disableKeyboardWhenEnclosureLockIsEngaged": func(r plugin.Resource) *plugin.DataRes { 1671 return (r.(*mqlMacosSystemsetup).GetDisableKeyboardWhenEnclosureLockIsEngaged()).ToDataRes(types.String) 1672 }, 1673 "windows.computerInfo": func(r plugin.Resource) *plugin.DataRes { 1674 return (r.(*mqlWindows).GetComputerInfo()).ToDataRes(types.Dict) 1675 }, 1676 "windows.hotfixes": func(r plugin.Resource) *plugin.DataRes { 1677 return (r.(*mqlWindows).GetHotfixes()).ToDataRes(types.Array(types.Resource("windows.hotfix"))) 1678 }, 1679 "windows.features": func(r plugin.Resource) *plugin.DataRes { 1680 return (r.(*mqlWindows).GetFeatures()).ToDataRes(types.Array(types.Resource("windows.feature"))) 1681 }, 1682 "windows.hotfix.hotfixId": func(r plugin.Resource) *plugin.DataRes { 1683 return (r.(*mqlWindowsHotfix).GetHotfixId()).ToDataRes(types.String) 1684 }, 1685 "windows.hotfix.description": func(r plugin.Resource) *plugin.DataRes { 1686 return (r.(*mqlWindowsHotfix).GetDescription()).ToDataRes(types.String) 1687 }, 1688 "windows.hotfix.caption": func(r plugin.Resource) *plugin.DataRes { 1689 return (r.(*mqlWindowsHotfix).GetCaption()).ToDataRes(types.String) 1690 }, 1691 "windows.hotfix.installedOn": func(r plugin.Resource) *plugin.DataRes { 1692 return (r.(*mqlWindowsHotfix).GetInstalledOn()).ToDataRes(types.Time) 1693 }, 1694 "windows.hotfix.installedBy": func(r plugin.Resource) *plugin.DataRes { 1695 return (r.(*mqlWindowsHotfix).GetInstalledBy()).ToDataRes(types.String) 1696 }, 1697 "windows.feature.path": func(r plugin.Resource) *plugin.DataRes { 1698 return (r.(*mqlWindowsFeature).GetPath()).ToDataRes(types.String) 1699 }, 1700 "windows.feature.name": func(r plugin.Resource) *plugin.DataRes { 1701 return (r.(*mqlWindowsFeature).GetName()).ToDataRes(types.String) 1702 }, 1703 "windows.feature.displayName": func(r plugin.Resource) *plugin.DataRes { 1704 return (r.(*mqlWindowsFeature).GetDisplayName()).ToDataRes(types.String) 1705 }, 1706 "windows.feature.description": func(r plugin.Resource) *plugin.DataRes { 1707 return (r.(*mqlWindowsFeature).GetDescription()).ToDataRes(types.String) 1708 }, 1709 "windows.feature.installed": func(r plugin.Resource) *plugin.DataRes { 1710 return (r.(*mqlWindowsFeature).GetInstalled()).ToDataRes(types.Bool) 1711 }, 1712 "windows.feature.installState": func(r plugin.Resource) *plugin.DataRes { 1713 return (r.(*mqlWindowsFeature).GetInstallState()).ToDataRes(types.Int) 1714 }, 1715 "windows.firewall.settings": func(r plugin.Resource) *plugin.DataRes { 1716 return (r.(*mqlWindowsFirewall).GetSettings()).ToDataRes(types.Dict) 1717 }, 1718 "windows.firewall.profiles": func(r plugin.Resource) *plugin.DataRes { 1719 return (r.(*mqlWindowsFirewall).GetProfiles()).ToDataRes(types.Array(types.Resource("windows.firewall.profile"))) 1720 }, 1721 "windows.firewall.rules": func(r plugin.Resource) *plugin.DataRes { 1722 return (r.(*mqlWindowsFirewall).GetRules()).ToDataRes(types.Array(types.Resource("windows.firewall.rule"))) 1723 }, 1724 "windows.firewall.profile.instanceID": func(r plugin.Resource) *plugin.DataRes { 1725 return (r.(*mqlWindowsFirewallProfile).GetInstanceID()).ToDataRes(types.String) 1726 }, 1727 "windows.firewall.profile.name": func(r plugin.Resource) *plugin.DataRes { 1728 return (r.(*mqlWindowsFirewallProfile).GetName()).ToDataRes(types.String) 1729 }, 1730 "windows.firewall.profile.enabled": func(r plugin.Resource) *plugin.DataRes { 1731 return (r.(*mqlWindowsFirewallProfile).GetEnabled()).ToDataRes(types.Int) 1732 }, 1733 "windows.firewall.profile.defaultInboundAction": func(r plugin.Resource) *plugin.DataRes { 1734 return (r.(*mqlWindowsFirewallProfile).GetDefaultInboundAction()).ToDataRes(types.Int) 1735 }, 1736 "windows.firewall.profile.defaultOutboundAction": func(r plugin.Resource) *plugin.DataRes { 1737 return (r.(*mqlWindowsFirewallProfile).GetDefaultOutboundAction()).ToDataRes(types.Int) 1738 }, 1739 "windows.firewall.profile.allowInboundRules": func(r plugin.Resource) *plugin.DataRes { 1740 return (r.(*mqlWindowsFirewallProfile).GetAllowInboundRules()).ToDataRes(types.Int) 1741 }, 1742 "windows.firewall.profile.allowLocalFirewallRules": func(r plugin.Resource) *plugin.DataRes { 1743 return (r.(*mqlWindowsFirewallProfile).GetAllowLocalFirewallRules()).ToDataRes(types.Int) 1744 }, 1745 "windows.firewall.profile.allowLocalIPsecRules": func(r plugin.Resource) *plugin.DataRes { 1746 return (r.(*mqlWindowsFirewallProfile).GetAllowLocalIPsecRules()).ToDataRes(types.Int) 1747 }, 1748 "windows.firewall.profile.allowUserApps": func(r plugin.Resource) *plugin.DataRes { 1749 return (r.(*mqlWindowsFirewallProfile).GetAllowUserApps()).ToDataRes(types.Int) 1750 }, 1751 "windows.firewall.profile.allowUserPorts": func(r plugin.Resource) *plugin.DataRes { 1752 return (r.(*mqlWindowsFirewallProfile).GetAllowUserPorts()).ToDataRes(types.Int) 1753 }, 1754 "windows.firewall.profile.allowUnicastResponseToMulticast": func(r plugin.Resource) *plugin.DataRes { 1755 return (r.(*mqlWindowsFirewallProfile).GetAllowUnicastResponseToMulticast()).ToDataRes(types.Int) 1756 }, 1757 "windows.firewall.profile.notifyOnListen": func(r plugin.Resource) *plugin.DataRes { 1758 return (r.(*mqlWindowsFirewallProfile).GetNotifyOnListen()).ToDataRes(types.Int) 1759 }, 1760 "windows.firewall.profile.enableStealthModeForIPsec": func(r plugin.Resource) *plugin.DataRes { 1761 return (r.(*mqlWindowsFirewallProfile).GetEnableStealthModeForIPsec()).ToDataRes(types.Int) 1762 }, 1763 "windows.firewall.profile.logMaxSizeKilobytes": func(r plugin.Resource) *plugin.DataRes { 1764 return (r.(*mqlWindowsFirewallProfile).GetLogMaxSizeKilobytes()).ToDataRes(types.Int) 1765 }, 1766 "windows.firewall.profile.logAllowed": func(r plugin.Resource) *plugin.DataRes { 1767 return (r.(*mqlWindowsFirewallProfile).GetLogAllowed()).ToDataRes(types.Int) 1768 }, 1769 "windows.firewall.profile.logBlocked": func(r plugin.Resource) *plugin.DataRes { 1770 return (r.(*mqlWindowsFirewallProfile).GetLogBlocked()).ToDataRes(types.Int) 1771 }, 1772 "windows.firewall.profile.logIgnored": func(r plugin.Resource) *plugin.DataRes { 1773 return (r.(*mqlWindowsFirewallProfile).GetLogIgnored()).ToDataRes(types.Int) 1774 }, 1775 "windows.firewall.profile.logFileName": func(r plugin.Resource) *plugin.DataRes { 1776 return (r.(*mqlWindowsFirewallProfile).GetLogFileName()).ToDataRes(types.String) 1777 }, 1778 "windows.firewall.rule.instanceID": func(r plugin.Resource) *plugin.DataRes { 1779 return (r.(*mqlWindowsFirewallRule).GetInstanceID()).ToDataRes(types.String) 1780 }, 1781 "windows.firewall.rule.name": func(r plugin.Resource) *plugin.DataRes { 1782 return (r.(*mqlWindowsFirewallRule).GetName()).ToDataRes(types.String) 1783 }, 1784 "windows.firewall.rule.displayName": func(r plugin.Resource) *plugin.DataRes { 1785 return (r.(*mqlWindowsFirewallRule).GetDisplayName()).ToDataRes(types.String) 1786 }, 1787 "windows.firewall.rule.description": func(r plugin.Resource) *plugin.DataRes { 1788 return (r.(*mqlWindowsFirewallRule).GetDescription()).ToDataRes(types.String) 1789 }, 1790 "windows.firewall.rule.displayGroup": func(r plugin.Resource) *plugin.DataRes { 1791 return (r.(*mqlWindowsFirewallRule).GetDisplayGroup()).ToDataRes(types.String) 1792 }, 1793 "windows.firewall.rule.enabled": func(r plugin.Resource) *plugin.DataRes { 1794 return (r.(*mqlWindowsFirewallRule).GetEnabled()).ToDataRes(types.Int) 1795 }, 1796 "windows.firewall.rule.direction": func(r plugin.Resource) *plugin.DataRes { 1797 return (r.(*mqlWindowsFirewallRule).GetDirection()).ToDataRes(types.Int) 1798 }, 1799 "windows.firewall.rule.action": func(r plugin.Resource) *plugin.DataRes { 1800 return (r.(*mqlWindowsFirewallRule).GetAction()).ToDataRes(types.Int) 1801 }, 1802 "windows.firewall.rule.edgeTraversalPolicy": func(r plugin.Resource) *plugin.DataRes { 1803 return (r.(*mqlWindowsFirewallRule).GetEdgeTraversalPolicy()).ToDataRes(types.Int) 1804 }, 1805 "windows.firewall.rule.looseSourceMapping": func(r plugin.Resource) *plugin.DataRes { 1806 return (r.(*mqlWindowsFirewallRule).GetLooseSourceMapping()).ToDataRes(types.Bool) 1807 }, 1808 "windows.firewall.rule.localOnlyMapping": func(r plugin.Resource) *plugin.DataRes { 1809 return (r.(*mqlWindowsFirewallRule).GetLocalOnlyMapping()).ToDataRes(types.Bool) 1810 }, 1811 "windows.firewall.rule.primaryStatus": func(r plugin.Resource) *plugin.DataRes { 1812 return (r.(*mqlWindowsFirewallRule).GetPrimaryStatus()).ToDataRes(types.Int) 1813 }, 1814 "windows.firewall.rule.status": func(r plugin.Resource) *plugin.DataRes { 1815 return (r.(*mqlWindowsFirewallRule).GetStatus()).ToDataRes(types.String) 1816 }, 1817 "windows.firewall.rule.enforcementStatus": func(r plugin.Resource) *plugin.DataRes { 1818 return (r.(*mqlWindowsFirewallRule).GetEnforcementStatus()).ToDataRes(types.String) 1819 }, 1820 "windows.firewall.rule.policyStoreSource": func(r plugin.Resource) *plugin.DataRes { 1821 return (r.(*mqlWindowsFirewallRule).GetPolicyStoreSource()).ToDataRes(types.String) 1822 }, 1823 "windows.firewall.rule.policyStoreSourceType": func(r plugin.Resource) *plugin.DataRes { 1824 return (r.(*mqlWindowsFirewallRule).GetPolicyStoreSourceType()).ToDataRes(types.Int) 1825 }, 1826 "windows.bitlocker.volumes": func(r plugin.Resource) *plugin.DataRes { 1827 return (r.(*mqlWindowsBitlocker).GetVolumes()).ToDataRes(types.Array(types.Resource("windows.bitlocker.volume"))) 1828 }, 1829 "windows.bitlocker.volume.deviceID": func(r plugin.Resource) *plugin.DataRes { 1830 return (r.(*mqlWindowsBitlockerVolume).GetDeviceID()).ToDataRes(types.String) 1831 }, 1832 "windows.bitlocker.volume.driveLetter": func(r plugin.Resource) *plugin.DataRes { 1833 return (r.(*mqlWindowsBitlockerVolume).GetDriveLetter()).ToDataRes(types.String) 1834 }, 1835 "windows.bitlocker.volume.conversionStatus": func(r plugin.Resource) *plugin.DataRes { 1836 return (r.(*mqlWindowsBitlockerVolume).GetConversionStatus()).ToDataRes(types.Dict) 1837 }, 1838 "windows.bitlocker.volume.encryptionMethod": func(r plugin.Resource) *plugin.DataRes { 1839 return (r.(*mqlWindowsBitlockerVolume).GetEncryptionMethod()).ToDataRes(types.Dict) 1840 }, 1841 "windows.bitlocker.volume.lockStatus": func(r plugin.Resource) *plugin.DataRes { 1842 return (r.(*mqlWindowsBitlockerVolume).GetLockStatus()).ToDataRes(types.Int) 1843 }, 1844 "windows.bitlocker.volume.persistentVolumeID": func(r plugin.Resource) *plugin.DataRes { 1845 return (r.(*mqlWindowsBitlockerVolume).GetPersistentVolumeID()).ToDataRes(types.String) 1846 }, 1847 "windows.bitlocker.volume.protectionStatus": func(r plugin.Resource) *plugin.DataRes { 1848 return (r.(*mqlWindowsBitlockerVolume).GetProtectionStatus()).ToDataRes(types.Dict) 1849 }, 1850 "windows.bitlocker.volume.version": func(r plugin.Resource) *plugin.DataRes { 1851 return (r.(*mqlWindowsBitlockerVolume).GetVersion()).ToDataRes(types.Dict) 1852 }, 1853 "windows.security.products": func(r plugin.Resource) *plugin.DataRes { 1854 return (r.(*mqlWindowsSecurity).GetProducts()).ToDataRes(types.Array(types.Resource("windows.security.product"))) 1855 }, 1856 "windows.security.product.type": func(r plugin.Resource) *plugin.DataRes { 1857 return (r.(*mqlWindowsSecurityProduct).GetType()).ToDataRes(types.String) 1858 }, 1859 "windows.security.product.guid": func(r plugin.Resource) *plugin.DataRes { 1860 return (r.(*mqlWindowsSecurityProduct).GetGuid()).ToDataRes(types.String) 1861 }, 1862 "windows.security.product.name": func(r plugin.Resource) *plugin.DataRes { 1863 return (r.(*mqlWindowsSecurityProduct).GetName()).ToDataRes(types.String) 1864 }, 1865 "windows.security.product.state": func(r plugin.Resource) *plugin.DataRes { 1866 return (r.(*mqlWindowsSecurityProduct).GetState()).ToDataRes(types.Int) 1867 }, 1868 "windows.security.product.productState": func(r plugin.Resource) *plugin.DataRes { 1869 return (r.(*mqlWindowsSecurityProduct).GetProductState()).ToDataRes(types.String) 1870 }, 1871 "windows.security.product.signatureState": func(r plugin.Resource) *plugin.DataRes { 1872 return (r.(*mqlWindowsSecurityProduct).GetSignatureState()).ToDataRes(types.String) 1873 }, 1874 "windows.security.product.timestamp": func(r plugin.Resource) *plugin.DataRes { 1875 return (r.(*mqlWindowsSecurityProduct).GetTimestamp()).ToDataRes(types.Time) 1876 }, 1877 "windows.security.health.firewall": func(r plugin.Resource) *plugin.DataRes { 1878 return (r.(*mqlWindowsSecurityHealth).GetFirewall()).ToDataRes(types.Dict) 1879 }, 1880 "windows.security.health.autoUpdate": func(r plugin.Resource) *plugin.DataRes { 1881 return (r.(*mqlWindowsSecurityHealth).GetAutoUpdate()).ToDataRes(types.Dict) 1882 }, 1883 "windows.security.health.antiVirus": func(r plugin.Resource) *plugin.DataRes { 1884 return (r.(*mqlWindowsSecurityHealth).GetAntiVirus()).ToDataRes(types.Dict) 1885 }, 1886 "windows.security.health.antiSpyware": func(r plugin.Resource) *plugin.DataRes { 1887 return (r.(*mqlWindowsSecurityHealth).GetAntiSpyware()).ToDataRes(types.Dict) 1888 }, 1889 "windows.security.health.internetSettings": func(r plugin.Resource) *plugin.DataRes { 1890 return (r.(*mqlWindowsSecurityHealth).GetInternetSettings()).ToDataRes(types.Dict) 1891 }, 1892 "windows.security.health.uac": func(r plugin.Resource) *plugin.DataRes { 1893 return (r.(*mqlWindowsSecurityHealth).GetUac()).ToDataRes(types.Dict) 1894 }, 1895 "windows.security.health.securityCenterService": func(r plugin.Resource) *plugin.DataRes { 1896 return (r.(*mqlWindowsSecurityHealth).GetSecurityCenterService()).ToDataRes(types.Dict) 1897 }, 1898 } 1899 1900 func GetData(resource plugin.Resource, field string, args map[string]*llx.RawData) *plugin.DataRes { 1901 f, ok := getDataFields[resource.MqlName()+"."+field] 1902 if !ok { 1903 return &plugin.DataRes{Error: "cannot find '" + field + "' in resource '" + resource.MqlName() + "'"} 1904 } 1905 1906 return f(resource) 1907 } 1908 1909 var setDataFields = map[string]func(r plugin.Resource, v *llx.RawData) bool { 1910 "asset.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1911 r.(*mqlAsset).__id, ok = v.Value.(string) 1912 return 1913 }, 1914 "asset.vulnerabilityReport": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1915 r.(*mqlAsset).VulnerabilityReport, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 1916 return 1917 }, 1918 "asset.eol.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1919 r.(*mqlAssetEol).__id, ok = v.Value.(string) 1920 return 1921 }, 1922 "asset.eol.docsUrl": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1923 r.(*mqlAssetEol).DocsUrl, ok = plugin.RawToTValue[string](v.Value, v.Error) 1924 return 1925 }, 1926 "asset.eol.productUrl": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1927 r.(*mqlAssetEol).ProductUrl, ok = plugin.RawToTValue[string](v.Value, v.Error) 1928 return 1929 }, 1930 "asset.eol.date": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1931 r.(*mqlAssetEol).Date, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) 1932 return 1933 }, 1934 "mondoo.eol.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1935 r.(*mqlMondooEol).__id, ok = v.Value.(string) 1936 return 1937 }, 1938 "mondoo.eol.product": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1939 r.(*mqlMondooEol).Product, ok = plugin.RawToTValue[string](v.Value, v.Error) 1940 return 1941 }, 1942 "mondoo.eol.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1943 r.(*mqlMondooEol).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) 1944 return 1945 }, 1946 "mondoo.eol.date": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1947 r.(*mqlMondooEol).Date, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) 1948 return 1949 }, 1950 "platform.eol.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1951 r.(*mqlPlatformEol).__id, ok = v.Value.(string) 1952 return 1953 }, 1954 "platform.eol.docsUrl": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1955 r.(*mqlPlatformEol).DocsUrl, ok = plugin.RawToTValue[string](v.Value, v.Error) 1956 return 1957 }, 1958 "platform.eol.productUrl": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1959 r.(*mqlPlatformEol).ProductUrl, ok = plugin.RawToTValue[string](v.Value, v.Error) 1960 return 1961 }, 1962 "platform.eol.date": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1963 r.(*mqlPlatformEol).Date, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) 1964 return 1965 }, 1966 "platform.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1967 r.(*mqlPlatform).__id, ok = v.Value.(string) 1968 return 1969 }, 1970 "platform.vulnerabilityReport": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1971 r.(*mqlPlatform).VulnerabilityReport, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 1972 return 1973 }, 1974 "platform.advisories.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1975 r.(*mqlPlatformAdvisories).__id, ok = v.Value.(string) 1976 return 1977 }, 1978 "platform.advisories.cvss": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1979 r.(*mqlPlatformAdvisories).Cvss, ok = plugin.RawToTValue[*mqlAuditCvss](v.Value, v.Error) 1980 return 1981 }, 1982 "platform.advisories.stats": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1983 r.(*mqlPlatformAdvisories).Stats, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 1984 return 1985 }, 1986 "platform.advisories.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1987 r.(*mqlPlatformAdvisories).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 1988 return 1989 }, 1990 "platform.cves.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1991 r.(*mqlPlatformCves).__id, ok = v.Value.(string) 1992 return 1993 }, 1994 "platform.cves.cvss": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1995 r.(*mqlPlatformCves).Cvss, ok = plugin.RawToTValue[*mqlAuditCvss](v.Value, v.Error) 1996 return 1997 }, 1998 "platform.cves.stats": func(r plugin.Resource, v *llx.RawData) (ok bool) { 1999 r.(*mqlPlatformCves).Stats, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 2000 return 2001 }, 2002 "platform.cves.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2003 r.(*mqlPlatformCves).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2004 return 2005 }, 2006 "audit.cvss.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2007 r.(*mqlAuditCvss).__id, ok = v.Value.(string) 2008 return 2009 }, 2010 "audit.cvss.score": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2011 r.(*mqlAuditCvss).Score, ok = plugin.RawToTValue[float64](v.Value, v.Error) 2012 return 2013 }, 2014 "audit.cvss.vector": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2015 r.(*mqlAuditCvss).Vector, ok = plugin.RawToTValue[string](v.Value, v.Error) 2016 return 2017 }, 2018 "audit.advisory.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2019 r.(*mqlAuditAdvisory).__id, ok = v.Value.(string) 2020 return 2021 }, 2022 "audit.advisory.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2023 r.(*mqlAuditAdvisory).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) 2024 return 2025 }, 2026 "audit.advisory.mrn": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2027 r.(*mqlAuditAdvisory).Mrn, ok = plugin.RawToTValue[string](v.Value, v.Error) 2028 return 2029 }, 2030 "audit.advisory.title": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2031 r.(*mqlAuditAdvisory).Title, ok = plugin.RawToTValue[string](v.Value, v.Error) 2032 return 2033 }, 2034 "audit.advisory.description": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2035 r.(*mqlAuditAdvisory).Description, ok = plugin.RawToTValue[string](v.Value, v.Error) 2036 return 2037 }, 2038 "audit.advisory.published": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2039 r.(*mqlAuditAdvisory).Published, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) 2040 return 2041 }, 2042 "audit.advisory.modified": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2043 r.(*mqlAuditAdvisory).Modified, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) 2044 return 2045 }, 2046 "audit.advisory.worstScore": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2047 r.(*mqlAuditAdvisory).WorstScore, ok = plugin.RawToTValue[*mqlAuditCvss](v.Value, v.Error) 2048 return 2049 }, 2050 "audit.cve.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2051 r.(*mqlAuditCve).__id, ok = v.Value.(string) 2052 return 2053 }, 2054 "audit.cve.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2055 r.(*mqlAuditCve).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) 2056 return 2057 }, 2058 "audit.cve.mrn": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2059 r.(*mqlAuditCve).Mrn, ok = plugin.RawToTValue[string](v.Value, v.Error) 2060 return 2061 }, 2062 "audit.cve.state": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2063 r.(*mqlAuditCve).State, ok = plugin.RawToTValue[string](v.Value, v.Error) 2064 return 2065 }, 2066 "audit.cve.summary": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2067 r.(*mqlAuditCve).Summary, ok = plugin.RawToTValue[string](v.Value, v.Error) 2068 return 2069 }, 2070 "audit.cve.unscored": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2071 r.(*mqlAuditCve).Unscored, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2072 return 2073 }, 2074 "audit.cve.published": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2075 r.(*mqlAuditCve).Published, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) 2076 return 2077 }, 2078 "audit.cve.modified": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2079 r.(*mqlAuditCve).Modified, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) 2080 return 2081 }, 2082 "audit.cve.worstScore": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2083 r.(*mqlAuditCve).WorstScore, ok = plugin.RawToTValue[*mqlAuditCvss](v.Value, v.Error) 2084 return 2085 }, 2086 "machine.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2087 r.(*mqlMachine).__id, ok = v.Value.(string) 2088 return 2089 }, 2090 "machine.bios.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2091 r.(*mqlMachineBios).__id, ok = v.Value.(string) 2092 return 2093 }, 2094 "machine.bios.vendor": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2095 r.(*mqlMachineBios).Vendor, ok = plugin.RawToTValue[string](v.Value, v.Error) 2096 return 2097 }, 2098 "machine.bios.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2099 r.(*mqlMachineBios).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) 2100 return 2101 }, 2102 "machine.bios.releaseDate": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2103 r.(*mqlMachineBios).ReleaseDate, ok = plugin.RawToTValue[string](v.Value, v.Error) 2104 return 2105 }, 2106 "machine.system.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2107 r.(*mqlMachineSystem).__id, ok = v.Value.(string) 2108 return 2109 }, 2110 "machine.system.manufacturer": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2111 r.(*mqlMachineSystem).Manufacturer, ok = plugin.RawToTValue[string](v.Value, v.Error) 2112 return 2113 }, 2114 "machine.system.product": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2115 r.(*mqlMachineSystem).Product, ok = plugin.RawToTValue[string](v.Value, v.Error) 2116 return 2117 }, 2118 "machine.system.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2119 r.(*mqlMachineSystem).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) 2120 return 2121 }, 2122 "machine.system.serial": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2123 r.(*mqlMachineSystem).Serial, ok = plugin.RawToTValue[string](v.Value, v.Error) 2124 return 2125 }, 2126 "machine.system.uuid": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2127 r.(*mqlMachineSystem).Uuid, ok = plugin.RawToTValue[string](v.Value, v.Error) 2128 return 2129 }, 2130 "machine.system.sku": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2131 r.(*mqlMachineSystem).Sku, ok = plugin.RawToTValue[string](v.Value, v.Error) 2132 return 2133 }, 2134 "machine.system.family": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2135 r.(*mqlMachineSystem).Family, ok = plugin.RawToTValue[string](v.Value, v.Error) 2136 return 2137 }, 2138 "machine.baseboard.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2139 r.(*mqlMachineBaseboard).__id, ok = v.Value.(string) 2140 return 2141 }, 2142 "machine.baseboard.manufacturer": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2143 r.(*mqlMachineBaseboard).Manufacturer, ok = plugin.RawToTValue[string](v.Value, v.Error) 2144 return 2145 }, 2146 "machine.baseboard.product": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2147 r.(*mqlMachineBaseboard).Product, ok = plugin.RawToTValue[string](v.Value, v.Error) 2148 return 2149 }, 2150 "machine.baseboard.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2151 r.(*mqlMachineBaseboard).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) 2152 return 2153 }, 2154 "machine.baseboard.serial": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2155 r.(*mqlMachineBaseboard).Serial, ok = plugin.RawToTValue[string](v.Value, v.Error) 2156 return 2157 }, 2158 "machine.baseboard.assetTag": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2159 r.(*mqlMachineBaseboard).AssetTag, ok = plugin.RawToTValue[string](v.Value, v.Error) 2160 return 2161 }, 2162 "machine.chassis.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2163 r.(*mqlMachineChassis).__id, ok = v.Value.(string) 2164 return 2165 }, 2166 "machine.chassis.manufacturer": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2167 r.(*mqlMachineChassis).Manufacturer, ok = plugin.RawToTValue[string](v.Value, v.Error) 2168 return 2169 }, 2170 "machine.chassis.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2171 r.(*mqlMachineChassis).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) 2172 return 2173 }, 2174 "machine.chassis.serial": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2175 r.(*mqlMachineChassis).Serial, ok = plugin.RawToTValue[string](v.Value, v.Error) 2176 return 2177 }, 2178 "machine.chassis.assetTag": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2179 r.(*mqlMachineChassis).AssetTag, ok = plugin.RawToTValue[string](v.Value, v.Error) 2180 return 2181 }, 2182 "os.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2183 r.(*mqlOs).__id, ok = v.Value.(string) 2184 return 2185 }, 2186 "os.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2187 r.(*mqlOs).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 2188 return 2189 }, 2190 "os.env": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2191 r.(*mqlOs).Env, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 2192 return 2193 }, 2194 "os.path": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2195 r.(*mqlOs).Path, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2196 return 2197 }, 2198 "os.uptime": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2199 r.(*mqlOs).Uptime, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) 2200 return 2201 }, 2202 "os.updates": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2203 r.(*mqlOs).Updates, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2204 return 2205 }, 2206 "os.rebootpending": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2207 r.(*mqlOs).Rebootpending, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2208 return 2209 }, 2210 "os.hostname": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2211 r.(*mqlOs).Hostname, ok = plugin.RawToTValue[string](v.Value, v.Error) 2212 return 2213 }, 2214 "os.machineid": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2215 r.(*mqlOs).Machineid, ok = plugin.RawToTValue[string](v.Value, v.Error) 2216 return 2217 }, 2218 "os.update.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2219 r.(*mqlOsUpdate).__id, ok = v.Value.(string) 2220 return 2221 }, 2222 "os.update.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2223 r.(*mqlOsUpdate).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 2224 return 2225 }, 2226 "os.update.category": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2227 r.(*mqlOsUpdate).Category, ok = plugin.RawToTValue[string](v.Value, v.Error) 2228 return 2229 }, 2230 "os.update.severity": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2231 r.(*mqlOsUpdate).Severity, ok = plugin.RawToTValue[string](v.Value, v.Error) 2232 return 2233 }, 2234 "os.update.restart": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2235 r.(*mqlOsUpdate).Restart, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2236 return 2237 }, 2238 "os.update.format": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2239 r.(*mqlOsUpdate).Format, ok = plugin.RawToTValue[string](v.Value, v.Error) 2240 return 2241 }, 2242 "os.base.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2243 r.(*mqlOsBase).__id, ok = v.Value.(string) 2244 return 2245 }, 2246 "os.base.machine": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2247 r.(*mqlOsBase).Machine, ok = plugin.RawToTValue[*mqlMachine](v.Value, v.Error) 2248 return 2249 }, 2250 "os.base.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2251 r.(*mqlOsBase).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 2252 return 2253 }, 2254 "os.base.env": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2255 r.(*mqlOsBase).Env, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 2256 return 2257 }, 2258 "os.base.path": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2259 r.(*mqlOsBase).Path, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2260 return 2261 }, 2262 "os.base.uptime": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2263 r.(*mqlOsBase).Uptime, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) 2264 return 2265 }, 2266 "os.base.updates": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2267 r.(*mqlOsBase).Updates, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2268 return 2269 }, 2270 "os.base.rebootpending": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2271 r.(*mqlOsBase).Rebootpending, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2272 return 2273 }, 2274 "os.base.hostname": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2275 r.(*mqlOsBase).Hostname, ok = plugin.RawToTValue[string](v.Value, v.Error) 2276 return 2277 }, 2278 "os.base.groups": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2279 r.(*mqlOsBase).Groups, ok = plugin.RawToTValue[*mqlGroups](v.Value, v.Error) 2280 return 2281 }, 2282 "os.base.users": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2283 r.(*mqlOsBase).Users, ok = plugin.RawToTValue[*mqlUsers](v.Value, v.Error) 2284 return 2285 }, 2286 "os.unix.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2287 r.(*mqlOsUnix).__id, ok = v.Value.(string) 2288 return 2289 }, 2290 "os.unix.base": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2291 r.(*mqlOsUnix).Base, ok = plugin.RawToTValue[*mqlOsBase](v.Value, v.Error) 2292 return 2293 }, 2294 "os.linux.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2295 r.(*mqlOsLinux).__id, ok = v.Value.(string) 2296 return 2297 }, 2298 "os.linux.unix": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2299 r.(*mqlOsLinux).Unix, ok = plugin.RawToTValue[*mqlOsUnix](v.Value, v.Error) 2300 return 2301 }, 2302 "os.linux.iptables": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2303 r.(*mqlOsLinux).Iptables, ok = plugin.RawToTValue[*mqlIptables](v.Value, v.Error) 2304 return 2305 }, 2306 "os.linux.ip6tables": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2307 r.(*mqlOsLinux).Ip6tables, ok = plugin.RawToTValue[*mqlIp6tables](v.Value, v.Error) 2308 return 2309 }, 2310 "os.rootCertificates.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2311 r.(*mqlOsRootCertificates).__id, ok = v.Value.(string) 2312 return 2313 }, 2314 "os.rootCertificates.files": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2315 r.(*mqlOsRootCertificates).Files, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2316 return 2317 }, 2318 "os.rootCertificates.content": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2319 r.(*mqlOsRootCertificates).Content, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2320 return 2321 }, 2322 "os.rootCertificates.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2323 r.(*mqlOsRootCertificates).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2324 return 2325 }, 2326 "command.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2327 r.(*mqlCommand).__id, ok = v.Value.(string) 2328 return 2329 }, 2330 "command.command": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2331 r.(*mqlCommand).Command, ok = plugin.RawToTValue[string](v.Value, v.Error) 2332 return 2333 }, 2334 "command.stdout": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2335 r.(*mqlCommand).Stdout, ok = plugin.RawToTValue[string](v.Value, v.Error) 2336 return 2337 }, 2338 "command.stderr": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2339 r.(*mqlCommand).Stderr, ok = plugin.RawToTValue[string](v.Value, v.Error) 2340 return 2341 }, 2342 "command.exitcode": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2343 r.(*mqlCommand).Exitcode, ok = plugin.RawToTValue[int64](v.Value, v.Error) 2344 return 2345 }, 2346 "powershell.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2347 r.(*mqlPowershell).__id, ok = v.Value.(string) 2348 return 2349 }, 2350 "powershell.script": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2351 r.(*mqlPowershell).Script, ok = plugin.RawToTValue[string](v.Value, v.Error) 2352 return 2353 }, 2354 "powershell.stdout": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2355 r.(*mqlPowershell).Stdout, ok = plugin.RawToTValue[string](v.Value, v.Error) 2356 return 2357 }, 2358 "powershell.stderr": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2359 r.(*mqlPowershell).Stderr, ok = plugin.RawToTValue[string](v.Value, v.Error) 2360 return 2361 }, 2362 "powershell.exitcode": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2363 r.(*mqlPowershell).Exitcode, ok = plugin.RawToTValue[int64](v.Value, v.Error) 2364 return 2365 }, 2366 "file.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2367 r.(*mqlFile).__id, ok = v.Value.(string) 2368 return 2369 }, 2370 "file.path": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2371 r.(*mqlFile).Path, ok = plugin.RawToTValue[string](v.Value, v.Error) 2372 return 2373 }, 2374 "file.basename": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2375 r.(*mqlFile).Basename, ok = plugin.RawToTValue[string](v.Value, v.Error) 2376 return 2377 }, 2378 "file.dirname": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2379 r.(*mqlFile).Dirname, ok = plugin.RawToTValue[string](v.Value, v.Error) 2380 return 2381 }, 2382 "file.content": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2383 r.(*mqlFile).Content, ok = plugin.RawToTValue[string](v.Value, v.Error) 2384 return 2385 }, 2386 "file.exists": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2387 r.(*mqlFile).Exists, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2388 return 2389 }, 2390 "file.permissions": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2391 r.(*mqlFile).Permissions, ok = plugin.RawToTValue[*mqlFilePermissions](v.Value, v.Error) 2392 return 2393 }, 2394 "file.size": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2395 r.(*mqlFile).Size, ok = plugin.RawToTValue[int64](v.Value, v.Error) 2396 return 2397 }, 2398 "file.user": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2399 r.(*mqlFile).User, ok = plugin.RawToTValue[*mqlUser](v.Value, v.Error) 2400 return 2401 }, 2402 "file.group": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2403 r.(*mqlFile).Group, ok = plugin.RawToTValue[*mqlGroup](v.Value, v.Error) 2404 return 2405 }, 2406 "file.empty": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2407 r.(*mqlFile).Empty, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2408 return 2409 }, 2410 "file.permissions.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2411 r.(*mqlFilePermissions).__id, ok = v.Value.(string) 2412 return 2413 }, 2414 "file.permissions.mode": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2415 r.(*mqlFilePermissions).Mode, ok = plugin.RawToTValue[int64](v.Value, v.Error) 2416 return 2417 }, 2418 "file.permissions.user_readable": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2419 r.(*mqlFilePermissions).User_readable, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2420 return 2421 }, 2422 "file.permissions.user_writeable": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2423 r.(*mqlFilePermissions).User_writeable, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2424 return 2425 }, 2426 "file.permissions.user_executable": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2427 r.(*mqlFilePermissions).User_executable, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2428 return 2429 }, 2430 "file.permissions.group_readable": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2431 r.(*mqlFilePermissions).Group_readable, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2432 return 2433 }, 2434 "file.permissions.group_writeable": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2435 r.(*mqlFilePermissions).Group_writeable, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2436 return 2437 }, 2438 "file.permissions.group_executable": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2439 r.(*mqlFilePermissions).Group_executable, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2440 return 2441 }, 2442 "file.permissions.other_readable": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2443 r.(*mqlFilePermissions).Other_readable, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2444 return 2445 }, 2446 "file.permissions.other_writeable": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2447 r.(*mqlFilePermissions).Other_writeable, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2448 return 2449 }, 2450 "file.permissions.other_executable": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2451 r.(*mqlFilePermissions).Other_executable, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2452 return 2453 }, 2454 "file.permissions.suid": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2455 r.(*mqlFilePermissions).Suid, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2456 return 2457 }, 2458 "file.permissions.sgid": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2459 r.(*mqlFilePermissions).Sgid, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2460 return 2461 }, 2462 "file.permissions.sticky": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2463 r.(*mqlFilePermissions).Sticky, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2464 return 2465 }, 2466 "file.permissions.isDirectory": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2467 r.(*mqlFilePermissions).IsDirectory, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2468 return 2469 }, 2470 "file.permissions.isFile": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2471 r.(*mqlFilePermissions).IsFile, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2472 return 2473 }, 2474 "file.permissions.isSymlink": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2475 r.(*mqlFilePermissions).IsSymlink, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2476 return 2477 }, 2478 "file.permissions.string": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2479 r.(*mqlFilePermissions).String, ok = plugin.RawToTValue[string](v.Value, v.Error) 2480 return 2481 }, 2482 "files.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2483 r.(*mqlFiles).__id, ok = v.Value.(string) 2484 return 2485 }, 2486 "files.find.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2487 r.(*mqlFilesFind).__id, ok = v.Value.(string) 2488 return 2489 }, 2490 "files.find.from": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2491 r.(*mqlFilesFind).From, ok = plugin.RawToTValue[string](v.Value, v.Error) 2492 return 2493 }, 2494 "files.find.xdev": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2495 r.(*mqlFilesFind).Xdev, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2496 return 2497 }, 2498 "files.find.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2499 r.(*mqlFilesFind).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) 2500 return 2501 }, 2502 "files.find.regex": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2503 r.(*mqlFilesFind).Regex, ok = plugin.RawToTValue[string](v.Value, v.Error) 2504 return 2505 }, 2506 "files.find.permissions": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2507 r.(*mqlFilesFind).Permissions, ok = plugin.RawToTValue[int64](v.Value, v.Error) 2508 return 2509 }, 2510 "files.find.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2511 r.(*mqlFilesFind).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 2512 return 2513 }, 2514 "files.find.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2515 r.(*mqlFilesFind).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2516 return 2517 }, 2518 "parse.ini.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2519 r.(*mqlParseIni).__id, ok = v.Value.(string) 2520 return 2521 }, 2522 "parse.ini.delimiter": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2523 r.(*mqlParseIni).Delimiter, ok = plugin.RawToTValue[string](v.Value, v.Error) 2524 return 2525 }, 2526 "parse.ini.file": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2527 r.(*mqlParseIni).File, ok = plugin.RawToTValue[*mqlFile](v.Value, v.Error) 2528 return 2529 }, 2530 "parse.ini.content": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2531 r.(*mqlParseIni).Content, ok = plugin.RawToTValue[string](v.Value, v.Error) 2532 return 2533 }, 2534 "parse.ini.sections": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2535 r.(*mqlParseIni).Sections, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 2536 return 2537 }, 2538 "parse.ini.params": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2539 r.(*mqlParseIni).Params, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 2540 return 2541 }, 2542 "parse.json.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2543 r.(*mqlParseJson).__id, ok = v.Value.(string) 2544 return 2545 }, 2546 "parse.json.file": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2547 r.(*mqlParseJson).File, ok = plugin.RawToTValue[*mqlFile](v.Value, v.Error) 2548 return 2549 }, 2550 "parse.json.content": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2551 r.(*mqlParseJson).Content, ok = plugin.RawToTValue[string](v.Value, v.Error) 2552 return 2553 }, 2554 "parse.json.params": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2555 r.(*mqlParseJson).Params, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 2556 return 2557 }, 2558 "parse.plist.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2559 r.(*mqlParsePlist).__id, ok = v.Value.(string) 2560 return 2561 }, 2562 "parse.plist.file": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2563 r.(*mqlParsePlist).File, ok = plugin.RawToTValue[*mqlFile](v.Value, v.Error) 2564 return 2565 }, 2566 "parse.plist.content": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2567 r.(*mqlParsePlist).Content, ok = plugin.RawToTValue[string](v.Value, v.Error) 2568 return 2569 }, 2570 "parse.plist.params": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2571 r.(*mqlParsePlist).Params, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 2572 return 2573 }, 2574 "parse.yaml.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2575 r.(*mqlParseYaml).__id, ok = v.Value.(string) 2576 return 2577 }, 2578 "parse.yaml.file": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2579 r.(*mqlParseYaml).File, ok = plugin.RawToTValue[*mqlFile](v.Value, v.Error) 2580 return 2581 }, 2582 "parse.yaml.content": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2583 r.(*mqlParseYaml).Content, ok = plugin.RawToTValue[string](v.Value, v.Error) 2584 return 2585 }, 2586 "parse.yaml.params": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2587 r.(*mqlParseYaml).Params, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 2588 return 2589 }, 2590 "parse.certificates.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2591 r.(*mqlParseCertificates).__id, ok = v.Value.(string) 2592 return 2593 }, 2594 "parse.certificates.path": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2595 r.(*mqlParseCertificates).Path, ok = plugin.RawToTValue[string](v.Value, v.Error) 2596 return 2597 }, 2598 "parse.certificates.file": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2599 r.(*mqlParseCertificates).File, ok = plugin.RawToTValue[*mqlFile](v.Value, v.Error) 2600 return 2601 }, 2602 "parse.certificates.content": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2603 r.(*mqlParseCertificates).Content, ok = plugin.RawToTValue[string](v.Value, v.Error) 2604 return 2605 }, 2606 "parse.certificates.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2607 r.(*mqlParseCertificates).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2608 return 2609 }, 2610 "parse.openpgp.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2611 r.(*mqlParseOpenpgp).__id, ok = v.Value.(string) 2612 return 2613 }, 2614 "parse.openpgp.path": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2615 r.(*mqlParseOpenpgp).Path, ok = plugin.RawToTValue[string](v.Value, v.Error) 2616 return 2617 }, 2618 "parse.openpgp.file": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2619 r.(*mqlParseOpenpgp).File, ok = plugin.RawToTValue[*mqlFile](v.Value, v.Error) 2620 return 2621 }, 2622 "parse.openpgp.content": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2623 r.(*mqlParseOpenpgp).Content, ok = plugin.RawToTValue[string](v.Value, v.Error) 2624 return 2625 }, 2626 "parse.openpgp.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2627 r.(*mqlParseOpenpgp).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2628 return 2629 }, 2630 "user.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2631 r.(*mqlUser).__id, ok = v.Value.(string) 2632 return 2633 }, 2634 "user.uid": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2635 r.(*mqlUser).Uid, ok = plugin.RawToTValue[int64](v.Value, v.Error) 2636 return 2637 }, 2638 "user.gid": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2639 r.(*mqlUser).Gid, ok = plugin.RawToTValue[int64](v.Value, v.Error) 2640 return 2641 }, 2642 "user.sid": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2643 r.(*mqlUser).Sid, ok = plugin.RawToTValue[string](v.Value, v.Error) 2644 return 2645 }, 2646 "user.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2647 r.(*mqlUser).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 2648 return 2649 }, 2650 "user.home": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2651 r.(*mqlUser).Home, ok = plugin.RawToTValue[string](v.Value, v.Error) 2652 return 2653 }, 2654 "user.shell": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2655 r.(*mqlUser).Shell, ok = plugin.RawToTValue[string](v.Value, v.Error) 2656 return 2657 }, 2658 "user.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2659 r.(*mqlUser).Enabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2660 return 2661 }, 2662 "user.authorizedkeys": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2663 r.(*mqlUser).Authorizedkeys, ok = plugin.RawToTValue[*mqlAuthorizedkeys](v.Value, v.Error) 2664 return 2665 }, 2666 "user.sshkeys": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2667 r.(*mqlUser).Sshkeys, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2668 return 2669 }, 2670 "user.group": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2671 r.(*mqlUser).Group, ok = plugin.RawToTValue[*mqlGroup](v.Value, v.Error) 2672 return 2673 }, 2674 "privatekey.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2675 r.(*mqlPrivatekey).__id, ok = v.Value.(string) 2676 return 2677 }, 2678 "privatekey.pem": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2679 r.(*mqlPrivatekey).Pem, ok = plugin.RawToTValue[string](v.Value, v.Error) 2680 return 2681 }, 2682 "privatekey.path": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2683 r.(*mqlPrivatekey).Path, ok = plugin.RawToTValue[string](v.Value, v.Error) 2684 return 2685 }, 2686 "privatekey.file": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2687 r.(*mqlPrivatekey).File, ok = plugin.RawToTValue[*mqlFile](v.Value, v.Error) 2688 return 2689 }, 2690 "privatekey.encrypted": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2691 r.(*mqlPrivatekey).Encrypted, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2692 return 2693 }, 2694 "users.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2695 r.(*mqlUsers).__id, ok = v.Value.(string) 2696 return 2697 }, 2698 "users.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2699 r.(*mqlUsers).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2700 return 2701 }, 2702 "authorizedkeys.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2703 r.(*mqlAuthorizedkeys).__id, ok = v.Value.(string) 2704 return 2705 }, 2706 "authorizedkeys.path": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2707 r.(*mqlAuthorizedkeys).Path, ok = plugin.RawToTValue[string](v.Value, v.Error) 2708 return 2709 }, 2710 "authorizedkeys.file": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2711 r.(*mqlAuthorizedkeys).File, ok = plugin.RawToTValue[*mqlFile](v.Value, v.Error) 2712 return 2713 }, 2714 "authorizedkeys.content": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2715 r.(*mqlAuthorizedkeys).Content, ok = plugin.RawToTValue[string](v.Value, v.Error) 2716 return 2717 }, 2718 "authorizedkeys.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2719 r.(*mqlAuthorizedkeys).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2720 return 2721 }, 2722 "authorizedkeys.entry.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2723 r.(*mqlAuthorizedkeysEntry).__id, ok = v.Value.(string) 2724 return 2725 }, 2726 "authorizedkeys.entry.line": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2727 r.(*mqlAuthorizedkeysEntry).Line, ok = plugin.RawToTValue[int64](v.Value, v.Error) 2728 return 2729 }, 2730 "authorizedkeys.entry.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2731 r.(*mqlAuthorizedkeysEntry).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) 2732 return 2733 }, 2734 "authorizedkeys.entry.key": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2735 r.(*mqlAuthorizedkeysEntry).Key, ok = plugin.RawToTValue[string](v.Value, v.Error) 2736 return 2737 }, 2738 "authorizedkeys.entry.label": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2739 r.(*mqlAuthorizedkeysEntry).Label, ok = plugin.RawToTValue[string](v.Value, v.Error) 2740 return 2741 }, 2742 "authorizedkeys.entry.options": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2743 r.(*mqlAuthorizedkeysEntry).Options, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2744 return 2745 }, 2746 "authorizedkeys.entry.file": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2747 r.(*mqlAuthorizedkeysEntry).File, ok = plugin.RawToTValue[*mqlFile](v.Value, v.Error) 2748 return 2749 }, 2750 "group.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2751 r.(*mqlGroup).__id, ok = v.Value.(string) 2752 return 2753 }, 2754 "group.gid": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2755 r.(*mqlGroup).Gid, ok = plugin.RawToTValue[int64](v.Value, v.Error) 2756 return 2757 }, 2758 "group.sid": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2759 r.(*mqlGroup).Sid, ok = plugin.RawToTValue[string](v.Value, v.Error) 2760 return 2761 }, 2762 "group.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2763 r.(*mqlGroup).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 2764 return 2765 }, 2766 "group.members": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2767 r.(*mqlGroup).Members, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2768 return 2769 }, 2770 "groups.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2771 r.(*mqlGroups).__id, ok = v.Value.(string) 2772 return 2773 }, 2774 "groups.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2775 r.(*mqlGroups).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2776 return 2777 }, 2778 "package.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2779 r.(*mqlPackage).__id, ok = v.Value.(string) 2780 return 2781 }, 2782 "package.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2783 r.(*mqlPackage).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 2784 return 2785 }, 2786 "package.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2787 r.(*mqlPackage).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) 2788 return 2789 }, 2790 "package.arch": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2791 r.(*mqlPackage).Arch, ok = plugin.RawToTValue[string](v.Value, v.Error) 2792 return 2793 }, 2794 "package.epoch": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2795 r.(*mqlPackage).Epoch, ok = plugin.RawToTValue[string](v.Value, v.Error) 2796 return 2797 }, 2798 "package.format": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2799 r.(*mqlPackage).Format, ok = plugin.RawToTValue[string](v.Value, v.Error) 2800 return 2801 }, 2802 "package.status": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2803 r.(*mqlPackage).Status, ok = plugin.RawToTValue[string](v.Value, v.Error) 2804 return 2805 }, 2806 "package.description": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2807 r.(*mqlPackage).Description, ok = plugin.RawToTValue[string](v.Value, v.Error) 2808 return 2809 }, 2810 "package.origin": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2811 r.(*mqlPackage).Origin, ok = plugin.RawToTValue[string](v.Value, v.Error) 2812 return 2813 }, 2814 "package.available": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2815 r.(*mqlPackage).Available, ok = plugin.RawToTValue[string](v.Value, v.Error) 2816 return 2817 }, 2818 "package.installed": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2819 r.(*mqlPackage).Installed, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2820 return 2821 }, 2822 "package.outdated": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2823 r.(*mqlPackage).Outdated, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2824 return 2825 }, 2826 "packages.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2827 r.(*mqlPackages).__id, ok = v.Value.(string) 2828 return 2829 }, 2830 "packages.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2831 r.(*mqlPackages).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2832 return 2833 }, 2834 "pam.conf.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2835 r.(*mqlPamConf).__id, ok = v.Value.(string) 2836 return 2837 }, 2838 "pam.conf.files": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2839 r.(*mqlPamConf).Files, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2840 return 2841 }, 2842 "pam.conf.content": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2843 r.(*mqlPamConf).Content, ok = plugin.RawToTValue[string](v.Value, v.Error) 2844 return 2845 }, 2846 "pam.conf.services": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2847 r.(*mqlPamConf).Services, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 2848 return 2849 }, 2850 "pam.conf.entries": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2851 r.(*mqlPamConf).Entries, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 2852 return 2853 }, 2854 "pam.conf.serviceEntry.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2855 r.(*mqlPamConfServiceEntry).__id, ok = v.Value.(string) 2856 return 2857 }, 2858 "pam.conf.serviceEntry.service": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2859 r.(*mqlPamConfServiceEntry).Service, ok = plugin.RawToTValue[string](v.Value, v.Error) 2860 return 2861 }, 2862 "pam.conf.serviceEntry.lineNumber": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2863 r.(*mqlPamConfServiceEntry).LineNumber, ok = plugin.RawToTValue[int64](v.Value, v.Error) 2864 return 2865 }, 2866 "pam.conf.serviceEntry.pamType": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2867 r.(*mqlPamConfServiceEntry).PamType, ok = plugin.RawToTValue[string](v.Value, v.Error) 2868 return 2869 }, 2870 "pam.conf.serviceEntry.control": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2871 r.(*mqlPamConfServiceEntry).Control, ok = plugin.RawToTValue[string](v.Value, v.Error) 2872 return 2873 }, 2874 "pam.conf.serviceEntry.module": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2875 r.(*mqlPamConfServiceEntry).Module, ok = plugin.RawToTValue[string](v.Value, v.Error) 2876 return 2877 }, 2878 "pam.conf.serviceEntry.options": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2879 r.(*mqlPamConfServiceEntry).Options, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2880 return 2881 }, 2882 "sshd.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2883 r.(*mqlSshd).__id, ok = v.Value.(string) 2884 return 2885 }, 2886 "sshd.config.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2887 r.(*mqlSshdConfig).__id, ok = v.Value.(string) 2888 return 2889 }, 2890 "sshd.config.file": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2891 r.(*mqlSshdConfig).File, ok = plugin.RawToTValue[*mqlFile](v.Value, v.Error) 2892 return 2893 }, 2894 "sshd.config.files": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2895 r.(*mqlSshdConfig).Files, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2896 return 2897 }, 2898 "sshd.config.content": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2899 r.(*mqlSshdConfig).Content, ok = plugin.RawToTValue[string](v.Value, v.Error) 2900 return 2901 }, 2902 "sshd.config.params": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2903 r.(*mqlSshdConfig).Params, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 2904 return 2905 }, 2906 "sshd.config.ciphers": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2907 r.(*mqlSshdConfig).Ciphers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2908 return 2909 }, 2910 "sshd.config.macs": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2911 r.(*mqlSshdConfig).Macs, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2912 return 2913 }, 2914 "sshd.config.kexs": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2915 r.(*mqlSshdConfig).Kexs, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2916 return 2917 }, 2918 "sshd.config.hostkeys": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2919 r.(*mqlSshdConfig).Hostkeys, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2920 return 2921 }, 2922 "service.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2923 r.(*mqlService).__id, ok = v.Value.(string) 2924 return 2925 }, 2926 "service.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2927 r.(*mqlService).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 2928 return 2929 }, 2930 "service.description": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2931 r.(*mqlService).Description, ok = plugin.RawToTValue[string](v.Value, v.Error) 2932 return 2933 }, 2934 "service.installed": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2935 r.(*mqlService).Installed, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2936 return 2937 }, 2938 "service.running": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2939 r.(*mqlService).Running, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2940 return 2941 }, 2942 "service.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2943 r.(*mqlService).Enabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2944 return 2945 }, 2946 "service.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2947 r.(*mqlService).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) 2948 return 2949 }, 2950 "service.masked": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2951 r.(*mqlService).Masked, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2952 return 2953 }, 2954 "services.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2955 r.(*mqlServices).__id, ok = v.Value.(string) 2956 return 2957 }, 2958 "services.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2959 r.(*mqlServices).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2960 return 2961 }, 2962 "kernel.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2963 r.(*mqlKernel).__id, ok = v.Value.(string) 2964 return 2965 }, 2966 "kernel.info": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2967 r.(*mqlKernel).Info, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 2968 return 2969 }, 2970 "kernel.parameters": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2971 r.(*mqlKernel).Parameters, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 2972 return 2973 }, 2974 "kernel.modules": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2975 r.(*mqlKernel).Modules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2976 return 2977 }, 2978 "kernel.installed": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2979 r.(*mqlKernel).Installed, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 2980 return 2981 }, 2982 "kernel.module.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2983 r.(*mqlKernelModule).__id, ok = v.Value.(string) 2984 return 2985 }, 2986 "kernel.module.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2987 r.(*mqlKernelModule).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 2988 return 2989 }, 2990 "kernel.module.size": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2991 r.(*mqlKernelModule).Size, ok = plugin.RawToTValue[string](v.Value, v.Error) 2992 return 2993 }, 2994 "kernel.module.loaded": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2995 r.(*mqlKernelModule).Loaded, ok = plugin.RawToTValue[bool](v.Value, v.Error) 2996 return 2997 }, 2998 "docker.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 2999 r.(*mqlDocker).__id, ok = v.Value.(string) 3000 return 3001 }, 3002 "docker.images": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3003 r.(*mqlDocker).Images, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3004 return 3005 }, 3006 "docker.containers": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3007 r.(*mqlDocker).Containers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3008 return 3009 }, 3010 "docker.image.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3011 r.(*mqlDockerImage).__id, ok = v.Value.(string) 3012 return 3013 }, 3014 "docker.image.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3015 r.(*mqlDockerImage).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) 3016 return 3017 }, 3018 "docker.image.size": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3019 r.(*mqlDockerImage).Size, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3020 return 3021 }, 3022 "docker.image.virtualsize": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3023 r.(*mqlDockerImage).Virtualsize, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3024 return 3025 }, 3026 "docker.image.tags": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3027 r.(*mqlDockerImage).Tags, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3028 return 3029 }, 3030 "docker.image.labels": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3031 r.(*mqlDockerImage).Labels, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 3032 return 3033 }, 3034 "docker.container.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3035 r.(*mqlDockerContainer).__id, ok = v.Value.(string) 3036 return 3037 }, 3038 "docker.container.os": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3039 r.(*mqlDockerContainer).Os, ok = plugin.RawToTValue[*mqlOsLinux](v.Value, v.Error) 3040 return 3041 }, 3042 "docker.container.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3043 r.(*mqlDockerContainer).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) 3044 return 3045 }, 3046 "docker.container.command": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3047 r.(*mqlDockerContainer).Command, ok = plugin.RawToTValue[string](v.Value, v.Error) 3048 return 3049 }, 3050 "docker.container.image": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3051 r.(*mqlDockerContainer).Image, ok = plugin.RawToTValue[string](v.Value, v.Error) 3052 return 3053 }, 3054 "docker.container.imageid": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3055 r.(*mqlDockerContainer).Imageid, ok = plugin.RawToTValue[string](v.Value, v.Error) 3056 return 3057 }, 3058 "docker.container.names": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3059 r.(*mqlDockerContainer).Names, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3060 return 3061 }, 3062 "docker.container.state": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3063 r.(*mqlDockerContainer).State, ok = plugin.RawToTValue[string](v.Value, v.Error) 3064 return 3065 }, 3066 "docker.container.status": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3067 r.(*mqlDockerContainer).Status, ok = plugin.RawToTValue[string](v.Value, v.Error) 3068 return 3069 }, 3070 "docker.container.labels": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3071 r.(*mqlDockerContainer).Labels, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 3072 return 3073 }, 3074 "iptables.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3075 r.(*mqlIptables).__id, ok = v.Value.(string) 3076 return 3077 }, 3078 "iptables.input": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3079 r.(*mqlIptables).Input, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3080 return 3081 }, 3082 "iptables.output": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3083 r.(*mqlIptables).Output, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3084 return 3085 }, 3086 "ip6tables.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3087 r.(*mqlIp6tables).__id, ok = v.Value.(string) 3088 return 3089 }, 3090 "ip6tables.input": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3091 r.(*mqlIp6tables).Input, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3092 return 3093 }, 3094 "ip6tables.output": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3095 r.(*mqlIp6tables).Output, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3096 return 3097 }, 3098 "iptables.entry.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3099 r.(*mqlIptablesEntry).__id, ok = v.Value.(string) 3100 return 3101 }, 3102 "iptables.entry.lineNumber": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3103 r.(*mqlIptablesEntry).LineNumber, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3104 return 3105 }, 3106 "iptables.entry.packets": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3107 r.(*mqlIptablesEntry).Packets, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3108 return 3109 }, 3110 "iptables.entry.bytes": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3111 r.(*mqlIptablesEntry).Bytes, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3112 return 3113 }, 3114 "iptables.entry.target": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3115 r.(*mqlIptablesEntry).Target, ok = plugin.RawToTValue[string](v.Value, v.Error) 3116 return 3117 }, 3118 "iptables.entry.protocol": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3119 r.(*mqlIptablesEntry).Protocol, ok = plugin.RawToTValue[string](v.Value, v.Error) 3120 return 3121 }, 3122 "iptables.entry.opt": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3123 r.(*mqlIptablesEntry).Opt, ok = plugin.RawToTValue[string](v.Value, v.Error) 3124 return 3125 }, 3126 "iptables.entry.in": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3127 r.(*mqlIptablesEntry).In, ok = plugin.RawToTValue[string](v.Value, v.Error) 3128 return 3129 }, 3130 "iptables.entry.out": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3131 r.(*mqlIptablesEntry).Out, ok = plugin.RawToTValue[string](v.Value, v.Error) 3132 return 3133 }, 3134 "iptables.entry.source": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3135 r.(*mqlIptablesEntry).Source, ok = plugin.RawToTValue[string](v.Value, v.Error) 3136 return 3137 }, 3138 "iptables.entry.destination": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3139 r.(*mqlIptablesEntry).Destination, ok = plugin.RawToTValue[string](v.Value, v.Error) 3140 return 3141 }, 3142 "iptables.entry.options": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3143 r.(*mqlIptablesEntry).Options, ok = plugin.RawToTValue[string](v.Value, v.Error) 3144 return 3145 }, 3146 "iptables.entry.chain": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3147 r.(*mqlIptablesEntry).Chain, ok = plugin.RawToTValue[string](v.Value, v.Error) 3148 return 3149 }, 3150 "process.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3151 r.(*mqlProcess).__id, ok = v.Value.(string) 3152 return 3153 }, 3154 "process.pid": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3155 r.(*mqlProcess).Pid, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3156 return 3157 }, 3158 "process.state": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3159 r.(*mqlProcess).State, ok = plugin.RawToTValue[string](v.Value, v.Error) 3160 return 3161 }, 3162 "process.executable": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3163 r.(*mqlProcess).Executable, ok = plugin.RawToTValue[string](v.Value, v.Error) 3164 return 3165 }, 3166 "process.command": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3167 r.(*mqlProcess).Command, ok = plugin.RawToTValue[string](v.Value, v.Error) 3168 return 3169 }, 3170 "process.flags": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3171 r.(*mqlProcess).Flags, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 3172 return 3173 }, 3174 "processes.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3175 r.(*mqlProcesses).__id, ok = v.Value.(string) 3176 return 3177 }, 3178 "processes.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3179 r.(*mqlProcesses).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3180 return 3181 }, 3182 "port.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3183 r.(*mqlPort).__id, ok = v.Value.(string) 3184 return 3185 }, 3186 "port.protocol": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3187 r.(*mqlPort).Protocol, ok = plugin.RawToTValue[string](v.Value, v.Error) 3188 return 3189 }, 3190 "port.port": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3191 r.(*mqlPort).Port, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3192 return 3193 }, 3194 "port.address": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3195 r.(*mqlPort).Address, ok = plugin.RawToTValue[string](v.Value, v.Error) 3196 return 3197 }, 3198 "port.user": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3199 r.(*mqlPort).User, ok = plugin.RawToTValue[*mqlUser](v.Value, v.Error) 3200 return 3201 }, 3202 "port.process": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3203 r.(*mqlPort).Process, ok = plugin.RawToTValue[*mqlProcess](v.Value, v.Error) 3204 return 3205 }, 3206 "port.state": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3207 r.(*mqlPort).State, ok = plugin.RawToTValue[string](v.Value, v.Error) 3208 return 3209 }, 3210 "port.remoteAddress": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3211 r.(*mqlPort).RemoteAddress, ok = plugin.RawToTValue[string](v.Value, v.Error) 3212 return 3213 }, 3214 "port.remotePort": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3215 r.(*mqlPort).RemotePort, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3216 return 3217 }, 3218 "port.tls": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3219 r.(*mqlPort).Tls, ok = plugin.RawToTValue[plugin.Resource](v.Value, v.Error) 3220 return 3221 }, 3222 "ports.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3223 r.(*mqlPorts).__id, ok = v.Value.(string) 3224 return 3225 }, 3226 "ports.listening": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3227 r.(*mqlPorts).Listening, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3228 return 3229 }, 3230 "ports.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3231 r.(*mqlPorts).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3232 return 3233 }, 3234 "auditpol.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3235 r.(*mqlAuditpol).__id, ok = v.Value.(string) 3236 return 3237 }, 3238 "auditpol.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3239 r.(*mqlAuditpol).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3240 return 3241 }, 3242 "auditpol.entry.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3243 r.(*mqlAuditpolEntry).__id, ok = v.Value.(string) 3244 return 3245 }, 3246 "auditpol.entry.machinename": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3247 r.(*mqlAuditpolEntry).Machinename, ok = plugin.RawToTValue[string](v.Value, v.Error) 3248 return 3249 }, 3250 "auditpol.entry.policytarget": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3251 r.(*mqlAuditpolEntry).Policytarget, ok = plugin.RawToTValue[string](v.Value, v.Error) 3252 return 3253 }, 3254 "auditpol.entry.subcategory": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3255 r.(*mqlAuditpolEntry).Subcategory, ok = plugin.RawToTValue[string](v.Value, v.Error) 3256 return 3257 }, 3258 "auditpol.entry.subcategoryguid": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3259 r.(*mqlAuditpolEntry).Subcategoryguid, ok = plugin.RawToTValue[string](v.Value, v.Error) 3260 return 3261 }, 3262 "auditpol.entry.inclusionsetting": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3263 r.(*mqlAuditpolEntry).Inclusionsetting, ok = plugin.RawToTValue[string](v.Value, v.Error) 3264 return 3265 }, 3266 "auditpol.entry.exclusionsetting": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3267 r.(*mqlAuditpolEntry).Exclusionsetting, ok = plugin.RawToTValue[string](v.Value, v.Error) 3268 return 3269 }, 3270 "secpol.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3271 r.(*mqlSecpol).__id, ok = v.Value.(string) 3272 return 3273 }, 3274 "secpol.systemaccess": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3275 r.(*mqlSecpol).Systemaccess, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 3276 return 3277 }, 3278 "secpol.eventaudit": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3279 r.(*mqlSecpol).Eventaudit, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 3280 return 3281 }, 3282 "secpol.registryvalues": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3283 r.(*mqlSecpol).Registryvalues, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 3284 return 3285 }, 3286 "secpol.privilegerights": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3287 r.(*mqlSecpol).Privilegerights, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 3288 return 3289 }, 3290 "ntp.conf.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3291 r.(*mqlNtpConf).__id, ok = v.Value.(string) 3292 return 3293 }, 3294 "ntp.conf.file": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3295 r.(*mqlNtpConf).File, ok = plugin.RawToTValue[*mqlFile](v.Value, v.Error) 3296 return 3297 }, 3298 "ntp.conf.content": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3299 r.(*mqlNtpConf).Content, ok = plugin.RawToTValue[string](v.Value, v.Error) 3300 return 3301 }, 3302 "ntp.conf.settings": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3303 r.(*mqlNtpConf).Settings, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3304 return 3305 }, 3306 "ntp.conf.servers": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3307 r.(*mqlNtpConf).Servers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3308 return 3309 }, 3310 "ntp.conf.restrict": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3311 r.(*mqlNtpConf).Restrict, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3312 return 3313 }, 3314 "ntp.conf.fudge": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3315 r.(*mqlNtpConf).Fudge, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3316 return 3317 }, 3318 "rsyslog.conf.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3319 r.(*mqlRsyslogConf).__id, ok = v.Value.(string) 3320 return 3321 }, 3322 "rsyslog.conf.path": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3323 r.(*mqlRsyslogConf).Path, ok = plugin.RawToTValue[string](v.Value, v.Error) 3324 return 3325 }, 3326 "rsyslog.conf.files": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3327 r.(*mqlRsyslogConf).Files, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3328 return 3329 }, 3330 "rsyslog.conf.content": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3331 r.(*mqlRsyslogConf).Content, ok = plugin.RawToTValue[string](v.Value, v.Error) 3332 return 3333 }, 3334 "rsyslog.conf.settings": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3335 r.(*mqlRsyslogConf).Settings, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3336 return 3337 }, 3338 "logindefs.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3339 r.(*mqlLogindefs).__id, ok = v.Value.(string) 3340 return 3341 }, 3342 "logindefs.file": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3343 r.(*mqlLogindefs).File, ok = plugin.RawToTValue[*mqlFile](v.Value, v.Error) 3344 return 3345 }, 3346 "logindefs.content": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3347 r.(*mqlLogindefs).Content, ok = plugin.RawToTValue[string](v.Value, v.Error) 3348 return 3349 }, 3350 "logindefs.params": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3351 r.(*mqlLogindefs).Params, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 3352 return 3353 }, 3354 "lsblk.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3355 r.(*mqlLsblk).__id, ok = v.Value.(string) 3356 return 3357 }, 3358 "lsblk.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3359 r.(*mqlLsblk).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3360 return 3361 }, 3362 "lsblk.entry.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3363 r.(*mqlLsblkEntry).__id, ok = v.Value.(string) 3364 return 3365 }, 3366 "lsblk.entry.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3367 r.(*mqlLsblkEntry).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 3368 return 3369 }, 3370 "lsblk.entry.fstype": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3371 r.(*mqlLsblkEntry).Fstype, ok = plugin.RawToTValue[string](v.Value, v.Error) 3372 return 3373 }, 3374 "lsblk.entry.label": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3375 r.(*mqlLsblkEntry).Label, ok = plugin.RawToTValue[string](v.Value, v.Error) 3376 return 3377 }, 3378 "lsblk.entry.uuid": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3379 r.(*mqlLsblkEntry).Uuid, ok = plugin.RawToTValue[string](v.Value, v.Error) 3380 return 3381 }, 3382 "lsblk.entry.mountpoints": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3383 r.(*mqlLsblkEntry).Mountpoints, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3384 return 3385 }, 3386 "mount.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3387 r.(*mqlMount).__id, ok = v.Value.(string) 3388 return 3389 }, 3390 "mount.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3391 r.(*mqlMount).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3392 return 3393 }, 3394 "mount.point.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3395 r.(*mqlMountPoint).__id, ok = v.Value.(string) 3396 return 3397 }, 3398 "mount.point.device": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3399 r.(*mqlMountPoint).Device, ok = plugin.RawToTValue[string](v.Value, v.Error) 3400 return 3401 }, 3402 "mount.point.path": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3403 r.(*mqlMountPoint).Path, ok = plugin.RawToTValue[string](v.Value, v.Error) 3404 return 3405 }, 3406 "mount.point.fstype": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3407 r.(*mqlMountPoint).Fstype, ok = plugin.RawToTValue[string](v.Value, v.Error) 3408 return 3409 }, 3410 "mount.point.options": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3411 r.(*mqlMountPoint).Options, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 3412 return 3413 }, 3414 "mount.point.mounted": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3415 r.(*mqlMountPoint).Mounted, ok = plugin.RawToTValue[bool](v.Value, v.Error) 3416 return 3417 }, 3418 "shadow.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3419 r.(*mqlShadow).__id, ok = v.Value.(string) 3420 return 3421 }, 3422 "shadow.list": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3423 r.(*mqlShadow).List, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3424 return 3425 }, 3426 "shadow.entry.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3427 r.(*mqlShadowEntry).__id, ok = v.Value.(string) 3428 return 3429 }, 3430 "shadow.entry.user": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3431 r.(*mqlShadowEntry).User, ok = plugin.RawToTValue[string](v.Value, v.Error) 3432 return 3433 }, 3434 "shadow.entry.password": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3435 r.(*mqlShadowEntry).Password, ok = plugin.RawToTValue[string](v.Value, v.Error) 3436 return 3437 }, 3438 "shadow.entry.lastchanged": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3439 r.(*mqlShadowEntry).Lastchanged, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) 3440 return 3441 }, 3442 "shadow.entry.mindays": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3443 r.(*mqlShadowEntry).Mindays, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3444 return 3445 }, 3446 "shadow.entry.maxdays": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3447 r.(*mqlShadowEntry).Maxdays, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3448 return 3449 }, 3450 "shadow.entry.warndays": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3451 r.(*mqlShadowEntry).Warndays, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3452 return 3453 }, 3454 "shadow.entry.inactivedays": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3455 r.(*mqlShadowEntry).Inactivedays, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3456 return 3457 }, 3458 "shadow.entry.expirydates": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3459 r.(*mqlShadowEntry).Expirydates, ok = plugin.RawToTValue[string](v.Value, v.Error) 3460 return 3461 }, 3462 "shadow.entry.reserved": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3463 r.(*mqlShadowEntry).Reserved, ok = plugin.RawToTValue[string](v.Value, v.Error) 3464 return 3465 }, 3466 "yum.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3467 r.(*mqlYum).__id, ok = v.Value.(string) 3468 return 3469 }, 3470 "yum.vars": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3471 r.(*mqlYum).Vars, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 3472 return 3473 }, 3474 "yum.repos": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3475 r.(*mqlYum).Repos, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3476 return 3477 }, 3478 "yum.repo.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3479 r.(*mqlYumRepo).__id, ok = v.Value.(string) 3480 return 3481 }, 3482 "yum.repo.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3483 r.(*mqlYumRepo).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) 3484 return 3485 }, 3486 "yum.repo.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3487 r.(*mqlYumRepo).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 3488 return 3489 }, 3490 "yum.repo.status": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3491 r.(*mqlYumRepo).Status, ok = plugin.RawToTValue[string](v.Value, v.Error) 3492 return 3493 }, 3494 "yum.repo.baseurl": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3495 r.(*mqlYumRepo).Baseurl, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3496 return 3497 }, 3498 "yum.repo.expire": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3499 r.(*mqlYumRepo).Expire, ok = plugin.RawToTValue[string](v.Value, v.Error) 3500 return 3501 }, 3502 "yum.repo.filename": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3503 r.(*mqlYumRepo).Filename, ok = plugin.RawToTValue[string](v.Value, v.Error) 3504 return 3505 }, 3506 "yum.repo.file": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3507 r.(*mqlYumRepo).File, ok = plugin.RawToTValue[*mqlFile](v.Value, v.Error) 3508 return 3509 }, 3510 "yum.repo.revision": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3511 r.(*mqlYumRepo).Revision, ok = plugin.RawToTValue[string](v.Value, v.Error) 3512 return 3513 }, 3514 "yum.repo.pkgs": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3515 r.(*mqlYumRepo).Pkgs, ok = plugin.RawToTValue[string](v.Value, v.Error) 3516 return 3517 }, 3518 "yum.repo.size": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3519 r.(*mqlYumRepo).Size, ok = plugin.RawToTValue[string](v.Value, v.Error) 3520 return 3521 }, 3522 "yum.repo.mirrors": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3523 r.(*mqlYumRepo).Mirrors, ok = plugin.RawToTValue[string](v.Value, v.Error) 3524 return 3525 }, 3526 "yum.repo.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3527 r.(*mqlYumRepo).Enabled, ok = plugin.RawToTValue[bool](v.Value, v.Error) 3528 return 3529 }, 3530 "registrykey.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3531 r.(*mqlRegistrykey).__id, ok = v.Value.(string) 3532 return 3533 }, 3534 "registrykey.path": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3535 r.(*mqlRegistrykey).Path, ok = plugin.RawToTValue[string](v.Value, v.Error) 3536 return 3537 }, 3538 "registrykey.exists": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3539 r.(*mqlRegistrykey).Exists, ok = plugin.RawToTValue[bool](v.Value, v.Error) 3540 return 3541 }, 3542 "registrykey.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3543 r.(*mqlRegistrykey).Properties, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 3544 return 3545 }, 3546 "registrykey.items": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3547 r.(*mqlRegistrykey).Items, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3548 return 3549 }, 3550 "registrykey.children": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3551 r.(*mqlRegistrykey).Children, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3552 return 3553 }, 3554 "registrykey.property.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3555 r.(*mqlRegistrykeyProperty).__id, ok = v.Value.(string) 3556 return 3557 }, 3558 "registrykey.property.path": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3559 r.(*mqlRegistrykeyProperty).Path, ok = plugin.RawToTValue[string](v.Value, v.Error) 3560 return 3561 }, 3562 "registrykey.property.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3563 r.(*mqlRegistrykeyProperty).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 3564 return 3565 }, 3566 "registrykey.property.exists": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3567 r.(*mqlRegistrykeyProperty).Exists, ok = plugin.RawToTValue[bool](v.Value, v.Error) 3568 return 3569 }, 3570 "registrykey.property.value": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3571 r.(*mqlRegistrykeyProperty).Value, ok = plugin.RawToTValue[string](v.Value, v.Error) 3572 return 3573 }, 3574 "registrykey.property.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3575 r.(*mqlRegistrykeyProperty).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) 3576 return 3577 }, 3578 "registrykey.property.data": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3579 r.(*mqlRegistrykeyProperty).Data, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 3580 return 3581 }, 3582 "container.image.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3583 r.(*mqlContainerImage).__id, ok = v.Value.(string) 3584 return 3585 }, 3586 "container.image.reference": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3587 r.(*mqlContainerImage).Reference, ok = plugin.RawToTValue[string](v.Value, v.Error) 3588 return 3589 }, 3590 "container.image.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3591 r.(*mqlContainerImage).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 3592 return 3593 }, 3594 "container.image.identifier": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3595 r.(*mqlContainerImage).Identifier, ok = plugin.RawToTValue[string](v.Value, v.Error) 3596 return 3597 }, 3598 "container.image.identifierType": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3599 r.(*mqlContainerImage).IdentifierType, ok = plugin.RawToTValue[string](v.Value, v.Error) 3600 return 3601 }, 3602 "container.image.repository": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3603 r.(*mqlContainerImage).Repository, ok = plugin.RawToTValue[*mqlContainerRepository](v.Value, v.Error) 3604 return 3605 }, 3606 "container.repository.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3607 r.(*mqlContainerRepository).__id, ok = v.Value.(string) 3608 return 3609 }, 3610 "container.repository.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3611 r.(*mqlContainerRepository).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 3612 return 3613 }, 3614 "container.repository.scheme": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3615 r.(*mqlContainerRepository).Scheme, ok = plugin.RawToTValue[string](v.Value, v.Error) 3616 return 3617 }, 3618 "container.repository.fullName": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3619 r.(*mqlContainerRepository).FullName, ok = plugin.RawToTValue[string](v.Value, v.Error) 3620 return 3621 }, 3622 "container.repository.registry": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3623 r.(*mqlContainerRepository).Registry, ok = plugin.RawToTValue[string](v.Value, v.Error) 3624 return 3625 }, 3626 "kubelet.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3627 r.(*mqlKubelet).__id, ok = v.Value.(string) 3628 return 3629 }, 3630 "kubelet.configFile": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3631 r.(*mqlKubelet).ConfigFile, ok = plugin.RawToTValue[*mqlFile](v.Value, v.Error) 3632 return 3633 }, 3634 "kubelet.process": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3635 r.(*mqlKubelet).Process, ok = plugin.RawToTValue[*mqlProcess](v.Value, v.Error) 3636 return 3637 }, 3638 "kubelet.configuration": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3639 r.(*mqlKubelet).Configuration, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 3640 return 3641 }, 3642 "python.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3643 r.(*mqlPython).__id, ok = v.Value.(string) 3644 return 3645 }, 3646 "python.path": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3647 r.(*mqlPython).Path, ok = plugin.RawToTValue[string](v.Value, v.Error) 3648 return 3649 }, 3650 "python.packages": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3651 r.(*mqlPython).Packages, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3652 return 3653 }, 3654 "python.toplevel": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3655 r.(*mqlPython).Toplevel, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3656 return 3657 }, 3658 "python.package.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3659 r.(*mqlPythonPackage).__id, ok = v.Value.(string) 3660 return 3661 }, 3662 "python.package.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3663 r.(*mqlPythonPackage).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) 3664 return 3665 }, 3666 "python.package.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3667 r.(*mqlPythonPackage).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 3668 return 3669 }, 3670 "python.package.file": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3671 r.(*mqlPythonPackage).File, ok = plugin.RawToTValue[*mqlFile](v.Value, v.Error) 3672 return 3673 }, 3674 "python.package.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3675 r.(*mqlPythonPackage).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) 3676 return 3677 }, 3678 "python.package.license": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3679 r.(*mqlPythonPackage).License, ok = plugin.RawToTValue[string](v.Value, v.Error) 3680 return 3681 }, 3682 "python.package.author": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3683 r.(*mqlPythonPackage).Author, ok = plugin.RawToTValue[string](v.Value, v.Error) 3684 return 3685 }, 3686 "python.package.summary": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3687 r.(*mqlPythonPackage).Summary, ok = plugin.RawToTValue[string](v.Value, v.Error) 3688 return 3689 }, 3690 "python.package.dependencies": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3691 r.(*mqlPythonPackage).Dependencies, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3692 return 3693 }, 3694 "macos.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3695 r.(*mqlMacos).__id, ok = v.Value.(string) 3696 return 3697 }, 3698 "macos.userPreferences": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3699 r.(*mqlMacos).UserPreferences, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 3700 return 3701 }, 3702 "macos.userHostPreferences": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3703 r.(*mqlMacos).UserHostPreferences, ok = plugin.RawToTValue[map[string]interface{}](v.Value, v.Error) 3704 return 3705 }, 3706 "macos.globalAccountPolicies": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3707 r.(*mqlMacos).GlobalAccountPolicies, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 3708 return 3709 }, 3710 "macos.alf.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3711 r.(*mqlMacosAlf).__id, ok = v.Value.(string) 3712 return 3713 }, 3714 "macos.alf.allowDownloadSignedEnabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3715 r.(*mqlMacosAlf).AllowDownloadSignedEnabled, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3716 return 3717 }, 3718 "macos.alf.allowSignedEnabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3719 r.(*mqlMacosAlf).AllowSignedEnabled, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3720 return 3721 }, 3722 "macos.alf.firewallUnload": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3723 r.(*mqlMacosAlf).FirewallUnload, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3724 return 3725 }, 3726 "macos.alf.globalState": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3727 r.(*mqlMacosAlf).GlobalState, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3728 return 3729 }, 3730 "macos.alf.loggingEnabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3731 r.(*mqlMacosAlf).LoggingEnabled, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3732 return 3733 }, 3734 "macos.alf.loggingOption": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3735 r.(*mqlMacosAlf).LoggingOption, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3736 return 3737 }, 3738 "macos.alf.stealthEnabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3739 r.(*mqlMacosAlf).StealthEnabled, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3740 return 3741 }, 3742 "macos.alf.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3743 r.(*mqlMacosAlf).Version, ok = plugin.RawToTValue[string](v.Value, v.Error) 3744 return 3745 }, 3746 "macos.alf.exceptions": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3747 r.(*mqlMacosAlf).Exceptions, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3748 return 3749 }, 3750 "macos.alf.explicitAuths": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3751 r.(*mqlMacosAlf).ExplicitAuths, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3752 return 3753 }, 3754 "macos.alf.applications": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3755 r.(*mqlMacosAlf).Applications, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3756 return 3757 }, 3758 "macos.timemachine.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3759 r.(*mqlMacosTimemachine).__id, ok = v.Value.(string) 3760 return 3761 }, 3762 "macos.timemachine.preferences": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3763 r.(*mqlMacosTimemachine).Preferences, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 3764 return 3765 }, 3766 "macos.systemsetup.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3767 r.(*mqlMacosSystemsetup).__id, ok = v.Value.(string) 3768 return 3769 }, 3770 "macos.systemsetup.date": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3771 r.(*mqlMacosSystemsetup).Date, ok = plugin.RawToTValue[string](v.Value, v.Error) 3772 return 3773 }, 3774 "macos.systemsetup.time": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3775 r.(*mqlMacosSystemsetup).Time, ok = plugin.RawToTValue[string](v.Value, v.Error) 3776 return 3777 }, 3778 "macos.systemsetup.timeZone": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3779 r.(*mqlMacosSystemsetup).TimeZone, ok = plugin.RawToTValue[string](v.Value, v.Error) 3780 return 3781 }, 3782 "macos.systemsetup.usingNetworkTime": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3783 r.(*mqlMacosSystemsetup).UsingNetworkTime, ok = plugin.RawToTValue[string](v.Value, v.Error) 3784 return 3785 }, 3786 "macos.systemsetup.networkTimeServer": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3787 r.(*mqlMacosSystemsetup).NetworkTimeServer, ok = plugin.RawToTValue[string](v.Value, v.Error) 3788 return 3789 }, 3790 "macos.systemsetup.sleep": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3791 r.(*mqlMacosSystemsetup).Sleep, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3792 return 3793 }, 3794 "macos.systemsetup.displaySleep": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3795 r.(*mqlMacosSystemsetup).DisplaySleep, ok = plugin.RawToTValue[string](v.Value, v.Error) 3796 return 3797 }, 3798 "macos.systemsetup.harddiskSleep": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3799 r.(*mqlMacosSystemsetup).HarddiskSleep, ok = plugin.RawToTValue[string](v.Value, v.Error) 3800 return 3801 }, 3802 "macos.systemsetup.wakeOnModem": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3803 r.(*mqlMacosSystemsetup).WakeOnModem, ok = plugin.RawToTValue[string](v.Value, v.Error) 3804 return 3805 }, 3806 "macos.systemsetup.wakeOnNetworkAccess": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3807 r.(*mqlMacosSystemsetup).WakeOnNetworkAccess, ok = plugin.RawToTValue[string](v.Value, v.Error) 3808 return 3809 }, 3810 "macos.systemsetup.restartPowerFailure": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3811 r.(*mqlMacosSystemsetup).RestartPowerFailure, ok = plugin.RawToTValue[string](v.Value, v.Error) 3812 return 3813 }, 3814 "macos.systemsetup.restartFreeze": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3815 r.(*mqlMacosSystemsetup).RestartFreeze, ok = plugin.RawToTValue[string](v.Value, v.Error) 3816 return 3817 }, 3818 "macos.systemsetup.allowPowerButtonToSleepComputer": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3819 r.(*mqlMacosSystemsetup).AllowPowerButtonToSleepComputer, ok = plugin.RawToTValue[string](v.Value, v.Error) 3820 return 3821 }, 3822 "macos.systemsetup.remoteLogin": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3823 r.(*mqlMacosSystemsetup).RemoteLogin, ok = plugin.RawToTValue[string](v.Value, v.Error) 3824 return 3825 }, 3826 "macos.systemsetup.remoteAppleEvents": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3827 r.(*mqlMacosSystemsetup).RemoteAppleEvents, ok = plugin.RawToTValue[string](v.Value, v.Error) 3828 return 3829 }, 3830 "macos.systemsetup.computerName": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3831 r.(*mqlMacosSystemsetup).ComputerName, ok = plugin.RawToTValue[string](v.Value, v.Error) 3832 return 3833 }, 3834 "macos.systemsetup.localSubnetName": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3835 r.(*mqlMacosSystemsetup).LocalSubnetName, ok = plugin.RawToTValue[string](v.Value, v.Error) 3836 return 3837 }, 3838 "macos.systemsetup.startupDisk": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3839 r.(*mqlMacosSystemsetup).StartupDisk, ok = plugin.RawToTValue[string](v.Value, v.Error) 3840 return 3841 }, 3842 "macos.systemsetup.waitForStartupAfterPowerFailure": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3843 r.(*mqlMacosSystemsetup).WaitForStartupAfterPowerFailure, ok = plugin.RawToTValue[string](v.Value, v.Error) 3844 return 3845 }, 3846 "macos.systemsetup.disableKeyboardWhenEnclosureLockIsEngaged": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3847 r.(*mqlMacosSystemsetup).DisableKeyboardWhenEnclosureLockIsEngaged, ok = plugin.RawToTValue[string](v.Value, v.Error) 3848 return 3849 }, 3850 "windows.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3851 r.(*mqlWindows).__id, ok = v.Value.(string) 3852 return 3853 }, 3854 "windows.computerInfo": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3855 r.(*mqlWindows).ComputerInfo, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 3856 return 3857 }, 3858 "windows.hotfixes": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3859 r.(*mqlWindows).Hotfixes, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3860 return 3861 }, 3862 "windows.features": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3863 r.(*mqlWindows).Features, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3864 return 3865 }, 3866 "windows.hotfix.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3867 r.(*mqlWindowsHotfix).__id, ok = v.Value.(string) 3868 return 3869 }, 3870 "windows.hotfix.hotfixId": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3871 r.(*mqlWindowsHotfix).HotfixId, ok = plugin.RawToTValue[string](v.Value, v.Error) 3872 return 3873 }, 3874 "windows.hotfix.description": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3875 r.(*mqlWindowsHotfix).Description, ok = plugin.RawToTValue[string](v.Value, v.Error) 3876 return 3877 }, 3878 "windows.hotfix.caption": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3879 r.(*mqlWindowsHotfix).Caption, ok = plugin.RawToTValue[string](v.Value, v.Error) 3880 return 3881 }, 3882 "windows.hotfix.installedOn": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3883 r.(*mqlWindowsHotfix).InstalledOn, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) 3884 return 3885 }, 3886 "windows.hotfix.installedBy": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3887 r.(*mqlWindowsHotfix).InstalledBy, ok = plugin.RawToTValue[string](v.Value, v.Error) 3888 return 3889 }, 3890 "windows.feature.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3891 r.(*mqlWindowsFeature).__id, ok = v.Value.(string) 3892 return 3893 }, 3894 "windows.feature.path": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3895 r.(*mqlWindowsFeature).Path, ok = plugin.RawToTValue[string](v.Value, v.Error) 3896 return 3897 }, 3898 "windows.feature.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3899 r.(*mqlWindowsFeature).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 3900 return 3901 }, 3902 "windows.feature.displayName": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3903 r.(*mqlWindowsFeature).DisplayName, ok = plugin.RawToTValue[string](v.Value, v.Error) 3904 return 3905 }, 3906 "windows.feature.description": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3907 r.(*mqlWindowsFeature).Description, ok = plugin.RawToTValue[string](v.Value, v.Error) 3908 return 3909 }, 3910 "windows.feature.installed": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3911 r.(*mqlWindowsFeature).Installed, ok = plugin.RawToTValue[bool](v.Value, v.Error) 3912 return 3913 }, 3914 "windows.feature.installState": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3915 r.(*mqlWindowsFeature).InstallState, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3916 return 3917 }, 3918 "windows.firewall.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3919 r.(*mqlWindowsFirewall).__id, ok = v.Value.(string) 3920 return 3921 }, 3922 "windows.firewall.settings": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3923 r.(*mqlWindowsFirewall).Settings, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 3924 return 3925 }, 3926 "windows.firewall.profiles": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3927 r.(*mqlWindowsFirewall).Profiles, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3928 return 3929 }, 3930 "windows.firewall.rules": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3931 r.(*mqlWindowsFirewall).Rules, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 3932 return 3933 }, 3934 "windows.firewall.profile.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3935 r.(*mqlWindowsFirewallProfile).__id, ok = v.Value.(string) 3936 return 3937 }, 3938 "windows.firewall.profile.instanceID": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3939 r.(*mqlWindowsFirewallProfile).InstanceID, ok = plugin.RawToTValue[string](v.Value, v.Error) 3940 return 3941 }, 3942 "windows.firewall.profile.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3943 r.(*mqlWindowsFirewallProfile).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 3944 return 3945 }, 3946 "windows.firewall.profile.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3947 r.(*mqlWindowsFirewallProfile).Enabled, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3948 return 3949 }, 3950 "windows.firewall.profile.defaultInboundAction": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3951 r.(*mqlWindowsFirewallProfile).DefaultInboundAction, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3952 return 3953 }, 3954 "windows.firewall.profile.defaultOutboundAction": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3955 r.(*mqlWindowsFirewallProfile).DefaultOutboundAction, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3956 return 3957 }, 3958 "windows.firewall.profile.allowInboundRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3959 r.(*mqlWindowsFirewallProfile).AllowInboundRules, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3960 return 3961 }, 3962 "windows.firewall.profile.allowLocalFirewallRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3963 r.(*mqlWindowsFirewallProfile).AllowLocalFirewallRules, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3964 return 3965 }, 3966 "windows.firewall.profile.allowLocalIPsecRules": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3967 r.(*mqlWindowsFirewallProfile).AllowLocalIPsecRules, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3968 return 3969 }, 3970 "windows.firewall.profile.allowUserApps": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3971 r.(*mqlWindowsFirewallProfile).AllowUserApps, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3972 return 3973 }, 3974 "windows.firewall.profile.allowUserPorts": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3975 r.(*mqlWindowsFirewallProfile).AllowUserPorts, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3976 return 3977 }, 3978 "windows.firewall.profile.allowUnicastResponseToMulticast": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3979 r.(*mqlWindowsFirewallProfile).AllowUnicastResponseToMulticast, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3980 return 3981 }, 3982 "windows.firewall.profile.notifyOnListen": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3983 r.(*mqlWindowsFirewallProfile).NotifyOnListen, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3984 return 3985 }, 3986 "windows.firewall.profile.enableStealthModeForIPsec": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3987 r.(*mqlWindowsFirewallProfile).EnableStealthModeForIPsec, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3988 return 3989 }, 3990 "windows.firewall.profile.logMaxSizeKilobytes": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3991 r.(*mqlWindowsFirewallProfile).LogMaxSizeKilobytes, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3992 return 3993 }, 3994 "windows.firewall.profile.logAllowed": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3995 r.(*mqlWindowsFirewallProfile).LogAllowed, ok = plugin.RawToTValue[int64](v.Value, v.Error) 3996 return 3997 }, 3998 "windows.firewall.profile.logBlocked": func(r plugin.Resource, v *llx.RawData) (ok bool) { 3999 r.(*mqlWindowsFirewallProfile).LogBlocked, ok = plugin.RawToTValue[int64](v.Value, v.Error) 4000 return 4001 }, 4002 "windows.firewall.profile.logIgnored": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4003 r.(*mqlWindowsFirewallProfile).LogIgnored, ok = plugin.RawToTValue[int64](v.Value, v.Error) 4004 return 4005 }, 4006 "windows.firewall.profile.logFileName": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4007 r.(*mqlWindowsFirewallProfile).LogFileName, ok = plugin.RawToTValue[string](v.Value, v.Error) 4008 return 4009 }, 4010 "windows.firewall.rule.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4011 r.(*mqlWindowsFirewallRule).__id, ok = v.Value.(string) 4012 return 4013 }, 4014 "windows.firewall.rule.instanceID": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4015 r.(*mqlWindowsFirewallRule).InstanceID, ok = plugin.RawToTValue[string](v.Value, v.Error) 4016 return 4017 }, 4018 "windows.firewall.rule.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4019 r.(*mqlWindowsFirewallRule).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 4020 return 4021 }, 4022 "windows.firewall.rule.displayName": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4023 r.(*mqlWindowsFirewallRule).DisplayName, ok = plugin.RawToTValue[string](v.Value, v.Error) 4024 return 4025 }, 4026 "windows.firewall.rule.description": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4027 r.(*mqlWindowsFirewallRule).Description, ok = plugin.RawToTValue[string](v.Value, v.Error) 4028 return 4029 }, 4030 "windows.firewall.rule.displayGroup": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4031 r.(*mqlWindowsFirewallRule).DisplayGroup, ok = plugin.RawToTValue[string](v.Value, v.Error) 4032 return 4033 }, 4034 "windows.firewall.rule.enabled": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4035 r.(*mqlWindowsFirewallRule).Enabled, ok = plugin.RawToTValue[int64](v.Value, v.Error) 4036 return 4037 }, 4038 "windows.firewall.rule.direction": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4039 r.(*mqlWindowsFirewallRule).Direction, ok = plugin.RawToTValue[int64](v.Value, v.Error) 4040 return 4041 }, 4042 "windows.firewall.rule.action": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4043 r.(*mqlWindowsFirewallRule).Action, ok = plugin.RawToTValue[int64](v.Value, v.Error) 4044 return 4045 }, 4046 "windows.firewall.rule.edgeTraversalPolicy": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4047 r.(*mqlWindowsFirewallRule).EdgeTraversalPolicy, ok = plugin.RawToTValue[int64](v.Value, v.Error) 4048 return 4049 }, 4050 "windows.firewall.rule.looseSourceMapping": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4051 r.(*mqlWindowsFirewallRule).LooseSourceMapping, ok = plugin.RawToTValue[bool](v.Value, v.Error) 4052 return 4053 }, 4054 "windows.firewall.rule.localOnlyMapping": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4055 r.(*mqlWindowsFirewallRule).LocalOnlyMapping, ok = plugin.RawToTValue[bool](v.Value, v.Error) 4056 return 4057 }, 4058 "windows.firewall.rule.primaryStatus": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4059 r.(*mqlWindowsFirewallRule).PrimaryStatus, ok = plugin.RawToTValue[int64](v.Value, v.Error) 4060 return 4061 }, 4062 "windows.firewall.rule.status": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4063 r.(*mqlWindowsFirewallRule).Status, ok = plugin.RawToTValue[string](v.Value, v.Error) 4064 return 4065 }, 4066 "windows.firewall.rule.enforcementStatus": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4067 r.(*mqlWindowsFirewallRule).EnforcementStatus, ok = plugin.RawToTValue[string](v.Value, v.Error) 4068 return 4069 }, 4070 "windows.firewall.rule.policyStoreSource": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4071 r.(*mqlWindowsFirewallRule).PolicyStoreSource, ok = plugin.RawToTValue[string](v.Value, v.Error) 4072 return 4073 }, 4074 "windows.firewall.rule.policyStoreSourceType": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4075 r.(*mqlWindowsFirewallRule).PolicyStoreSourceType, ok = plugin.RawToTValue[int64](v.Value, v.Error) 4076 return 4077 }, 4078 "windows.bitlocker.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4079 r.(*mqlWindowsBitlocker).__id, ok = v.Value.(string) 4080 return 4081 }, 4082 "windows.bitlocker.volumes": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4083 r.(*mqlWindowsBitlocker).Volumes, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 4084 return 4085 }, 4086 "windows.bitlocker.volume.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4087 r.(*mqlWindowsBitlockerVolume).__id, ok = v.Value.(string) 4088 return 4089 }, 4090 "windows.bitlocker.volume.deviceID": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4091 r.(*mqlWindowsBitlockerVolume).DeviceID, ok = plugin.RawToTValue[string](v.Value, v.Error) 4092 return 4093 }, 4094 "windows.bitlocker.volume.driveLetter": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4095 r.(*mqlWindowsBitlockerVolume).DriveLetter, ok = plugin.RawToTValue[string](v.Value, v.Error) 4096 return 4097 }, 4098 "windows.bitlocker.volume.conversionStatus": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4099 r.(*mqlWindowsBitlockerVolume).ConversionStatus, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 4100 return 4101 }, 4102 "windows.bitlocker.volume.encryptionMethod": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4103 r.(*mqlWindowsBitlockerVolume).EncryptionMethod, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 4104 return 4105 }, 4106 "windows.bitlocker.volume.lockStatus": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4107 r.(*mqlWindowsBitlockerVolume).LockStatus, ok = plugin.RawToTValue[int64](v.Value, v.Error) 4108 return 4109 }, 4110 "windows.bitlocker.volume.persistentVolumeID": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4111 r.(*mqlWindowsBitlockerVolume).PersistentVolumeID, ok = plugin.RawToTValue[string](v.Value, v.Error) 4112 return 4113 }, 4114 "windows.bitlocker.volume.protectionStatus": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4115 r.(*mqlWindowsBitlockerVolume).ProtectionStatus, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 4116 return 4117 }, 4118 "windows.bitlocker.volume.version": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4119 r.(*mqlWindowsBitlockerVolume).Version, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 4120 return 4121 }, 4122 "windows.security.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4123 r.(*mqlWindowsSecurity).__id, ok = v.Value.(string) 4124 return 4125 }, 4126 "windows.security.products": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4127 r.(*mqlWindowsSecurity).Products, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) 4128 return 4129 }, 4130 "windows.security.product.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4131 r.(*mqlWindowsSecurityProduct).__id, ok = v.Value.(string) 4132 return 4133 }, 4134 "windows.security.product.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4135 r.(*mqlWindowsSecurityProduct).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) 4136 return 4137 }, 4138 "windows.security.product.guid": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4139 r.(*mqlWindowsSecurityProduct).Guid, ok = plugin.RawToTValue[string](v.Value, v.Error) 4140 return 4141 }, 4142 "windows.security.product.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4143 r.(*mqlWindowsSecurityProduct).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) 4144 return 4145 }, 4146 "windows.security.product.state": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4147 r.(*mqlWindowsSecurityProduct).State, ok = plugin.RawToTValue[int64](v.Value, v.Error) 4148 return 4149 }, 4150 "windows.security.product.productState": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4151 r.(*mqlWindowsSecurityProduct).ProductState, ok = plugin.RawToTValue[string](v.Value, v.Error) 4152 return 4153 }, 4154 "windows.security.product.signatureState": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4155 r.(*mqlWindowsSecurityProduct).SignatureState, ok = plugin.RawToTValue[string](v.Value, v.Error) 4156 return 4157 }, 4158 "windows.security.product.timestamp": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4159 r.(*mqlWindowsSecurityProduct).Timestamp, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) 4160 return 4161 }, 4162 "windows.security.health.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4163 r.(*mqlWindowsSecurityHealth).__id, ok = v.Value.(string) 4164 return 4165 }, 4166 "windows.security.health.firewall": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4167 r.(*mqlWindowsSecurityHealth).Firewall, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 4168 return 4169 }, 4170 "windows.security.health.autoUpdate": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4171 r.(*mqlWindowsSecurityHealth).AutoUpdate, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 4172 return 4173 }, 4174 "windows.security.health.antiVirus": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4175 r.(*mqlWindowsSecurityHealth).AntiVirus, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 4176 return 4177 }, 4178 "windows.security.health.antiSpyware": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4179 r.(*mqlWindowsSecurityHealth).AntiSpyware, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 4180 return 4181 }, 4182 "windows.security.health.internetSettings": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4183 r.(*mqlWindowsSecurityHealth).InternetSettings, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 4184 return 4185 }, 4186 "windows.security.health.uac": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4187 r.(*mqlWindowsSecurityHealth).Uac, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 4188 return 4189 }, 4190 "windows.security.health.securityCenterService": func(r plugin.Resource, v *llx.RawData) (ok bool) { 4191 r.(*mqlWindowsSecurityHealth).SecurityCenterService, ok = plugin.RawToTValue[interface{}](v.Value, v.Error) 4192 return 4193 }, 4194 } 4195 4196 func SetData(resource plugin.Resource, field string, val *llx.RawData) error { 4197 f, ok := setDataFields[resource.MqlName() + "." + field] 4198 if !ok { 4199 return errors.New("[os] cannot set '"+field+"' in resource '"+resource.MqlName()+"', field not found") 4200 } 4201 4202 if ok := f(resource, val); !ok { 4203 return errors.New("[os] cannot set '"+field+"' in resource '"+resource.MqlName()+"', type does not match") 4204 } 4205 return nil 4206 } 4207 4208 func SetAllData(resource plugin.Resource, args map[string]*llx.RawData) error { 4209 var err error 4210 for k, v := range args { 4211 if err = SetData(resource, k, v); err != nil { 4212 return err 4213 } 4214 } 4215 return nil 4216 } 4217 4218 // mqlAsset for the asset resource 4219 type mqlAsset struct { 4220 MqlRuntime *plugin.Runtime 4221 __id string 4222 // optional: if you define mqlAssetInternal it will be used here 4223 VulnerabilityReport plugin.TValue[interface{}] 4224 } 4225 4226 // createAsset creates a new instance of this resource 4227 func createAsset(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 4228 res := &mqlAsset{ 4229 MqlRuntime: runtime, 4230 } 4231 4232 err := SetAllData(res, args) 4233 if err != nil { 4234 return res, err 4235 } 4236 4237 // to override __id implement: id() (string, error) 4238 4239 if runtime.HasRecording { 4240 args, err = runtime.ResourceFromRecording("asset", res.__id) 4241 if err != nil || args == nil { 4242 return res, err 4243 } 4244 return res, SetAllData(res, args) 4245 } 4246 4247 return res, nil 4248 } 4249 4250 func (c *mqlAsset) MqlName() string { 4251 return "asset" 4252 } 4253 4254 func (c *mqlAsset) MqlID() string { 4255 return c.__id 4256 } 4257 4258 func (c *mqlAsset) GetVulnerabilityReport() *plugin.TValue[interface{}] { 4259 return plugin.GetOrCompute[interface{}](&c.VulnerabilityReport, func() (interface{}, error) { 4260 return c.vulnerabilityReport() 4261 }) 4262 } 4263 4264 // mqlAssetEol for the asset.eol resource 4265 type mqlAssetEol struct { 4266 MqlRuntime *plugin.Runtime 4267 __id string 4268 // optional: if you define mqlAssetEolInternal it will be used here 4269 DocsUrl plugin.TValue[string] 4270 ProductUrl plugin.TValue[string] 4271 Date plugin.TValue[*time.Time] 4272 } 4273 4274 // createAssetEol creates a new instance of this resource 4275 func createAssetEol(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 4276 res := &mqlAssetEol{ 4277 MqlRuntime: runtime, 4278 } 4279 4280 err := SetAllData(res, args) 4281 if err != nil { 4282 return res, err 4283 } 4284 4285 // to override __id implement: id() (string, error) 4286 4287 if runtime.HasRecording { 4288 args, err = runtime.ResourceFromRecording("asset.eol", res.__id) 4289 if err != nil || args == nil { 4290 return res, err 4291 } 4292 return res, SetAllData(res, args) 4293 } 4294 4295 return res, nil 4296 } 4297 4298 func (c *mqlAssetEol) MqlName() string { 4299 return "asset.eol" 4300 } 4301 4302 func (c *mqlAssetEol) MqlID() string { 4303 return c.__id 4304 } 4305 4306 func (c *mqlAssetEol) GetDocsUrl() *plugin.TValue[string] { 4307 return &c.DocsUrl 4308 } 4309 4310 func (c *mqlAssetEol) GetProductUrl() *plugin.TValue[string] { 4311 return &c.ProductUrl 4312 } 4313 4314 func (c *mqlAssetEol) GetDate() *plugin.TValue[*time.Time] { 4315 return &c.Date 4316 } 4317 4318 // mqlMondooEol for the mondoo.eol resource 4319 type mqlMondooEol struct { 4320 MqlRuntime *plugin.Runtime 4321 __id string 4322 // optional: if you define mqlMondooEolInternal it will be used here 4323 Product plugin.TValue[string] 4324 Version plugin.TValue[string] 4325 Date plugin.TValue[*time.Time] 4326 } 4327 4328 // createMondooEol creates a new instance of this resource 4329 func createMondooEol(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 4330 res := &mqlMondooEol{ 4331 MqlRuntime: runtime, 4332 } 4333 4334 err := SetAllData(res, args) 4335 if err != nil { 4336 return res, err 4337 } 4338 4339 if res.__id == "" { 4340 res.__id, err = res.id() 4341 if err != nil { 4342 return nil, err 4343 } 4344 } 4345 4346 if runtime.HasRecording { 4347 args, err = runtime.ResourceFromRecording("mondoo.eol", res.__id) 4348 if err != nil || args == nil { 4349 return res, err 4350 } 4351 return res, SetAllData(res, args) 4352 } 4353 4354 return res, nil 4355 } 4356 4357 func (c *mqlMondooEol) MqlName() string { 4358 return "mondoo.eol" 4359 } 4360 4361 func (c *mqlMondooEol) MqlID() string { 4362 return c.__id 4363 } 4364 4365 func (c *mqlMondooEol) GetProduct() *plugin.TValue[string] { 4366 return &c.Product 4367 } 4368 4369 func (c *mqlMondooEol) GetVersion() *plugin.TValue[string] { 4370 return &c.Version 4371 } 4372 4373 func (c *mqlMondooEol) GetDate() *plugin.TValue[*time.Time] { 4374 return plugin.GetOrCompute[*time.Time](&c.Date, func() (*time.Time, error) { 4375 return c.date() 4376 }) 4377 } 4378 4379 // mqlPlatformEol for the platform.eol resource 4380 type mqlPlatformEol struct { 4381 MqlRuntime *plugin.Runtime 4382 __id string 4383 // optional: if you define mqlPlatformEolInternal it will be used here 4384 DocsUrl plugin.TValue[string] 4385 ProductUrl plugin.TValue[string] 4386 Date plugin.TValue[*time.Time] 4387 } 4388 4389 // createPlatformEol creates a new instance of this resource 4390 func createPlatformEol(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 4391 res := &mqlPlatformEol{ 4392 MqlRuntime: runtime, 4393 } 4394 4395 err := SetAllData(res, args) 4396 if err != nil { 4397 return res, err 4398 } 4399 4400 // to override __id implement: id() (string, error) 4401 4402 if runtime.HasRecording { 4403 args, err = runtime.ResourceFromRecording("platform.eol", res.__id) 4404 if err != nil || args == nil { 4405 return res, err 4406 } 4407 return res, SetAllData(res, args) 4408 } 4409 4410 return res, nil 4411 } 4412 4413 func (c *mqlPlatformEol) MqlName() string { 4414 return "platform.eol" 4415 } 4416 4417 func (c *mqlPlatformEol) MqlID() string { 4418 return c.__id 4419 } 4420 4421 func (c *mqlPlatformEol) GetDocsUrl() *plugin.TValue[string] { 4422 return &c.DocsUrl 4423 } 4424 4425 func (c *mqlPlatformEol) GetProductUrl() *plugin.TValue[string] { 4426 return &c.ProductUrl 4427 } 4428 4429 func (c *mqlPlatformEol) GetDate() *plugin.TValue[*time.Time] { 4430 return &c.Date 4431 } 4432 4433 // mqlPlatform for the platform resource 4434 type mqlPlatform struct { 4435 MqlRuntime *plugin.Runtime 4436 __id string 4437 // optional: if you define mqlPlatformInternal it will be used here 4438 VulnerabilityReport plugin.TValue[interface{}] 4439 } 4440 4441 // createPlatform creates a new instance of this resource 4442 func createPlatform(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 4443 res := &mqlPlatform{ 4444 MqlRuntime: runtime, 4445 } 4446 4447 err := SetAllData(res, args) 4448 if err != nil { 4449 return res, err 4450 } 4451 4452 // to override __id implement: id() (string, error) 4453 4454 if runtime.HasRecording { 4455 args, err = runtime.ResourceFromRecording("platform", res.__id) 4456 if err != nil || args == nil { 4457 return res, err 4458 } 4459 return res, SetAllData(res, args) 4460 } 4461 4462 return res, nil 4463 } 4464 4465 func (c *mqlPlatform) MqlName() string { 4466 return "platform" 4467 } 4468 4469 func (c *mqlPlatform) MqlID() string { 4470 return c.__id 4471 } 4472 4473 func (c *mqlPlatform) GetVulnerabilityReport() *plugin.TValue[interface{}] { 4474 return plugin.GetOrCompute[interface{}](&c.VulnerabilityReport, func() (interface{}, error) { 4475 return c.vulnerabilityReport() 4476 }) 4477 } 4478 4479 // mqlPlatformAdvisories for the platform.advisories resource 4480 type mqlPlatformAdvisories struct { 4481 MqlRuntime *plugin.Runtime 4482 __id string 4483 // optional: if you define mqlPlatformAdvisoriesInternal it will be used here 4484 Cvss plugin.TValue[*mqlAuditCvss] 4485 Stats plugin.TValue[interface{}] 4486 List plugin.TValue[[]interface{}] 4487 } 4488 4489 // createPlatformAdvisories creates a new instance of this resource 4490 func createPlatformAdvisories(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 4491 res := &mqlPlatformAdvisories{ 4492 MqlRuntime: runtime, 4493 } 4494 4495 err := SetAllData(res, args) 4496 if err != nil { 4497 return res, err 4498 } 4499 4500 if res.__id == "" { 4501 res.__id, err = res.id() 4502 if err != nil { 4503 return nil, err 4504 } 4505 } 4506 4507 if runtime.HasRecording { 4508 args, err = runtime.ResourceFromRecording("platform.advisories", res.__id) 4509 if err != nil || args == nil { 4510 return res, err 4511 } 4512 return res, SetAllData(res, args) 4513 } 4514 4515 return res, nil 4516 } 4517 4518 func (c *mqlPlatformAdvisories) MqlName() string { 4519 return "platform.advisories" 4520 } 4521 4522 func (c *mqlPlatformAdvisories) MqlID() string { 4523 return c.__id 4524 } 4525 4526 func (c *mqlPlatformAdvisories) GetCvss() *plugin.TValue[*mqlAuditCvss] { 4527 return plugin.GetOrCompute[*mqlAuditCvss](&c.Cvss, func() (*mqlAuditCvss, error) { 4528 if c.MqlRuntime.HasRecording { 4529 d, err := c.MqlRuntime.FieldResourceFromRecording("platform.advisories", c.__id, "cvss") 4530 if err != nil { 4531 return nil, err 4532 } 4533 if d != nil { 4534 return d.Value.(*mqlAuditCvss), nil 4535 } 4536 } 4537 4538 return c.cvss() 4539 }) 4540 } 4541 4542 func (c *mqlPlatformAdvisories) GetStats() *plugin.TValue[interface{}] { 4543 return plugin.GetOrCompute[interface{}](&c.Stats, func() (interface{}, error) { 4544 return c.stats() 4545 }) 4546 } 4547 4548 func (c *mqlPlatformAdvisories) GetList() *plugin.TValue[[]interface{}] { 4549 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 4550 if c.MqlRuntime.HasRecording { 4551 d, err := c.MqlRuntime.FieldResourceFromRecording("platform.advisories", c.__id, "list") 4552 if err != nil { 4553 return nil, err 4554 } 4555 if d != nil { 4556 return d.Value.([]interface{}), nil 4557 } 4558 } 4559 4560 return c.list() 4561 }) 4562 } 4563 4564 // mqlPlatformCves for the platform.cves resource 4565 type mqlPlatformCves struct { 4566 MqlRuntime *plugin.Runtime 4567 __id string 4568 // optional: if you define mqlPlatformCvesInternal it will be used here 4569 Cvss plugin.TValue[*mqlAuditCvss] 4570 Stats plugin.TValue[interface{}] 4571 List plugin.TValue[[]interface{}] 4572 } 4573 4574 // createPlatformCves creates a new instance of this resource 4575 func createPlatformCves(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 4576 res := &mqlPlatformCves{ 4577 MqlRuntime: runtime, 4578 } 4579 4580 err := SetAllData(res, args) 4581 if err != nil { 4582 return res, err 4583 } 4584 4585 if res.__id == "" { 4586 res.__id, err = res.id() 4587 if err != nil { 4588 return nil, err 4589 } 4590 } 4591 4592 if runtime.HasRecording { 4593 args, err = runtime.ResourceFromRecording("platform.cves", res.__id) 4594 if err != nil || args == nil { 4595 return res, err 4596 } 4597 return res, SetAllData(res, args) 4598 } 4599 4600 return res, nil 4601 } 4602 4603 func (c *mqlPlatformCves) MqlName() string { 4604 return "platform.cves" 4605 } 4606 4607 func (c *mqlPlatformCves) MqlID() string { 4608 return c.__id 4609 } 4610 4611 func (c *mqlPlatformCves) GetCvss() *plugin.TValue[*mqlAuditCvss] { 4612 return plugin.GetOrCompute[*mqlAuditCvss](&c.Cvss, func() (*mqlAuditCvss, error) { 4613 if c.MqlRuntime.HasRecording { 4614 d, err := c.MqlRuntime.FieldResourceFromRecording("platform.cves", c.__id, "cvss") 4615 if err != nil { 4616 return nil, err 4617 } 4618 if d != nil { 4619 return d.Value.(*mqlAuditCvss), nil 4620 } 4621 } 4622 4623 return c.cvss() 4624 }) 4625 } 4626 4627 func (c *mqlPlatformCves) GetStats() *plugin.TValue[interface{}] { 4628 return plugin.GetOrCompute[interface{}](&c.Stats, func() (interface{}, error) { 4629 return c.stats() 4630 }) 4631 } 4632 4633 func (c *mqlPlatformCves) GetList() *plugin.TValue[[]interface{}] { 4634 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 4635 if c.MqlRuntime.HasRecording { 4636 d, err := c.MqlRuntime.FieldResourceFromRecording("platform.cves", c.__id, "list") 4637 if err != nil { 4638 return nil, err 4639 } 4640 if d != nil { 4641 return d.Value.([]interface{}), nil 4642 } 4643 } 4644 4645 return c.list() 4646 }) 4647 } 4648 4649 // mqlAuditCvss for the audit.cvss resource 4650 type mqlAuditCvss struct { 4651 MqlRuntime *plugin.Runtime 4652 __id string 4653 // optional: if you define mqlAuditCvssInternal it will be used here 4654 Score plugin.TValue[float64] 4655 Vector plugin.TValue[string] 4656 } 4657 4658 // createAuditCvss creates a new instance of this resource 4659 func createAuditCvss(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 4660 res := &mqlAuditCvss{ 4661 MqlRuntime: runtime, 4662 } 4663 4664 err := SetAllData(res, args) 4665 if err != nil { 4666 return res, err 4667 } 4668 4669 // to override __id implement: id() (string, error) 4670 4671 if runtime.HasRecording { 4672 args, err = runtime.ResourceFromRecording("audit.cvss", res.__id) 4673 if err != nil || args == nil { 4674 return res, err 4675 } 4676 return res, SetAllData(res, args) 4677 } 4678 4679 return res, nil 4680 } 4681 4682 func (c *mqlAuditCvss) MqlName() string { 4683 return "audit.cvss" 4684 } 4685 4686 func (c *mqlAuditCvss) MqlID() string { 4687 return c.__id 4688 } 4689 4690 func (c *mqlAuditCvss) GetScore() *plugin.TValue[float64] { 4691 return &c.Score 4692 } 4693 4694 func (c *mqlAuditCvss) GetVector() *plugin.TValue[string] { 4695 return &c.Vector 4696 } 4697 4698 // mqlAuditAdvisory for the audit.advisory resource 4699 type mqlAuditAdvisory struct { 4700 MqlRuntime *plugin.Runtime 4701 __id string 4702 // optional: if you define mqlAuditAdvisoryInternal it will be used here 4703 Id plugin.TValue[string] 4704 Mrn plugin.TValue[string] 4705 Title plugin.TValue[string] 4706 Description plugin.TValue[string] 4707 Published plugin.TValue[*time.Time] 4708 Modified plugin.TValue[*time.Time] 4709 WorstScore plugin.TValue[*mqlAuditCvss] 4710 } 4711 4712 // createAuditAdvisory creates a new instance of this resource 4713 func createAuditAdvisory(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 4714 res := &mqlAuditAdvisory{ 4715 MqlRuntime: runtime, 4716 } 4717 4718 err := SetAllData(res, args) 4719 if err != nil { 4720 return res, err 4721 } 4722 4723 // to override __id implement: id() (string, error) 4724 4725 if runtime.HasRecording { 4726 args, err = runtime.ResourceFromRecording("audit.advisory", res.__id) 4727 if err != nil || args == nil { 4728 return res, err 4729 } 4730 return res, SetAllData(res, args) 4731 } 4732 4733 return res, nil 4734 } 4735 4736 func (c *mqlAuditAdvisory) MqlName() string { 4737 return "audit.advisory" 4738 } 4739 4740 func (c *mqlAuditAdvisory) MqlID() string { 4741 return c.__id 4742 } 4743 4744 func (c *mqlAuditAdvisory) GetId() *plugin.TValue[string] { 4745 return &c.Id 4746 } 4747 4748 func (c *mqlAuditAdvisory) GetMrn() *plugin.TValue[string] { 4749 return &c.Mrn 4750 } 4751 4752 func (c *mqlAuditAdvisory) GetTitle() *plugin.TValue[string] { 4753 return &c.Title 4754 } 4755 4756 func (c *mqlAuditAdvisory) GetDescription() *plugin.TValue[string] { 4757 return &c.Description 4758 } 4759 4760 func (c *mqlAuditAdvisory) GetPublished() *plugin.TValue[*time.Time] { 4761 return &c.Published 4762 } 4763 4764 func (c *mqlAuditAdvisory) GetModified() *plugin.TValue[*time.Time] { 4765 return &c.Modified 4766 } 4767 4768 func (c *mqlAuditAdvisory) GetWorstScore() *plugin.TValue[*mqlAuditCvss] { 4769 return &c.WorstScore 4770 } 4771 4772 // mqlAuditCve for the audit.cve resource 4773 type mqlAuditCve struct { 4774 MqlRuntime *plugin.Runtime 4775 __id string 4776 // optional: if you define mqlAuditCveInternal it will be used here 4777 Id plugin.TValue[string] 4778 Mrn plugin.TValue[string] 4779 State plugin.TValue[string] 4780 Summary plugin.TValue[string] 4781 Unscored plugin.TValue[bool] 4782 Published plugin.TValue[*time.Time] 4783 Modified plugin.TValue[*time.Time] 4784 WorstScore plugin.TValue[*mqlAuditCvss] 4785 } 4786 4787 // createAuditCve creates a new instance of this resource 4788 func createAuditCve(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 4789 res := &mqlAuditCve{ 4790 MqlRuntime: runtime, 4791 } 4792 4793 err := SetAllData(res, args) 4794 if err != nil { 4795 return res, err 4796 } 4797 4798 // to override __id implement: id() (string, error) 4799 4800 if runtime.HasRecording { 4801 args, err = runtime.ResourceFromRecording("audit.cve", res.__id) 4802 if err != nil || args == nil { 4803 return res, err 4804 } 4805 return res, SetAllData(res, args) 4806 } 4807 4808 return res, nil 4809 } 4810 4811 func (c *mqlAuditCve) MqlName() string { 4812 return "audit.cve" 4813 } 4814 4815 func (c *mqlAuditCve) MqlID() string { 4816 return c.__id 4817 } 4818 4819 func (c *mqlAuditCve) GetId() *plugin.TValue[string] { 4820 return &c.Id 4821 } 4822 4823 func (c *mqlAuditCve) GetMrn() *plugin.TValue[string] { 4824 return &c.Mrn 4825 } 4826 4827 func (c *mqlAuditCve) GetState() *plugin.TValue[string] { 4828 return &c.State 4829 } 4830 4831 func (c *mqlAuditCve) GetSummary() *plugin.TValue[string] { 4832 return &c.Summary 4833 } 4834 4835 func (c *mqlAuditCve) GetUnscored() *plugin.TValue[bool] { 4836 return &c.Unscored 4837 } 4838 4839 func (c *mqlAuditCve) GetPublished() *plugin.TValue[*time.Time] { 4840 return &c.Published 4841 } 4842 4843 func (c *mqlAuditCve) GetModified() *plugin.TValue[*time.Time] { 4844 return &c.Modified 4845 } 4846 4847 func (c *mqlAuditCve) GetWorstScore() *plugin.TValue[*mqlAuditCvss] { 4848 return &c.WorstScore 4849 } 4850 4851 // mqlMachine for the machine resource 4852 type mqlMachine struct { 4853 MqlRuntime *plugin.Runtime 4854 __id string 4855 mqlMachineInternal 4856 } 4857 4858 // createMachine creates a new instance of this resource 4859 func createMachine(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 4860 res := &mqlMachine{ 4861 MqlRuntime: runtime, 4862 } 4863 4864 err := SetAllData(res, args) 4865 if err != nil { 4866 return res, err 4867 } 4868 4869 // to override __id implement: id() (string, error) 4870 4871 if runtime.HasRecording { 4872 args, err = runtime.ResourceFromRecording("machine", res.__id) 4873 if err != nil || args == nil { 4874 return res, err 4875 } 4876 return res, SetAllData(res, args) 4877 } 4878 4879 return res, nil 4880 } 4881 4882 func (c *mqlMachine) MqlName() string { 4883 return "machine" 4884 } 4885 4886 func (c *mqlMachine) MqlID() string { 4887 return c.__id 4888 } 4889 4890 // mqlMachineBios for the machine.bios resource 4891 type mqlMachineBios struct { 4892 MqlRuntime *plugin.Runtime 4893 __id string 4894 // optional: if you define mqlMachineBiosInternal it will be used here 4895 Vendor plugin.TValue[string] 4896 Version plugin.TValue[string] 4897 ReleaseDate plugin.TValue[string] 4898 } 4899 4900 // createMachineBios creates a new instance of this resource 4901 func createMachineBios(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 4902 res := &mqlMachineBios{ 4903 MqlRuntime: runtime, 4904 } 4905 4906 err := SetAllData(res, args) 4907 if err != nil { 4908 return res, err 4909 } 4910 4911 // to override __id implement: id() (string, error) 4912 4913 if runtime.HasRecording { 4914 args, err = runtime.ResourceFromRecording("machine.bios", res.__id) 4915 if err != nil || args == nil { 4916 return res, err 4917 } 4918 return res, SetAllData(res, args) 4919 } 4920 4921 return res, nil 4922 } 4923 4924 func (c *mqlMachineBios) MqlName() string { 4925 return "machine.bios" 4926 } 4927 4928 func (c *mqlMachineBios) MqlID() string { 4929 return c.__id 4930 } 4931 4932 func (c *mqlMachineBios) GetVendor() *plugin.TValue[string] { 4933 return &c.Vendor 4934 } 4935 4936 func (c *mqlMachineBios) GetVersion() *plugin.TValue[string] { 4937 return &c.Version 4938 } 4939 4940 func (c *mqlMachineBios) GetReleaseDate() *plugin.TValue[string] { 4941 return &c.ReleaseDate 4942 } 4943 4944 // mqlMachineSystem for the machine.system resource 4945 type mqlMachineSystem struct { 4946 MqlRuntime *plugin.Runtime 4947 __id string 4948 // optional: if you define mqlMachineSystemInternal it will be used here 4949 Manufacturer plugin.TValue[string] 4950 Product plugin.TValue[string] 4951 Version plugin.TValue[string] 4952 Serial plugin.TValue[string] 4953 Uuid plugin.TValue[string] 4954 Sku plugin.TValue[string] 4955 Family plugin.TValue[string] 4956 } 4957 4958 // createMachineSystem creates a new instance of this resource 4959 func createMachineSystem(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 4960 res := &mqlMachineSystem{ 4961 MqlRuntime: runtime, 4962 } 4963 4964 err := SetAllData(res, args) 4965 if err != nil { 4966 return res, err 4967 } 4968 4969 // to override __id implement: id() (string, error) 4970 4971 if runtime.HasRecording { 4972 args, err = runtime.ResourceFromRecording("machine.system", res.__id) 4973 if err != nil || args == nil { 4974 return res, err 4975 } 4976 return res, SetAllData(res, args) 4977 } 4978 4979 return res, nil 4980 } 4981 4982 func (c *mqlMachineSystem) MqlName() string { 4983 return "machine.system" 4984 } 4985 4986 func (c *mqlMachineSystem) MqlID() string { 4987 return c.__id 4988 } 4989 4990 func (c *mqlMachineSystem) GetManufacturer() *plugin.TValue[string] { 4991 return &c.Manufacturer 4992 } 4993 4994 func (c *mqlMachineSystem) GetProduct() *plugin.TValue[string] { 4995 return &c.Product 4996 } 4997 4998 func (c *mqlMachineSystem) GetVersion() *plugin.TValue[string] { 4999 return &c.Version 5000 } 5001 5002 func (c *mqlMachineSystem) GetSerial() *plugin.TValue[string] { 5003 return &c.Serial 5004 } 5005 5006 func (c *mqlMachineSystem) GetUuid() *plugin.TValue[string] { 5007 return &c.Uuid 5008 } 5009 5010 func (c *mqlMachineSystem) GetSku() *plugin.TValue[string] { 5011 return &c.Sku 5012 } 5013 5014 func (c *mqlMachineSystem) GetFamily() *plugin.TValue[string] { 5015 return &c.Family 5016 } 5017 5018 // mqlMachineBaseboard for the machine.baseboard resource 5019 type mqlMachineBaseboard struct { 5020 MqlRuntime *plugin.Runtime 5021 __id string 5022 // optional: if you define mqlMachineBaseboardInternal it will be used here 5023 Manufacturer plugin.TValue[string] 5024 Product plugin.TValue[string] 5025 Version plugin.TValue[string] 5026 Serial plugin.TValue[string] 5027 AssetTag plugin.TValue[string] 5028 } 5029 5030 // createMachineBaseboard creates a new instance of this resource 5031 func createMachineBaseboard(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 5032 res := &mqlMachineBaseboard{ 5033 MqlRuntime: runtime, 5034 } 5035 5036 err := SetAllData(res, args) 5037 if err != nil { 5038 return res, err 5039 } 5040 5041 // to override __id implement: id() (string, error) 5042 5043 if runtime.HasRecording { 5044 args, err = runtime.ResourceFromRecording("machine.baseboard", res.__id) 5045 if err != nil || args == nil { 5046 return res, err 5047 } 5048 return res, SetAllData(res, args) 5049 } 5050 5051 return res, nil 5052 } 5053 5054 func (c *mqlMachineBaseboard) MqlName() string { 5055 return "machine.baseboard" 5056 } 5057 5058 func (c *mqlMachineBaseboard) MqlID() string { 5059 return c.__id 5060 } 5061 5062 func (c *mqlMachineBaseboard) GetManufacturer() *plugin.TValue[string] { 5063 return &c.Manufacturer 5064 } 5065 5066 func (c *mqlMachineBaseboard) GetProduct() *plugin.TValue[string] { 5067 return &c.Product 5068 } 5069 5070 func (c *mqlMachineBaseboard) GetVersion() *plugin.TValue[string] { 5071 return &c.Version 5072 } 5073 5074 func (c *mqlMachineBaseboard) GetSerial() *plugin.TValue[string] { 5075 return &c.Serial 5076 } 5077 5078 func (c *mqlMachineBaseboard) GetAssetTag() *plugin.TValue[string] { 5079 return &c.AssetTag 5080 } 5081 5082 // mqlMachineChassis for the machine.chassis resource 5083 type mqlMachineChassis struct { 5084 MqlRuntime *plugin.Runtime 5085 __id string 5086 // optional: if you define mqlMachineChassisInternal it will be used here 5087 Manufacturer plugin.TValue[string] 5088 Version plugin.TValue[string] 5089 Serial plugin.TValue[string] 5090 AssetTag plugin.TValue[string] 5091 } 5092 5093 // createMachineChassis creates a new instance of this resource 5094 func createMachineChassis(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 5095 res := &mqlMachineChassis{ 5096 MqlRuntime: runtime, 5097 } 5098 5099 err := SetAllData(res, args) 5100 if err != nil { 5101 return res, err 5102 } 5103 5104 // to override __id implement: id() (string, error) 5105 5106 if runtime.HasRecording { 5107 args, err = runtime.ResourceFromRecording("machine.chassis", res.__id) 5108 if err != nil || args == nil { 5109 return res, err 5110 } 5111 return res, SetAllData(res, args) 5112 } 5113 5114 return res, nil 5115 } 5116 5117 func (c *mqlMachineChassis) MqlName() string { 5118 return "machine.chassis" 5119 } 5120 5121 func (c *mqlMachineChassis) MqlID() string { 5122 return c.__id 5123 } 5124 5125 func (c *mqlMachineChassis) GetManufacturer() *plugin.TValue[string] { 5126 return &c.Manufacturer 5127 } 5128 5129 func (c *mqlMachineChassis) GetVersion() *plugin.TValue[string] { 5130 return &c.Version 5131 } 5132 5133 func (c *mqlMachineChassis) GetSerial() *plugin.TValue[string] { 5134 return &c.Serial 5135 } 5136 5137 func (c *mqlMachineChassis) GetAssetTag() *plugin.TValue[string] { 5138 return &c.AssetTag 5139 } 5140 5141 // mqlOs for the os resource 5142 type mqlOs struct { 5143 MqlRuntime *plugin.Runtime 5144 __id string 5145 // optional: if you define mqlOsInternal it will be used here 5146 Name plugin.TValue[string] 5147 Env plugin.TValue[map[string]interface{}] 5148 Path plugin.TValue[[]interface{}] 5149 Uptime plugin.TValue[*time.Time] 5150 Updates plugin.TValue[[]interface{}] 5151 Rebootpending plugin.TValue[bool] 5152 Hostname plugin.TValue[string] 5153 Machineid plugin.TValue[string] 5154 } 5155 5156 // createOs creates a new instance of this resource 5157 func createOs(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 5158 res := &mqlOs{ 5159 MqlRuntime: runtime, 5160 } 5161 5162 err := SetAllData(res, args) 5163 if err != nil { 5164 return res, err 5165 } 5166 5167 // to override __id implement: id() (string, error) 5168 5169 if runtime.HasRecording { 5170 args, err = runtime.ResourceFromRecording("os", res.__id) 5171 if err != nil || args == nil { 5172 return res, err 5173 } 5174 return res, SetAllData(res, args) 5175 } 5176 5177 return res, nil 5178 } 5179 5180 func (c *mqlOs) MqlName() string { 5181 return "os" 5182 } 5183 5184 func (c *mqlOs) MqlID() string { 5185 return c.__id 5186 } 5187 5188 func (c *mqlOs) GetName() *plugin.TValue[string] { 5189 return plugin.GetOrCompute[string](&c.Name, func() (string, error) { 5190 return c.name() 5191 }) 5192 } 5193 5194 func (c *mqlOs) GetEnv() *plugin.TValue[map[string]interface{}] { 5195 return plugin.GetOrCompute[map[string]interface{}](&c.Env, func() (map[string]interface{}, error) { 5196 return c.env() 5197 }) 5198 } 5199 5200 func (c *mqlOs) GetPath() *plugin.TValue[[]interface{}] { 5201 return plugin.GetOrCompute[[]interface{}](&c.Path, func() ([]interface{}, error) { 5202 vargEnv := c.GetEnv() 5203 if vargEnv.Error != nil { 5204 return nil, vargEnv.Error 5205 } 5206 5207 return c.path(vargEnv.Data) 5208 }) 5209 } 5210 5211 func (c *mqlOs) GetUptime() *plugin.TValue[*time.Time] { 5212 return plugin.GetOrCompute[*time.Time](&c.Uptime, func() (*time.Time, error) { 5213 return c.uptime() 5214 }) 5215 } 5216 5217 func (c *mqlOs) GetUpdates() *plugin.TValue[[]interface{}] { 5218 return plugin.GetOrCompute[[]interface{}](&c.Updates, func() ([]interface{}, error) { 5219 if c.MqlRuntime.HasRecording { 5220 d, err := c.MqlRuntime.FieldResourceFromRecording("os", c.__id, "updates") 5221 if err != nil { 5222 return nil, err 5223 } 5224 if d != nil { 5225 return d.Value.([]interface{}), nil 5226 } 5227 } 5228 5229 return c.updates() 5230 }) 5231 } 5232 5233 func (c *mqlOs) GetRebootpending() *plugin.TValue[bool] { 5234 return plugin.GetOrCompute[bool](&c.Rebootpending, func() (bool, error) { 5235 return c.rebootpending() 5236 }) 5237 } 5238 5239 func (c *mqlOs) GetHostname() *plugin.TValue[string] { 5240 return plugin.GetOrCompute[string](&c.Hostname, func() (string, error) { 5241 return c.hostname() 5242 }) 5243 } 5244 5245 func (c *mqlOs) GetMachineid() *plugin.TValue[string] { 5246 return plugin.GetOrCompute[string](&c.Machineid, func() (string, error) { 5247 return c.machineid() 5248 }) 5249 } 5250 5251 // mqlOsUpdate for the os.update resource 5252 type mqlOsUpdate struct { 5253 MqlRuntime *plugin.Runtime 5254 __id string 5255 // optional: if you define mqlOsUpdateInternal it will be used here 5256 Name plugin.TValue[string] 5257 Category plugin.TValue[string] 5258 Severity plugin.TValue[string] 5259 Restart plugin.TValue[bool] 5260 Format plugin.TValue[string] 5261 } 5262 5263 // createOsUpdate creates a new instance of this resource 5264 func createOsUpdate(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 5265 res := &mqlOsUpdate{ 5266 MqlRuntime: runtime, 5267 } 5268 5269 err := SetAllData(res, args) 5270 if err != nil { 5271 return res, err 5272 } 5273 5274 if res.__id == "" { 5275 res.__id, err = res.id() 5276 if err != nil { 5277 return nil, err 5278 } 5279 } 5280 5281 if runtime.HasRecording { 5282 args, err = runtime.ResourceFromRecording("os.update", res.__id) 5283 if err != nil || args == nil { 5284 return res, err 5285 } 5286 return res, SetAllData(res, args) 5287 } 5288 5289 return res, nil 5290 } 5291 5292 func (c *mqlOsUpdate) MqlName() string { 5293 return "os.update" 5294 } 5295 5296 func (c *mqlOsUpdate) MqlID() string { 5297 return c.__id 5298 } 5299 5300 func (c *mqlOsUpdate) GetName() *plugin.TValue[string] { 5301 return &c.Name 5302 } 5303 5304 func (c *mqlOsUpdate) GetCategory() *plugin.TValue[string] { 5305 return &c.Category 5306 } 5307 5308 func (c *mqlOsUpdate) GetSeverity() *plugin.TValue[string] { 5309 return &c.Severity 5310 } 5311 5312 func (c *mqlOsUpdate) GetRestart() *plugin.TValue[bool] { 5313 return &c.Restart 5314 } 5315 5316 func (c *mqlOsUpdate) GetFormat() *plugin.TValue[string] { 5317 return &c.Format 5318 } 5319 5320 // mqlOsBase for the os.base resource 5321 type mqlOsBase struct { 5322 MqlRuntime *plugin.Runtime 5323 __id string 5324 // optional: if you define mqlOsBaseInternal it will be used here 5325 Machine plugin.TValue[*mqlMachine] 5326 Name plugin.TValue[string] 5327 Env plugin.TValue[map[string]interface{}] 5328 Path plugin.TValue[[]interface{}] 5329 Uptime plugin.TValue[*time.Time] 5330 Updates plugin.TValue[[]interface{}] 5331 Rebootpending plugin.TValue[bool] 5332 Hostname plugin.TValue[string] 5333 Groups plugin.TValue[*mqlGroups] 5334 Users plugin.TValue[*mqlUsers] 5335 } 5336 5337 // createOsBase creates a new instance of this resource 5338 func createOsBase(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 5339 res := &mqlOsBase{ 5340 MqlRuntime: runtime, 5341 } 5342 5343 err := SetAllData(res, args) 5344 if err != nil { 5345 return res, err 5346 } 5347 5348 if res.__id == "" { 5349 res.__id, err = res.id() 5350 if err != nil { 5351 return nil, err 5352 } 5353 } 5354 5355 if runtime.HasRecording { 5356 args, err = runtime.ResourceFromRecording("os.base", res.__id) 5357 if err != nil || args == nil { 5358 return res, err 5359 } 5360 return res, SetAllData(res, args) 5361 } 5362 5363 return res, nil 5364 } 5365 5366 func (c *mqlOsBase) MqlName() string { 5367 return "os.base" 5368 } 5369 5370 func (c *mqlOsBase) MqlID() string { 5371 return c.__id 5372 } 5373 5374 func (c *mqlOsBase) GetMachine() *plugin.TValue[*mqlMachine] { 5375 return plugin.GetOrCompute[*mqlMachine](&c.Machine, func() (*mqlMachine, error) { 5376 if c.MqlRuntime.HasRecording { 5377 d, err := c.MqlRuntime.FieldResourceFromRecording("os.base", c.__id, "machine") 5378 if err != nil { 5379 return nil, err 5380 } 5381 if d != nil { 5382 return d.Value.(*mqlMachine), nil 5383 } 5384 } 5385 5386 return c.machine() 5387 }) 5388 } 5389 5390 func (c *mqlOsBase) GetName() *plugin.TValue[string] { 5391 return plugin.GetOrCompute[string](&c.Name, func() (string, error) { 5392 return c.name() 5393 }) 5394 } 5395 5396 func (c *mqlOsBase) GetEnv() *plugin.TValue[map[string]interface{}] { 5397 return plugin.GetOrCompute[map[string]interface{}](&c.Env, func() (map[string]interface{}, error) { 5398 return c.env() 5399 }) 5400 } 5401 5402 func (c *mqlOsBase) GetPath() *plugin.TValue[[]interface{}] { 5403 return plugin.GetOrCompute[[]interface{}](&c.Path, func() ([]interface{}, error) { 5404 vargEnv := c.GetEnv() 5405 if vargEnv.Error != nil { 5406 return nil, vargEnv.Error 5407 } 5408 5409 return c.path(vargEnv.Data) 5410 }) 5411 } 5412 5413 func (c *mqlOsBase) GetUptime() *plugin.TValue[*time.Time] { 5414 return plugin.GetOrCompute[*time.Time](&c.Uptime, func() (*time.Time, error) { 5415 return c.uptime() 5416 }) 5417 } 5418 5419 func (c *mqlOsBase) GetUpdates() *plugin.TValue[[]interface{}] { 5420 return plugin.GetOrCompute[[]interface{}](&c.Updates, func() ([]interface{}, error) { 5421 if c.MqlRuntime.HasRecording { 5422 d, err := c.MqlRuntime.FieldResourceFromRecording("os.base", c.__id, "updates") 5423 if err != nil { 5424 return nil, err 5425 } 5426 if d != nil { 5427 return d.Value.([]interface{}), nil 5428 } 5429 } 5430 5431 return c.updates() 5432 }) 5433 } 5434 5435 func (c *mqlOsBase) GetRebootpending() *plugin.TValue[bool] { 5436 return plugin.GetOrCompute[bool](&c.Rebootpending, func() (bool, error) { 5437 return c.rebootpending() 5438 }) 5439 } 5440 5441 func (c *mqlOsBase) GetHostname() *plugin.TValue[string] { 5442 return plugin.GetOrCompute[string](&c.Hostname, func() (string, error) { 5443 return c.hostname() 5444 }) 5445 } 5446 5447 func (c *mqlOsBase) GetGroups() *plugin.TValue[*mqlGroups] { 5448 return plugin.GetOrCompute[*mqlGroups](&c.Groups, func() (*mqlGroups, error) { 5449 if c.MqlRuntime.HasRecording { 5450 d, err := c.MqlRuntime.FieldResourceFromRecording("os.base", c.__id, "groups") 5451 if err != nil { 5452 return nil, err 5453 } 5454 if d != nil { 5455 return d.Value.(*mqlGroups), nil 5456 } 5457 } 5458 5459 return c.groups() 5460 }) 5461 } 5462 5463 func (c *mqlOsBase) GetUsers() *plugin.TValue[*mqlUsers] { 5464 return plugin.GetOrCompute[*mqlUsers](&c.Users, func() (*mqlUsers, error) { 5465 if c.MqlRuntime.HasRecording { 5466 d, err := c.MqlRuntime.FieldResourceFromRecording("os.base", c.__id, "users") 5467 if err != nil { 5468 return nil, err 5469 } 5470 if d != nil { 5471 return d.Value.(*mqlUsers), nil 5472 } 5473 } 5474 5475 return c.users() 5476 }) 5477 } 5478 5479 // mqlOsUnix for the os.unix resource 5480 type mqlOsUnix struct { 5481 MqlRuntime *plugin.Runtime 5482 __id string 5483 // optional: if you define mqlOsUnixInternal it will be used here 5484 Base plugin.TValue[*mqlOsBase] 5485 } 5486 5487 // createOsUnix creates a new instance of this resource 5488 func createOsUnix(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 5489 res := &mqlOsUnix{ 5490 MqlRuntime: runtime, 5491 } 5492 5493 err := SetAllData(res, args) 5494 if err != nil { 5495 return res, err 5496 } 5497 5498 if res.__id == "" { 5499 res.__id, err = res.id() 5500 if err != nil { 5501 return nil, err 5502 } 5503 } 5504 5505 if runtime.HasRecording { 5506 args, err = runtime.ResourceFromRecording("os.unix", res.__id) 5507 if err != nil || args == nil { 5508 return res, err 5509 } 5510 return res, SetAllData(res, args) 5511 } 5512 5513 return res, nil 5514 } 5515 5516 func (c *mqlOsUnix) MqlName() string { 5517 return "os.unix" 5518 } 5519 5520 func (c *mqlOsUnix) MqlID() string { 5521 return c.__id 5522 } 5523 5524 func (c *mqlOsUnix) GetBase() *plugin.TValue[*mqlOsBase] { 5525 return plugin.GetOrCompute[*mqlOsBase](&c.Base, func() (*mqlOsBase, error) { 5526 if c.MqlRuntime.HasRecording { 5527 d, err := c.MqlRuntime.FieldResourceFromRecording("os.unix", c.__id, "base") 5528 if err != nil { 5529 return nil, err 5530 } 5531 if d != nil { 5532 return d.Value.(*mqlOsBase), nil 5533 } 5534 } 5535 5536 return c.base() 5537 }) 5538 } 5539 5540 // mqlOsLinux for the os.linux resource 5541 type mqlOsLinux struct { 5542 MqlRuntime *plugin.Runtime 5543 __id string 5544 // optional: if you define mqlOsLinuxInternal it will be used here 5545 Unix plugin.TValue[*mqlOsUnix] 5546 Iptables plugin.TValue[*mqlIptables] 5547 Ip6tables plugin.TValue[*mqlIp6tables] 5548 } 5549 5550 // createOsLinux creates a new instance of this resource 5551 func createOsLinux(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 5552 res := &mqlOsLinux{ 5553 MqlRuntime: runtime, 5554 } 5555 5556 err := SetAllData(res, args) 5557 if err != nil { 5558 return res, err 5559 } 5560 5561 if res.__id == "" { 5562 res.__id, err = res.id() 5563 if err != nil { 5564 return nil, err 5565 } 5566 } 5567 5568 if runtime.HasRecording { 5569 args, err = runtime.ResourceFromRecording("os.linux", res.__id) 5570 if err != nil || args == nil { 5571 return res, err 5572 } 5573 return res, SetAllData(res, args) 5574 } 5575 5576 return res, nil 5577 } 5578 5579 func (c *mqlOsLinux) MqlName() string { 5580 return "os.linux" 5581 } 5582 5583 func (c *mqlOsLinux) MqlID() string { 5584 return c.__id 5585 } 5586 5587 func (c *mqlOsLinux) GetUnix() *plugin.TValue[*mqlOsUnix] { 5588 return plugin.GetOrCompute[*mqlOsUnix](&c.Unix, func() (*mqlOsUnix, error) { 5589 if c.MqlRuntime.HasRecording { 5590 d, err := c.MqlRuntime.FieldResourceFromRecording("os.linux", c.__id, "unix") 5591 if err != nil { 5592 return nil, err 5593 } 5594 if d != nil { 5595 return d.Value.(*mqlOsUnix), nil 5596 } 5597 } 5598 5599 return c.unix() 5600 }) 5601 } 5602 5603 func (c *mqlOsLinux) GetIptables() *plugin.TValue[*mqlIptables] { 5604 return plugin.GetOrCompute[*mqlIptables](&c.Iptables, func() (*mqlIptables, error) { 5605 if c.MqlRuntime.HasRecording { 5606 d, err := c.MqlRuntime.FieldResourceFromRecording("os.linux", c.__id, "iptables") 5607 if err != nil { 5608 return nil, err 5609 } 5610 if d != nil { 5611 return d.Value.(*mqlIptables), nil 5612 } 5613 } 5614 5615 return c.iptables() 5616 }) 5617 } 5618 5619 func (c *mqlOsLinux) GetIp6tables() *plugin.TValue[*mqlIp6tables] { 5620 return plugin.GetOrCompute[*mqlIp6tables](&c.Ip6tables, func() (*mqlIp6tables, error) { 5621 if c.MqlRuntime.HasRecording { 5622 d, err := c.MqlRuntime.FieldResourceFromRecording("os.linux", c.__id, "ip6tables") 5623 if err != nil { 5624 return nil, err 5625 } 5626 if d != nil { 5627 return d.Value.(*mqlIp6tables), nil 5628 } 5629 } 5630 5631 return c.ip6tables() 5632 }) 5633 } 5634 5635 // mqlOsRootCertificates for the os.rootCertificates resource 5636 type mqlOsRootCertificates struct { 5637 MqlRuntime *plugin.Runtime 5638 __id string 5639 // optional: if you define mqlOsRootCertificatesInternal it will be used here 5640 Files plugin.TValue[[]interface{}] 5641 Content plugin.TValue[[]interface{}] 5642 List plugin.TValue[[]interface{}] 5643 } 5644 5645 // createOsRootCertificates creates a new instance of this resource 5646 func createOsRootCertificates(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 5647 res := &mqlOsRootCertificates{ 5648 MqlRuntime: runtime, 5649 } 5650 5651 err := SetAllData(res, args) 5652 if err != nil { 5653 return res, err 5654 } 5655 5656 if res.__id == "" { 5657 res.__id, err = res.id() 5658 if err != nil { 5659 return nil, err 5660 } 5661 } 5662 5663 if runtime.HasRecording { 5664 args, err = runtime.ResourceFromRecording("os.rootCertificates", res.__id) 5665 if err != nil || args == nil { 5666 return res, err 5667 } 5668 return res, SetAllData(res, args) 5669 } 5670 5671 return res, nil 5672 } 5673 5674 func (c *mqlOsRootCertificates) MqlName() string { 5675 return "os.rootCertificates" 5676 } 5677 5678 func (c *mqlOsRootCertificates) MqlID() string { 5679 return c.__id 5680 } 5681 5682 func (c *mqlOsRootCertificates) GetFiles() *plugin.TValue[[]interface{}] { 5683 return &c.Files 5684 } 5685 5686 func (c *mqlOsRootCertificates) GetContent() *plugin.TValue[[]interface{}] { 5687 return plugin.GetOrCompute[[]interface{}](&c.Content, func() ([]interface{}, error) { 5688 vargFiles := c.GetFiles() 5689 if vargFiles.Error != nil { 5690 return nil, vargFiles.Error 5691 } 5692 5693 return c.content(vargFiles.Data) 5694 }) 5695 } 5696 5697 func (c *mqlOsRootCertificates) GetList() *plugin.TValue[[]interface{}] { 5698 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 5699 if c.MqlRuntime.HasRecording { 5700 d, err := c.MqlRuntime.FieldResourceFromRecording("os.rootCertificates", c.__id, "list") 5701 if err != nil { 5702 return nil, err 5703 } 5704 if d != nil { 5705 return d.Value.([]interface{}), nil 5706 } 5707 } 5708 5709 vargContent := c.GetContent() 5710 if vargContent.Error != nil { 5711 return nil, vargContent.Error 5712 } 5713 5714 return c.list(vargContent.Data) 5715 }) 5716 } 5717 5718 // mqlCommand for the command resource 5719 type mqlCommand struct { 5720 MqlRuntime *plugin.Runtime 5721 __id string 5722 mqlCommandInternal 5723 Command plugin.TValue[string] 5724 Stdout plugin.TValue[string] 5725 Stderr plugin.TValue[string] 5726 Exitcode plugin.TValue[int64] 5727 } 5728 5729 // createCommand creates a new instance of this resource 5730 func createCommand(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 5731 res := &mqlCommand{ 5732 MqlRuntime: runtime, 5733 } 5734 5735 err := SetAllData(res, args) 5736 if err != nil { 5737 return res, err 5738 } 5739 5740 if res.__id == "" { 5741 res.__id, err = res.id() 5742 if err != nil { 5743 return nil, err 5744 } 5745 } 5746 5747 if runtime.HasRecording { 5748 args, err = runtime.ResourceFromRecording("command", res.__id) 5749 if err != nil || args == nil { 5750 return res, err 5751 } 5752 return res, SetAllData(res, args) 5753 } 5754 5755 return res, nil 5756 } 5757 5758 func (c *mqlCommand) MqlName() string { 5759 return "command" 5760 } 5761 5762 func (c *mqlCommand) MqlID() string { 5763 return c.__id 5764 } 5765 5766 func (c *mqlCommand) GetCommand() *plugin.TValue[string] { 5767 return &c.Command 5768 } 5769 5770 func (c *mqlCommand) GetStdout() *plugin.TValue[string] { 5771 return plugin.GetOrCompute[string](&c.Stdout, func() (string, error) { 5772 vargCommand := c.GetCommand() 5773 if vargCommand.Error != nil { 5774 return "", vargCommand.Error 5775 } 5776 5777 return c.stdout(vargCommand.Data) 5778 }) 5779 } 5780 5781 func (c *mqlCommand) GetStderr() *plugin.TValue[string] { 5782 return plugin.GetOrCompute[string](&c.Stderr, func() (string, error) { 5783 vargCommand := c.GetCommand() 5784 if vargCommand.Error != nil { 5785 return "", vargCommand.Error 5786 } 5787 5788 return c.stderr(vargCommand.Data) 5789 }) 5790 } 5791 5792 func (c *mqlCommand) GetExitcode() *plugin.TValue[int64] { 5793 return plugin.GetOrCompute[int64](&c.Exitcode, func() (int64, error) { 5794 vargCommand := c.GetCommand() 5795 if vargCommand.Error != nil { 5796 return 0, vargCommand.Error 5797 } 5798 5799 return c.exitcode(vargCommand.Data) 5800 }) 5801 } 5802 5803 // mqlPowershell for the powershell resource 5804 type mqlPowershell struct { 5805 MqlRuntime *plugin.Runtime 5806 __id string 5807 mqlPowershellInternal 5808 Script plugin.TValue[string] 5809 Stdout plugin.TValue[string] 5810 Stderr plugin.TValue[string] 5811 Exitcode plugin.TValue[int64] 5812 } 5813 5814 // createPowershell creates a new instance of this resource 5815 func createPowershell(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 5816 res := &mqlPowershell{ 5817 MqlRuntime: runtime, 5818 } 5819 5820 err := SetAllData(res, args) 5821 if err != nil { 5822 return res, err 5823 } 5824 5825 if res.__id == "" { 5826 res.__id, err = res.id() 5827 if err != nil { 5828 return nil, err 5829 } 5830 } 5831 5832 if runtime.HasRecording { 5833 args, err = runtime.ResourceFromRecording("powershell", res.__id) 5834 if err != nil || args == nil { 5835 return res, err 5836 } 5837 return res, SetAllData(res, args) 5838 } 5839 5840 return res, nil 5841 } 5842 5843 func (c *mqlPowershell) MqlName() string { 5844 return "powershell" 5845 } 5846 5847 func (c *mqlPowershell) MqlID() string { 5848 return c.__id 5849 } 5850 5851 func (c *mqlPowershell) GetScript() *plugin.TValue[string] { 5852 return &c.Script 5853 } 5854 5855 func (c *mqlPowershell) GetStdout() *plugin.TValue[string] { 5856 return plugin.GetOrCompute[string](&c.Stdout, func() (string, error) { 5857 return c.stdout() 5858 }) 5859 } 5860 5861 func (c *mqlPowershell) GetStderr() *plugin.TValue[string] { 5862 return plugin.GetOrCompute[string](&c.Stderr, func() (string, error) { 5863 return c.stderr() 5864 }) 5865 } 5866 5867 func (c *mqlPowershell) GetExitcode() *plugin.TValue[int64] { 5868 return plugin.GetOrCompute[int64](&c.Exitcode, func() (int64, error) { 5869 return c.exitcode() 5870 }) 5871 } 5872 5873 // mqlFile for the file resource 5874 type mqlFile struct { 5875 MqlRuntime *plugin.Runtime 5876 __id string 5877 // optional: if you define mqlFileInternal it will be used here 5878 Path plugin.TValue[string] 5879 Basename plugin.TValue[string] 5880 Dirname plugin.TValue[string] 5881 Content plugin.TValue[string] 5882 Exists plugin.TValue[bool] 5883 Permissions plugin.TValue[*mqlFilePermissions] 5884 Size plugin.TValue[int64] 5885 User plugin.TValue[*mqlUser] 5886 Group plugin.TValue[*mqlGroup] 5887 Empty plugin.TValue[bool] 5888 } 5889 5890 // createFile creates a new instance of this resource 5891 func createFile(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 5892 res := &mqlFile{ 5893 MqlRuntime: runtime, 5894 } 5895 5896 err := SetAllData(res, args) 5897 if err != nil { 5898 return res, err 5899 } 5900 5901 if res.__id == "" { 5902 res.__id, err = res.id() 5903 if err != nil { 5904 return nil, err 5905 } 5906 } 5907 5908 if runtime.HasRecording { 5909 args, err = runtime.ResourceFromRecording("file", res.__id) 5910 if err != nil || args == nil { 5911 return res, err 5912 } 5913 return res, SetAllData(res, args) 5914 } 5915 5916 return res, nil 5917 } 5918 5919 func (c *mqlFile) MqlName() string { 5920 return "file" 5921 } 5922 5923 func (c *mqlFile) MqlID() string { 5924 return c.__id 5925 } 5926 5927 func (c *mqlFile) GetPath() *plugin.TValue[string] { 5928 return &c.Path 5929 } 5930 5931 func (c *mqlFile) GetBasename() *plugin.TValue[string] { 5932 return plugin.GetOrCompute[string](&c.Basename, func() (string, error) { 5933 vargPath := c.GetPath() 5934 if vargPath.Error != nil { 5935 return "", vargPath.Error 5936 } 5937 5938 return c.basename(vargPath.Data) 5939 }) 5940 } 5941 5942 func (c *mqlFile) GetDirname() *plugin.TValue[string] { 5943 return plugin.GetOrCompute[string](&c.Dirname, func() (string, error) { 5944 vargPath := c.GetPath() 5945 if vargPath.Error != nil { 5946 return "", vargPath.Error 5947 } 5948 5949 return c.dirname(vargPath.Data) 5950 }) 5951 } 5952 5953 func (c *mqlFile) GetContent() *plugin.TValue[string] { 5954 return plugin.GetOrCompute[string](&c.Content, func() (string, error) { 5955 vargPath := c.GetPath() 5956 if vargPath.Error != nil { 5957 return "", vargPath.Error 5958 } 5959 5960 vargExists := c.GetExists() 5961 if vargExists.Error != nil { 5962 return "", vargExists.Error 5963 } 5964 5965 return c.content(vargPath.Data, vargExists.Data) 5966 }) 5967 } 5968 5969 func (c *mqlFile) GetExists() *plugin.TValue[bool] { 5970 return plugin.GetOrCompute[bool](&c.Exists, func() (bool, error) { 5971 vargPath := c.GetPath() 5972 if vargPath.Error != nil { 5973 return false, vargPath.Error 5974 } 5975 5976 return c.exists(vargPath.Data) 5977 }) 5978 } 5979 5980 func (c *mqlFile) GetPermissions() *plugin.TValue[*mqlFilePermissions] { 5981 return plugin.GetOrCompute[*mqlFilePermissions](&c.Permissions, func() (*mqlFilePermissions, error) { 5982 if c.MqlRuntime.HasRecording { 5983 d, err := c.MqlRuntime.FieldResourceFromRecording("file", c.__id, "permissions") 5984 if err != nil { 5985 return nil, err 5986 } 5987 if d != nil { 5988 return d.Value.(*mqlFilePermissions), nil 5989 } 5990 } 5991 5992 vargPath := c.GetPath() 5993 if vargPath.Error != nil { 5994 return nil, vargPath.Error 5995 } 5996 5997 return c.permissions(vargPath.Data) 5998 }) 5999 } 6000 6001 func (c *mqlFile) GetSize() *plugin.TValue[int64] { 6002 return plugin.GetOrCompute[int64](&c.Size, func() (int64, error) { 6003 vargPath := c.GetPath() 6004 if vargPath.Error != nil { 6005 return 0, vargPath.Error 6006 } 6007 6008 return c.size(vargPath.Data) 6009 }) 6010 } 6011 6012 func (c *mqlFile) GetUser() *plugin.TValue[*mqlUser] { 6013 return plugin.GetOrCompute[*mqlUser](&c.User, func() (*mqlUser, error) { 6014 if c.MqlRuntime.HasRecording { 6015 d, err := c.MqlRuntime.FieldResourceFromRecording("file", c.__id, "user") 6016 if err != nil { 6017 return nil, err 6018 } 6019 if d != nil { 6020 return d.Value.(*mqlUser), nil 6021 } 6022 } 6023 6024 return c.user() 6025 }) 6026 } 6027 6028 func (c *mqlFile) GetGroup() *plugin.TValue[*mqlGroup] { 6029 return plugin.GetOrCompute[*mqlGroup](&c.Group, func() (*mqlGroup, error) { 6030 if c.MqlRuntime.HasRecording { 6031 d, err := c.MqlRuntime.FieldResourceFromRecording("file", c.__id, "group") 6032 if err != nil { 6033 return nil, err 6034 } 6035 if d != nil { 6036 return d.Value.(*mqlGroup), nil 6037 } 6038 } 6039 6040 return c.group() 6041 }) 6042 } 6043 6044 func (c *mqlFile) GetEmpty() *plugin.TValue[bool] { 6045 return plugin.GetOrCompute[bool](&c.Empty, func() (bool, error) { 6046 vargPath := c.GetPath() 6047 if vargPath.Error != nil { 6048 return false, vargPath.Error 6049 } 6050 6051 return c.empty(vargPath.Data) 6052 }) 6053 } 6054 6055 // mqlFilePermissions for the file.permissions resource 6056 type mqlFilePermissions struct { 6057 MqlRuntime *plugin.Runtime 6058 __id string 6059 // optional: if you define mqlFilePermissionsInternal it will be used here 6060 Mode plugin.TValue[int64] 6061 User_readable plugin.TValue[bool] 6062 User_writeable plugin.TValue[bool] 6063 User_executable plugin.TValue[bool] 6064 Group_readable plugin.TValue[bool] 6065 Group_writeable plugin.TValue[bool] 6066 Group_executable plugin.TValue[bool] 6067 Other_readable plugin.TValue[bool] 6068 Other_writeable plugin.TValue[bool] 6069 Other_executable plugin.TValue[bool] 6070 Suid plugin.TValue[bool] 6071 Sgid plugin.TValue[bool] 6072 Sticky plugin.TValue[bool] 6073 IsDirectory plugin.TValue[bool] 6074 IsFile plugin.TValue[bool] 6075 IsSymlink plugin.TValue[bool] 6076 String plugin.TValue[string] 6077 } 6078 6079 // createFilePermissions creates a new instance of this resource 6080 func createFilePermissions(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 6081 res := &mqlFilePermissions{ 6082 MqlRuntime: runtime, 6083 } 6084 6085 err := SetAllData(res, args) 6086 if err != nil { 6087 return res, err 6088 } 6089 6090 if res.__id == "" { 6091 res.__id, err = res.id() 6092 if err != nil { 6093 return nil, err 6094 } 6095 } 6096 6097 if runtime.HasRecording { 6098 args, err = runtime.ResourceFromRecording("file.permissions", res.__id) 6099 if err != nil || args == nil { 6100 return res, err 6101 } 6102 return res, SetAllData(res, args) 6103 } 6104 6105 return res, nil 6106 } 6107 6108 func (c *mqlFilePermissions) MqlName() string { 6109 return "file.permissions" 6110 } 6111 6112 func (c *mqlFilePermissions) MqlID() string { 6113 return c.__id 6114 } 6115 6116 func (c *mqlFilePermissions) GetMode() *plugin.TValue[int64] { 6117 return &c.Mode 6118 } 6119 6120 func (c *mqlFilePermissions) GetUser_readable() *plugin.TValue[bool] { 6121 return &c.User_readable 6122 } 6123 6124 func (c *mqlFilePermissions) GetUser_writeable() *plugin.TValue[bool] { 6125 return &c.User_writeable 6126 } 6127 6128 func (c *mqlFilePermissions) GetUser_executable() *plugin.TValue[bool] { 6129 return &c.User_executable 6130 } 6131 6132 func (c *mqlFilePermissions) GetGroup_readable() *plugin.TValue[bool] { 6133 return &c.Group_readable 6134 } 6135 6136 func (c *mqlFilePermissions) GetGroup_writeable() *plugin.TValue[bool] { 6137 return &c.Group_writeable 6138 } 6139 6140 func (c *mqlFilePermissions) GetGroup_executable() *plugin.TValue[bool] { 6141 return &c.Group_executable 6142 } 6143 6144 func (c *mqlFilePermissions) GetOther_readable() *plugin.TValue[bool] { 6145 return &c.Other_readable 6146 } 6147 6148 func (c *mqlFilePermissions) GetOther_writeable() *plugin.TValue[bool] { 6149 return &c.Other_writeable 6150 } 6151 6152 func (c *mqlFilePermissions) GetOther_executable() *plugin.TValue[bool] { 6153 return &c.Other_executable 6154 } 6155 6156 func (c *mqlFilePermissions) GetSuid() *plugin.TValue[bool] { 6157 return &c.Suid 6158 } 6159 6160 func (c *mqlFilePermissions) GetSgid() *plugin.TValue[bool] { 6161 return &c.Sgid 6162 } 6163 6164 func (c *mqlFilePermissions) GetSticky() *plugin.TValue[bool] { 6165 return &c.Sticky 6166 } 6167 6168 func (c *mqlFilePermissions) GetIsDirectory() *plugin.TValue[bool] { 6169 return &c.IsDirectory 6170 } 6171 6172 func (c *mqlFilePermissions) GetIsFile() *plugin.TValue[bool] { 6173 return &c.IsFile 6174 } 6175 6176 func (c *mqlFilePermissions) GetIsSymlink() *plugin.TValue[bool] { 6177 return &c.IsSymlink 6178 } 6179 6180 func (c *mqlFilePermissions) GetString() *plugin.TValue[string] { 6181 return plugin.GetOrCompute[string](&c.String, func() (string, error) { 6182 return c.string() 6183 }) 6184 } 6185 6186 // mqlFiles for the files resource 6187 type mqlFiles struct { 6188 MqlRuntime *plugin.Runtime 6189 __id string 6190 // optional: if you define mqlFilesInternal it will be used here 6191 } 6192 6193 // createFiles creates a new instance of this resource 6194 func createFiles(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 6195 res := &mqlFiles{ 6196 MqlRuntime: runtime, 6197 } 6198 6199 err := SetAllData(res, args) 6200 if err != nil { 6201 return res, err 6202 } 6203 6204 // to override __id implement: id() (string, error) 6205 6206 if runtime.HasRecording { 6207 args, err = runtime.ResourceFromRecording("files", res.__id) 6208 if err != nil || args == nil { 6209 return res, err 6210 } 6211 return res, SetAllData(res, args) 6212 } 6213 6214 return res, nil 6215 } 6216 6217 func (c *mqlFiles) MqlName() string { 6218 return "files" 6219 } 6220 6221 func (c *mqlFiles) MqlID() string { 6222 return c.__id 6223 } 6224 6225 // mqlFilesFind for the files.find resource 6226 type mqlFilesFind struct { 6227 MqlRuntime *plugin.Runtime 6228 __id string 6229 // optional: if you define mqlFilesFindInternal it will be used here 6230 From plugin.TValue[string] 6231 Xdev plugin.TValue[bool] 6232 Type plugin.TValue[string] 6233 Regex plugin.TValue[string] 6234 Permissions plugin.TValue[int64] 6235 Name plugin.TValue[string] 6236 List plugin.TValue[[]interface{}] 6237 } 6238 6239 // createFilesFind creates a new instance of this resource 6240 func createFilesFind(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 6241 res := &mqlFilesFind{ 6242 MqlRuntime: runtime, 6243 } 6244 6245 err := SetAllData(res, args) 6246 if err != nil { 6247 return res, err 6248 } 6249 6250 if res.__id == "" { 6251 res.__id, err = res.id() 6252 if err != nil { 6253 return nil, err 6254 } 6255 } 6256 6257 if runtime.HasRecording { 6258 args, err = runtime.ResourceFromRecording("files.find", res.__id) 6259 if err != nil || args == nil { 6260 return res, err 6261 } 6262 return res, SetAllData(res, args) 6263 } 6264 6265 return res, nil 6266 } 6267 6268 func (c *mqlFilesFind) MqlName() string { 6269 return "files.find" 6270 } 6271 6272 func (c *mqlFilesFind) MqlID() string { 6273 return c.__id 6274 } 6275 6276 func (c *mqlFilesFind) GetFrom() *plugin.TValue[string] { 6277 return &c.From 6278 } 6279 6280 func (c *mqlFilesFind) GetXdev() *plugin.TValue[bool] { 6281 return &c.Xdev 6282 } 6283 6284 func (c *mqlFilesFind) GetType() *plugin.TValue[string] { 6285 return &c.Type 6286 } 6287 6288 func (c *mqlFilesFind) GetRegex() *plugin.TValue[string] { 6289 return &c.Regex 6290 } 6291 6292 func (c *mqlFilesFind) GetPermissions() *plugin.TValue[int64] { 6293 return &c.Permissions 6294 } 6295 6296 func (c *mqlFilesFind) GetName() *plugin.TValue[string] { 6297 return &c.Name 6298 } 6299 6300 func (c *mqlFilesFind) GetList() *plugin.TValue[[]interface{}] { 6301 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 6302 if c.MqlRuntime.HasRecording { 6303 d, err := c.MqlRuntime.FieldResourceFromRecording("files.find", c.__id, "list") 6304 if err != nil { 6305 return nil, err 6306 } 6307 if d != nil { 6308 return d.Value.([]interface{}), nil 6309 } 6310 } 6311 6312 return c.list() 6313 }) 6314 } 6315 6316 // mqlParseIni for the parse.ini resource 6317 type mqlParseIni struct { 6318 MqlRuntime *plugin.Runtime 6319 __id string 6320 // optional: if you define mqlParseIniInternal it will be used here 6321 Delimiter plugin.TValue[string] 6322 File plugin.TValue[*mqlFile] 6323 Content plugin.TValue[string] 6324 Sections plugin.TValue[map[string]interface{}] 6325 Params plugin.TValue[map[string]interface{}] 6326 } 6327 6328 // createParseIni creates a new instance of this resource 6329 func createParseIni(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 6330 res := &mqlParseIni{ 6331 MqlRuntime: runtime, 6332 } 6333 6334 err := SetAllData(res, args) 6335 if err != nil { 6336 return res, err 6337 } 6338 6339 if res.__id == "" { 6340 res.__id, err = res.id() 6341 if err != nil { 6342 return nil, err 6343 } 6344 } 6345 6346 if runtime.HasRecording { 6347 args, err = runtime.ResourceFromRecording("parse.ini", res.__id) 6348 if err != nil || args == nil { 6349 return res, err 6350 } 6351 return res, SetAllData(res, args) 6352 } 6353 6354 return res, nil 6355 } 6356 6357 func (c *mqlParseIni) MqlName() string { 6358 return "parse.ini" 6359 } 6360 6361 func (c *mqlParseIni) MqlID() string { 6362 return c.__id 6363 } 6364 6365 func (c *mqlParseIni) GetDelimiter() *plugin.TValue[string] { 6366 return &c.Delimiter 6367 } 6368 6369 func (c *mqlParseIni) GetFile() *plugin.TValue[*mqlFile] { 6370 return &c.File 6371 } 6372 6373 func (c *mqlParseIni) GetContent() *plugin.TValue[string] { 6374 return plugin.GetOrCompute[string](&c.Content, func() (string, error) { 6375 vargFile := c.GetFile() 6376 if vargFile.Error != nil { 6377 return "", vargFile.Error 6378 } 6379 6380 return c.content(vargFile.Data) 6381 }) 6382 } 6383 6384 func (c *mqlParseIni) GetSections() *plugin.TValue[map[string]interface{}] { 6385 return plugin.GetOrCompute[map[string]interface{}](&c.Sections, func() (map[string]interface{}, error) { 6386 vargContent := c.GetContent() 6387 if vargContent.Error != nil { 6388 return nil, vargContent.Error 6389 } 6390 6391 vargDelimiter := c.GetDelimiter() 6392 if vargDelimiter.Error != nil { 6393 return nil, vargDelimiter.Error 6394 } 6395 6396 return c.sections(vargContent.Data, vargDelimiter.Data) 6397 }) 6398 } 6399 6400 func (c *mqlParseIni) GetParams() *plugin.TValue[map[string]interface{}] { 6401 return plugin.GetOrCompute[map[string]interface{}](&c.Params, func() (map[string]interface{}, error) { 6402 vargSections := c.GetSections() 6403 if vargSections.Error != nil { 6404 return nil, vargSections.Error 6405 } 6406 6407 return c.params(vargSections.Data) 6408 }) 6409 } 6410 6411 // mqlParseJson for the parse.json resource 6412 type mqlParseJson struct { 6413 MqlRuntime *plugin.Runtime 6414 __id string 6415 // optional: if you define mqlParseJsonInternal it will be used here 6416 File plugin.TValue[*mqlFile] 6417 Content plugin.TValue[string] 6418 Params plugin.TValue[interface{}] 6419 } 6420 6421 // createParseJson creates a new instance of this resource 6422 func createParseJson(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 6423 res := &mqlParseJson{ 6424 MqlRuntime: runtime, 6425 } 6426 6427 err := SetAllData(res, args) 6428 if err != nil { 6429 return res, err 6430 } 6431 6432 if res.__id == "" { 6433 res.__id, err = res.id() 6434 if err != nil { 6435 return nil, err 6436 } 6437 } 6438 6439 if runtime.HasRecording { 6440 args, err = runtime.ResourceFromRecording("parse.json", res.__id) 6441 if err != nil || args == nil { 6442 return res, err 6443 } 6444 return res, SetAllData(res, args) 6445 } 6446 6447 return res, nil 6448 } 6449 6450 func (c *mqlParseJson) MqlName() string { 6451 return "parse.json" 6452 } 6453 6454 func (c *mqlParseJson) MqlID() string { 6455 return c.__id 6456 } 6457 6458 func (c *mqlParseJson) GetFile() *plugin.TValue[*mqlFile] { 6459 return &c.File 6460 } 6461 6462 func (c *mqlParseJson) GetContent() *plugin.TValue[string] { 6463 return plugin.GetOrCompute[string](&c.Content, func() (string, error) { 6464 vargFile := c.GetFile() 6465 if vargFile.Error != nil { 6466 return "", vargFile.Error 6467 } 6468 6469 return c.content(vargFile.Data) 6470 }) 6471 } 6472 6473 func (c *mqlParseJson) GetParams() *plugin.TValue[interface{}] { 6474 return plugin.GetOrCompute[interface{}](&c.Params, func() (interface{}, error) { 6475 vargContent := c.GetContent() 6476 if vargContent.Error != nil { 6477 return nil, vargContent.Error 6478 } 6479 6480 return c.params(vargContent.Data) 6481 }) 6482 } 6483 6484 // mqlParsePlist for the parse.plist resource 6485 type mqlParsePlist struct { 6486 MqlRuntime *plugin.Runtime 6487 __id string 6488 // optional: if you define mqlParsePlistInternal it will be used here 6489 File plugin.TValue[*mqlFile] 6490 Content plugin.TValue[string] 6491 Params plugin.TValue[interface{}] 6492 } 6493 6494 // createParsePlist creates a new instance of this resource 6495 func createParsePlist(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 6496 res := &mqlParsePlist{ 6497 MqlRuntime: runtime, 6498 } 6499 6500 err := SetAllData(res, args) 6501 if err != nil { 6502 return res, err 6503 } 6504 6505 if res.__id == "" { 6506 res.__id, err = res.id() 6507 if err != nil { 6508 return nil, err 6509 } 6510 } 6511 6512 if runtime.HasRecording { 6513 args, err = runtime.ResourceFromRecording("parse.plist", res.__id) 6514 if err != nil || args == nil { 6515 return res, err 6516 } 6517 return res, SetAllData(res, args) 6518 } 6519 6520 return res, nil 6521 } 6522 6523 func (c *mqlParsePlist) MqlName() string { 6524 return "parse.plist" 6525 } 6526 6527 func (c *mqlParsePlist) MqlID() string { 6528 return c.__id 6529 } 6530 6531 func (c *mqlParsePlist) GetFile() *plugin.TValue[*mqlFile] { 6532 return &c.File 6533 } 6534 6535 func (c *mqlParsePlist) GetContent() *plugin.TValue[string] { 6536 return plugin.GetOrCompute[string](&c.Content, func() (string, error) { 6537 vargFile := c.GetFile() 6538 if vargFile.Error != nil { 6539 return "", vargFile.Error 6540 } 6541 6542 return c.content(vargFile.Data) 6543 }) 6544 } 6545 6546 func (c *mqlParsePlist) GetParams() *plugin.TValue[interface{}] { 6547 return plugin.GetOrCompute[interface{}](&c.Params, func() (interface{}, error) { 6548 vargContent := c.GetContent() 6549 if vargContent.Error != nil { 6550 return nil, vargContent.Error 6551 } 6552 6553 return c.params(vargContent.Data) 6554 }) 6555 } 6556 6557 // mqlParseYaml for the parse.yaml resource 6558 type mqlParseYaml struct { 6559 MqlRuntime *plugin.Runtime 6560 __id string 6561 // optional: if you define mqlParseYamlInternal it will be used here 6562 File plugin.TValue[*mqlFile] 6563 Content plugin.TValue[string] 6564 Params plugin.TValue[interface{}] 6565 } 6566 6567 // createParseYaml creates a new instance of this resource 6568 func createParseYaml(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 6569 res := &mqlParseYaml{ 6570 MqlRuntime: runtime, 6571 } 6572 6573 err := SetAllData(res, args) 6574 if err != nil { 6575 return res, err 6576 } 6577 6578 if res.__id == "" { 6579 res.__id, err = res.id() 6580 if err != nil { 6581 return nil, err 6582 } 6583 } 6584 6585 if runtime.HasRecording { 6586 args, err = runtime.ResourceFromRecording("parse.yaml", res.__id) 6587 if err != nil || args == nil { 6588 return res, err 6589 } 6590 return res, SetAllData(res, args) 6591 } 6592 6593 return res, nil 6594 } 6595 6596 func (c *mqlParseYaml) MqlName() string { 6597 return "parse.yaml" 6598 } 6599 6600 func (c *mqlParseYaml) MqlID() string { 6601 return c.__id 6602 } 6603 6604 func (c *mqlParseYaml) GetFile() *plugin.TValue[*mqlFile] { 6605 return &c.File 6606 } 6607 6608 func (c *mqlParseYaml) GetContent() *plugin.TValue[string] { 6609 return plugin.GetOrCompute[string](&c.Content, func() (string, error) { 6610 vargFile := c.GetFile() 6611 if vargFile.Error != nil { 6612 return "", vargFile.Error 6613 } 6614 6615 return c.content(vargFile.Data) 6616 }) 6617 } 6618 6619 func (c *mqlParseYaml) GetParams() *plugin.TValue[interface{}] { 6620 return plugin.GetOrCompute[interface{}](&c.Params, func() (interface{}, error) { 6621 vargContent := c.GetContent() 6622 if vargContent.Error != nil { 6623 return nil, vargContent.Error 6624 } 6625 6626 return c.params(vargContent.Data) 6627 }) 6628 } 6629 6630 // mqlParseCertificates for the parse.certificates resource 6631 type mqlParseCertificates struct { 6632 MqlRuntime *plugin.Runtime 6633 __id string 6634 // optional: if you define mqlParseCertificatesInternal it will be used here 6635 Path plugin.TValue[string] 6636 File plugin.TValue[*mqlFile] 6637 Content plugin.TValue[string] 6638 List plugin.TValue[[]interface{}] 6639 } 6640 6641 // createParseCertificates creates a new instance of this resource 6642 func createParseCertificates(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 6643 res := &mqlParseCertificates{ 6644 MqlRuntime: runtime, 6645 } 6646 6647 err := SetAllData(res, args) 6648 if err != nil { 6649 return res, err 6650 } 6651 6652 if res.__id == "" { 6653 res.__id, err = res.id() 6654 if err != nil { 6655 return nil, err 6656 } 6657 } 6658 6659 if runtime.HasRecording { 6660 args, err = runtime.ResourceFromRecording("parse.certificates", res.__id) 6661 if err != nil || args == nil { 6662 return res, err 6663 } 6664 return res, SetAllData(res, args) 6665 } 6666 6667 return res, nil 6668 } 6669 6670 func (c *mqlParseCertificates) MqlName() string { 6671 return "parse.certificates" 6672 } 6673 6674 func (c *mqlParseCertificates) MqlID() string { 6675 return c.__id 6676 } 6677 6678 func (c *mqlParseCertificates) GetPath() *plugin.TValue[string] { 6679 return &c.Path 6680 } 6681 6682 func (c *mqlParseCertificates) GetFile() *plugin.TValue[*mqlFile] { 6683 return plugin.GetOrCompute[*mqlFile](&c.File, func() (*mqlFile, error) { 6684 if c.MqlRuntime.HasRecording { 6685 d, err := c.MqlRuntime.FieldResourceFromRecording("parse.certificates", c.__id, "file") 6686 if err != nil { 6687 return nil, err 6688 } 6689 if d != nil { 6690 return d.Value.(*mqlFile), nil 6691 } 6692 } 6693 6694 return c.file() 6695 }) 6696 } 6697 6698 func (c *mqlParseCertificates) GetContent() *plugin.TValue[string] { 6699 return plugin.GetOrCompute[string](&c.Content, func() (string, error) { 6700 vargFile := c.GetFile() 6701 if vargFile.Error != nil { 6702 return "", vargFile.Error 6703 } 6704 6705 return c.content(vargFile.Data) 6706 }) 6707 } 6708 6709 func (c *mqlParseCertificates) GetList() *plugin.TValue[[]interface{}] { 6710 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 6711 if c.MqlRuntime.HasRecording { 6712 d, err := c.MqlRuntime.FieldResourceFromRecording("parse.certificates", c.__id, "list") 6713 if err != nil { 6714 return nil, err 6715 } 6716 if d != nil { 6717 return d.Value.([]interface{}), nil 6718 } 6719 } 6720 6721 vargContent := c.GetContent() 6722 if vargContent.Error != nil { 6723 return nil, vargContent.Error 6724 } 6725 6726 vargPath := c.GetPath() 6727 if vargPath.Error != nil { 6728 return nil, vargPath.Error 6729 } 6730 6731 return c.list(vargContent.Data, vargPath.Data) 6732 }) 6733 } 6734 6735 // mqlParseOpenpgp for the parse.openpgp resource 6736 type mqlParseOpenpgp struct { 6737 MqlRuntime *plugin.Runtime 6738 __id string 6739 // optional: if you define mqlParseOpenpgpInternal it will be used here 6740 Path plugin.TValue[string] 6741 File plugin.TValue[*mqlFile] 6742 Content plugin.TValue[string] 6743 List plugin.TValue[[]interface{}] 6744 } 6745 6746 // createParseOpenpgp creates a new instance of this resource 6747 func createParseOpenpgp(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 6748 res := &mqlParseOpenpgp{ 6749 MqlRuntime: runtime, 6750 } 6751 6752 err := SetAllData(res, args) 6753 if err != nil { 6754 return res, err 6755 } 6756 6757 if res.__id == "" { 6758 res.__id, err = res.id() 6759 if err != nil { 6760 return nil, err 6761 } 6762 } 6763 6764 if runtime.HasRecording { 6765 args, err = runtime.ResourceFromRecording("parse.openpgp", res.__id) 6766 if err != nil || args == nil { 6767 return res, err 6768 } 6769 return res, SetAllData(res, args) 6770 } 6771 6772 return res, nil 6773 } 6774 6775 func (c *mqlParseOpenpgp) MqlName() string { 6776 return "parse.openpgp" 6777 } 6778 6779 func (c *mqlParseOpenpgp) MqlID() string { 6780 return c.__id 6781 } 6782 6783 func (c *mqlParseOpenpgp) GetPath() *plugin.TValue[string] { 6784 return &c.Path 6785 } 6786 6787 func (c *mqlParseOpenpgp) GetFile() *plugin.TValue[*mqlFile] { 6788 return &c.File 6789 } 6790 6791 func (c *mqlParseOpenpgp) GetContent() *plugin.TValue[string] { 6792 return plugin.GetOrCompute[string](&c.Content, func() (string, error) { 6793 vargFile := c.GetFile() 6794 if vargFile.Error != nil { 6795 return "", vargFile.Error 6796 } 6797 6798 return c.content(vargFile.Data) 6799 }) 6800 } 6801 6802 func (c *mqlParseOpenpgp) GetList() *plugin.TValue[[]interface{}] { 6803 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 6804 if c.MqlRuntime.HasRecording { 6805 d, err := c.MqlRuntime.FieldResourceFromRecording("parse.openpgp", c.__id, "list") 6806 if err != nil { 6807 return nil, err 6808 } 6809 if d != nil { 6810 return d.Value.([]interface{}), nil 6811 } 6812 } 6813 6814 vargContent := c.GetContent() 6815 if vargContent.Error != nil { 6816 return nil, vargContent.Error 6817 } 6818 6819 return c.list(vargContent.Data) 6820 }) 6821 } 6822 6823 // mqlUser for the user resource 6824 type mqlUser struct { 6825 MqlRuntime *plugin.Runtime 6826 __id string 6827 // optional: if you define mqlUserInternal it will be used here 6828 Uid plugin.TValue[int64] 6829 Gid plugin.TValue[int64] 6830 Sid plugin.TValue[string] 6831 Name plugin.TValue[string] 6832 Home plugin.TValue[string] 6833 Shell plugin.TValue[string] 6834 Enabled plugin.TValue[bool] 6835 Authorizedkeys plugin.TValue[*mqlAuthorizedkeys] 6836 Sshkeys plugin.TValue[[]interface{}] 6837 Group plugin.TValue[*mqlGroup] 6838 } 6839 6840 // createUser creates a new instance of this resource 6841 func createUser(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 6842 res := &mqlUser{ 6843 MqlRuntime: runtime, 6844 } 6845 6846 err := SetAllData(res, args) 6847 if err != nil { 6848 return res, err 6849 } 6850 6851 if res.__id == "" { 6852 res.__id, err = res.id() 6853 if err != nil { 6854 return nil, err 6855 } 6856 } 6857 6858 if runtime.HasRecording { 6859 args, err = runtime.ResourceFromRecording("user", res.__id) 6860 if err != nil || args == nil { 6861 return res, err 6862 } 6863 return res, SetAllData(res, args) 6864 } 6865 6866 return res, nil 6867 } 6868 6869 func (c *mqlUser) MqlName() string { 6870 return "user" 6871 } 6872 6873 func (c *mqlUser) MqlID() string { 6874 return c.__id 6875 } 6876 6877 func (c *mqlUser) GetUid() *plugin.TValue[int64] { 6878 return &c.Uid 6879 } 6880 6881 func (c *mqlUser) GetGid() *plugin.TValue[int64] { 6882 return &c.Gid 6883 } 6884 6885 func (c *mqlUser) GetSid() *plugin.TValue[string] { 6886 return &c.Sid 6887 } 6888 6889 func (c *mqlUser) GetName() *plugin.TValue[string] { 6890 return &c.Name 6891 } 6892 6893 func (c *mqlUser) GetHome() *plugin.TValue[string] { 6894 return &c.Home 6895 } 6896 6897 func (c *mqlUser) GetShell() *plugin.TValue[string] { 6898 return &c.Shell 6899 } 6900 6901 func (c *mqlUser) GetEnabled() *plugin.TValue[bool] { 6902 return &c.Enabled 6903 } 6904 6905 func (c *mqlUser) GetAuthorizedkeys() *plugin.TValue[*mqlAuthorizedkeys] { 6906 return plugin.GetOrCompute[*mqlAuthorizedkeys](&c.Authorizedkeys, func() (*mqlAuthorizedkeys, error) { 6907 if c.MqlRuntime.HasRecording { 6908 d, err := c.MqlRuntime.FieldResourceFromRecording("user", c.__id, "authorizedkeys") 6909 if err != nil { 6910 return nil, err 6911 } 6912 if d != nil { 6913 return d.Value.(*mqlAuthorizedkeys), nil 6914 } 6915 } 6916 6917 vargHome := c.GetHome() 6918 if vargHome.Error != nil { 6919 return nil, vargHome.Error 6920 } 6921 6922 return c.authorizedkeys(vargHome.Data) 6923 }) 6924 } 6925 6926 func (c *mqlUser) GetSshkeys() *plugin.TValue[[]interface{}] { 6927 return plugin.GetOrCompute[[]interface{}](&c.Sshkeys, func() ([]interface{}, error) { 6928 if c.MqlRuntime.HasRecording { 6929 d, err := c.MqlRuntime.FieldResourceFromRecording("user", c.__id, "sshkeys") 6930 if err != nil { 6931 return nil, err 6932 } 6933 if d != nil { 6934 return d.Value.([]interface{}), nil 6935 } 6936 } 6937 6938 return c.sshkeys() 6939 }) 6940 } 6941 6942 func (c *mqlUser) GetGroup() *plugin.TValue[*mqlGroup] { 6943 return plugin.GetOrCompute[*mqlGroup](&c.Group, func() (*mqlGroup, error) { 6944 if c.MqlRuntime.HasRecording { 6945 d, err := c.MqlRuntime.FieldResourceFromRecording("user", c.__id, "group") 6946 if err != nil { 6947 return nil, err 6948 } 6949 if d != nil { 6950 return d.Value.(*mqlGroup), nil 6951 } 6952 } 6953 6954 vargGid := c.GetGid() 6955 if vargGid.Error != nil { 6956 return nil, vargGid.Error 6957 } 6958 6959 return c.group(vargGid.Data) 6960 }) 6961 } 6962 6963 // mqlPrivatekey for the privatekey resource 6964 type mqlPrivatekey struct { 6965 MqlRuntime *plugin.Runtime 6966 __id string 6967 // optional: if you define mqlPrivatekeyInternal it will be used here 6968 Pem plugin.TValue[string] 6969 Path plugin.TValue[string] 6970 File plugin.TValue[*mqlFile] 6971 Encrypted plugin.TValue[bool] 6972 } 6973 6974 // createPrivatekey creates a new instance of this resource 6975 func createPrivatekey(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 6976 res := &mqlPrivatekey{ 6977 MqlRuntime: runtime, 6978 } 6979 6980 err := SetAllData(res, args) 6981 if err != nil { 6982 return res, err 6983 } 6984 6985 if res.__id == "" { 6986 res.__id, err = res.id() 6987 if err != nil { 6988 return nil, err 6989 } 6990 } 6991 6992 if runtime.HasRecording { 6993 args, err = runtime.ResourceFromRecording("privatekey", res.__id) 6994 if err != nil || args == nil { 6995 return res, err 6996 } 6997 return res, SetAllData(res, args) 6998 } 6999 7000 return res, nil 7001 } 7002 7003 func (c *mqlPrivatekey) MqlName() string { 7004 return "privatekey" 7005 } 7006 7007 func (c *mqlPrivatekey) MqlID() string { 7008 return c.__id 7009 } 7010 7011 func (c *mqlPrivatekey) GetPem() *plugin.TValue[string] { 7012 return &c.Pem 7013 } 7014 7015 func (c *mqlPrivatekey) GetPath() *plugin.TValue[string] { 7016 return &c.Path 7017 } 7018 7019 func (c *mqlPrivatekey) GetFile() *plugin.TValue[*mqlFile] { 7020 return &c.File 7021 } 7022 7023 func (c *mqlPrivatekey) GetEncrypted() *plugin.TValue[bool] { 7024 return &c.Encrypted 7025 } 7026 7027 // mqlUsers for the users resource 7028 type mqlUsers struct { 7029 MqlRuntime *plugin.Runtime 7030 __id string 7031 mqlUsersInternal 7032 List plugin.TValue[[]interface{}] 7033 } 7034 7035 // createUsers creates a new instance of this resource 7036 func createUsers(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 7037 res := &mqlUsers{ 7038 MqlRuntime: runtime, 7039 } 7040 7041 err := SetAllData(res, args) 7042 if err != nil { 7043 return res, err 7044 } 7045 7046 // to override __id implement: id() (string, error) 7047 7048 if runtime.HasRecording { 7049 args, err = runtime.ResourceFromRecording("users", res.__id) 7050 if err != nil || args == nil { 7051 return res, err 7052 } 7053 return res, SetAllData(res, args) 7054 } 7055 7056 return res, nil 7057 } 7058 7059 func (c *mqlUsers) MqlName() string { 7060 return "users" 7061 } 7062 7063 func (c *mqlUsers) MqlID() string { 7064 return c.__id 7065 } 7066 7067 func (c *mqlUsers) GetList() *plugin.TValue[[]interface{}] { 7068 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 7069 if c.MqlRuntime.HasRecording { 7070 d, err := c.MqlRuntime.FieldResourceFromRecording("users", c.__id, "list") 7071 if err != nil { 7072 return nil, err 7073 } 7074 if d != nil { 7075 return d.Value.([]interface{}), nil 7076 } 7077 } 7078 7079 return c.list() 7080 }) 7081 } 7082 7083 // mqlAuthorizedkeys for the authorizedkeys resource 7084 type mqlAuthorizedkeys struct { 7085 MqlRuntime *plugin.Runtime 7086 __id string 7087 // optional: if you define mqlAuthorizedkeysInternal it will be used here 7088 Path plugin.TValue[string] 7089 File plugin.TValue[*mqlFile] 7090 Content plugin.TValue[string] 7091 List plugin.TValue[[]interface{}] 7092 } 7093 7094 // createAuthorizedkeys creates a new instance of this resource 7095 func createAuthorizedkeys(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 7096 res := &mqlAuthorizedkeys{ 7097 MqlRuntime: runtime, 7098 } 7099 7100 err := SetAllData(res, args) 7101 if err != nil { 7102 return res, err 7103 } 7104 7105 if res.__id == "" { 7106 res.__id, err = res.id() 7107 if err != nil { 7108 return nil, err 7109 } 7110 } 7111 7112 if runtime.HasRecording { 7113 args, err = runtime.ResourceFromRecording("authorizedkeys", res.__id) 7114 if err != nil || args == nil { 7115 return res, err 7116 } 7117 return res, SetAllData(res, args) 7118 } 7119 7120 return res, nil 7121 } 7122 7123 func (c *mqlAuthorizedkeys) MqlName() string { 7124 return "authorizedkeys" 7125 } 7126 7127 func (c *mqlAuthorizedkeys) MqlID() string { 7128 return c.__id 7129 } 7130 7131 func (c *mqlAuthorizedkeys) GetPath() *plugin.TValue[string] { 7132 return &c.Path 7133 } 7134 7135 func (c *mqlAuthorizedkeys) GetFile() *plugin.TValue[*mqlFile] { 7136 return &c.File 7137 } 7138 7139 func (c *mqlAuthorizedkeys) GetContent() *plugin.TValue[string] { 7140 return plugin.GetOrCompute[string](&c.Content, func() (string, error) { 7141 vargFile := c.GetFile() 7142 if vargFile.Error != nil { 7143 return "", vargFile.Error 7144 } 7145 7146 return c.content(vargFile.Data) 7147 }) 7148 } 7149 7150 func (c *mqlAuthorizedkeys) GetList() *plugin.TValue[[]interface{}] { 7151 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 7152 if c.MqlRuntime.HasRecording { 7153 d, err := c.MqlRuntime.FieldResourceFromRecording("authorizedkeys", c.__id, "list") 7154 if err != nil { 7155 return nil, err 7156 } 7157 if d != nil { 7158 return d.Value.([]interface{}), nil 7159 } 7160 } 7161 7162 vargFile := c.GetFile() 7163 if vargFile.Error != nil { 7164 return nil, vargFile.Error 7165 } 7166 7167 vargContent := c.GetContent() 7168 if vargContent.Error != nil { 7169 return nil, vargContent.Error 7170 } 7171 7172 return c.list(vargFile.Data, vargContent.Data) 7173 }) 7174 } 7175 7176 // mqlAuthorizedkeysEntry for the authorizedkeys.entry resource 7177 type mqlAuthorizedkeysEntry struct { 7178 MqlRuntime *plugin.Runtime 7179 __id string 7180 // optional: if you define mqlAuthorizedkeysEntryInternal it will be used here 7181 Line plugin.TValue[int64] 7182 Type plugin.TValue[string] 7183 Key plugin.TValue[string] 7184 Label plugin.TValue[string] 7185 Options plugin.TValue[[]interface{}] 7186 File plugin.TValue[*mqlFile] 7187 } 7188 7189 // createAuthorizedkeysEntry creates a new instance of this resource 7190 func createAuthorizedkeysEntry(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 7191 res := &mqlAuthorizedkeysEntry{ 7192 MqlRuntime: runtime, 7193 } 7194 7195 err := SetAllData(res, args) 7196 if err != nil { 7197 return res, err 7198 } 7199 7200 if res.__id == "" { 7201 res.__id, err = res.id() 7202 if err != nil { 7203 return nil, err 7204 } 7205 } 7206 7207 if runtime.HasRecording { 7208 args, err = runtime.ResourceFromRecording("authorizedkeys.entry", res.__id) 7209 if err != nil || args == nil { 7210 return res, err 7211 } 7212 return res, SetAllData(res, args) 7213 } 7214 7215 return res, nil 7216 } 7217 7218 func (c *mqlAuthorizedkeysEntry) MqlName() string { 7219 return "authorizedkeys.entry" 7220 } 7221 7222 func (c *mqlAuthorizedkeysEntry) MqlID() string { 7223 return c.__id 7224 } 7225 7226 func (c *mqlAuthorizedkeysEntry) GetLine() *plugin.TValue[int64] { 7227 return &c.Line 7228 } 7229 7230 func (c *mqlAuthorizedkeysEntry) GetType() *plugin.TValue[string] { 7231 return &c.Type 7232 } 7233 7234 func (c *mqlAuthorizedkeysEntry) GetKey() *plugin.TValue[string] { 7235 return &c.Key 7236 } 7237 7238 func (c *mqlAuthorizedkeysEntry) GetLabel() *plugin.TValue[string] { 7239 return &c.Label 7240 } 7241 7242 func (c *mqlAuthorizedkeysEntry) GetOptions() *plugin.TValue[[]interface{}] { 7243 return &c.Options 7244 } 7245 7246 func (c *mqlAuthorizedkeysEntry) GetFile() *plugin.TValue[*mqlFile] { 7247 return &c.File 7248 } 7249 7250 // mqlGroup for the group resource 7251 type mqlGroup struct { 7252 MqlRuntime *plugin.Runtime 7253 __id string 7254 mqlGroupInternal 7255 Gid plugin.TValue[int64] 7256 Sid plugin.TValue[string] 7257 Name plugin.TValue[string] 7258 Members plugin.TValue[[]interface{}] 7259 } 7260 7261 // createGroup creates a new instance of this resource 7262 func createGroup(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 7263 res := &mqlGroup{ 7264 MqlRuntime: runtime, 7265 } 7266 7267 err := SetAllData(res, args) 7268 if err != nil { 7269 return res, err 7270 } 7271 7272 if res.__id == "" { 7273 res.__id, err = res.id() 7274 if err != nil { 7275 return nil, err 7276 } 7277 } 7278 7279 if runtime.HasRecording { 7280 args, err = runtime.ResourceFromRecording("group", res.__id) 7281 if err != nil || args == nil { 7282 return res, err 7283 } 7284 return res, SetAllData(res, args) 7285 } 7286 7287 return res, nil 7288 } 7289 7290 func (c *mqlGroup) MqlName() string { 7291 return "group" 7292 } 7293 7294 func (c *mqlGroup) MqlID() string { 7295 return c.__id 7296 } 7297 7298 func (c *mqlGroup) GetGid() *plugin.TValue[int64] { 7299 return &c.Gid 7300 } 7301 7302 func (c *mqlGroup) GetSid() *plugin.TValue[string] { 7303 return &c.Sid 7304 } 7305 7306 func (c *mqlGroup) GetName() *plugin.TValue[string] { 7307 return &c.Name 7308 } 7309 7310 func (c *mqlGroup) GetMembers() *plugin.TValue[[]interface{}] { 7311 return plugin.GetOrCompute[[]interface{}](&c.Members, func() ([]interface{}, error) { 7312 if c.MqlRuntime.HasRecording { 7313 d, err := c.MqlRuntime.FieldResourceFromRecording("group", c.__id, "members") 7314 if err != nil { 7315 return nil, err 7316 } 7317 if d != nil { 7318 return d.Value.([]interface{}), nil 7319 } 7320 } 7321 7322 return c.members() 7323 }) 7324 } 7325 7326 // mqlGroups for the groups resource 7327 type mqlGroups struct { 7328 MqlRuntime *plugin.Runtime 7329 __id string 7330 mqlGroupsInternal 7331 List plugin.TValue[[]interface{}] 7332 } 7333 7334 // createGroups creates a new instance of this resource 7335 func createGroups(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 7336 res := &mqlGroups{ 7337 MqlRuntime: runtime, 7338 } 7339 7340 err := SetAllData(res, args) 7341 if err != nil { 7342 return res, err 7343 } 7344 7345 // to override __id implement: id() (string, error) 7346 7347 if runtime.HasRecording { 7348 args, err = runtime.ResourceFromRecording("groups", res.__id) 7349 if err != nil || args == nil { 7350 return res, err 7351 } 7352 return res, SetAllData(res, args) 7353 } 7354 7355 return res, nil 7356 } 7357 7358 func (c *mqlGroups) MqlName() string { 7359 return "groups" 7360 } 7361 7362 func (c *mqlGroups) MqlID() string { 7363 return c.__id 7364 } 7365 7366 func (c *mqlGroups) GetList() *plugin.TValue[[]interface{}] { 7367 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 7368 if c.MqlRuntime.HasRecording { 7369 d, err := c.MqlRuntime.FieldResourceFromRecording("groups", c.__id, "list") 7370 if err != nil { 7371 return nil, err 7372 } 7373 if d != nil { 7374 return d.Value.([]interface{}), nil 7375 } 7376 } 7377 7378 return c.list() 7379 }) 7380 } 7381 7382 // mqlPackage for the package resource 7383 type mqlPackage struct { 7384 MqlRuntime *plugin.Runtime 7385 __id string 7386 // optional: if you define mqlPackageInternal it will be used here 7387 Name plugin.TValue[string] 7388 Version plugin.TValue[string] 7389 Arch plugin.TValue[string] 7390 Epoch plugin.TValue[string] 7391 Format plugin.TValue[string] 7392 Status plugin.TValue[string] 7393 Description plugin.TValue[string] 7394 Origin plugin.TValue[string] 7395 Available plugin.TValue[string] 7396 Installed plugin.TValue[bool] 7397 Outdated plugin.TValue[bool] 7398 } 7399 7400 // createPackage creates a new instance of this resource 7401 func createPackage(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 7402 res := &mqlPackage{ 7403 MqlRuntime: runtime, 7404 } 7405 7406 err := SetAllData(res, args) 7407 if err != nil { 7408 return res, err 7409 } 7410 7411 if res.__id == "" { 7412 res.__id, err = res.id() 7413 if err != nil { 7414 return nil, err 7415 } 7416 } 7417 7418 if runtime.HasRecording { 7419 args, err = runtime.ResourceFromRecording("package", res.__id) 7420 if err != nil || args == nil { 7421 return res, err 7422 } 7423 return res, SetAllData(res, args) 7424 } 7425 7426 return res, nil 7427 } 7428 7429 func (c *mqlPackage) MqlName() string { 7430 return "package" 7431 } 7432 7433 func (c *mqlPackage) MqlID() string { 7434 return c.__id 7435 } 7436 7437 func (c *mqlPackage) GetName() *plugin.TValue[string] { 7438 return &c.Name 7439 } 7440 7441 func (c *mqlPackage) GetVersion() *plugin.TValue[string] { 7442 return &c.Version 7443 } 7444 7445 func (c *mqlPackage) GetArch() *plugin.TValue[string] { 7446 return &c.Arch 7447 } 7448 7449 func (c *mqlPackage) GetEpoch() *plugin.TValue[string] { 7450 return &c.Epoch 7451 } 7452 7453 func (c *mqlPackage) GetFormat() *plugin.TValue[string] { 7454 return &c.Format 7455 } 7456 7457 func (c *mqlPackage) GetStatus() *plugin.TValue[string] { 7458 return plugin.GetOrCompute[string](&c.Status, func() (string, error) { 7459 return c.status() 7460 }) 7461 } 7462 7463 func (c *mqlPackage) GetDescription() *plugin.TValue[string] { 7464 return &c.Description 7465 } 7466 7467 func (c *mqlPackage) GetOrigin() *plugin.TValue[string] { 7468 return plugin.GetOrCompute[string](&c.Origin, func() (string, error) { 7469 return c.origin() 7470 }) 7471 } 7472 7473 func (c *mqlPackage) GetAvailable() *plugin.TValue[string] { 7474 return &c.Available 7475 } 7476 7477 func (c *mqlPackage) GetInstalled() *plugin.TValue[bool] { 7478 return &c.Installed 7479 } 7480 7481 func (c *mqlPackage) GetOutdated() *plugin.TValue[bool] { 7482 return plugin.GetOrCompute[bool](&c.Outdated, func() (bool, error) { 7483 return c.outdated() 7484 }) 7485 } 7486 7487 // mqlPackages for the packages resource 7488 type mqlPackages struct { 7489 MqlRuntime *plugin.Runtime 7490 __id string 7491 mqlPackagesInternal 7492 List plugin.TValue[[]interface{}] 7493 } 7494 7495 // createPackages creates a new instance of this resource 7496 func createPackages(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 7497 res := &mqlPackages{ 7498 MqlRuntime: runtime, 7499 } 7500 7501 err := SetAllData(res, args) 7502 if err != nil { 7503 return res, err 7504 } 7505 7506 // to override __id implement: id() (string, error) 7507 7508 if runtime.HasRecording { 7509 args, err = runtime.ResourceFromRecording("packages", res.__id) 7510 if err != nil || args == nil { 7511 return res, err 7512 } 7513 return res, SetAllData(res, args) 7514 } 7515 7516 return res, nil 7517 } 7518 7519 func (c *mqlPackages) MqlName() string { 7520 return "packages" 7521 } 7522 7523 func (c *mqlPackages) MqlID() string { 7524 return c.__id 7525 } 7526 7527 func (c *mqlPackages) GetList() *plugin.TValue[[]interface{}] { 7528 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 7529 if c.MqlRuntime.HasRecording { 7530 d, err := c.MqlRuntime.FieldResourceFromRecording("packages", c.__id, "list") 7531 if err != nil { 7532 return nil, err 7533 } 7534 if d != nil { 7535 return d.Value.([]interface{}), nil 7536 } 7537 } 7538 7539 return c.list() 7540 }) 7541 } 7542 7543 // mqlPamConf for the pam.conf resource 7544 type mqlPamConf struct { 7545 MqlRuntime *plugin.Runtime 7546 __id string 7547 // optional: if you define mqlPamConfInternal it will be used here 7548 Files plugin.TValue[[]interface{}] 7549 Content plugin.TValue[string] 7550 Services plugin.TValue[map[string]interface{}] 7551 Entries plugin.TValue[map[string]interface{}] 7552 } 7553 7554 // createPamConf creates a new instance of this resource 7555 func createPamConf(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 7556 res := &mqlPamConf{ 7557 MqlRuntime: runtime, 7558 } 7559 7560 err := SetAllData(res, args) 7561 if err != nil { 7562 return res, err 7563 } 7564 7565 if res.__id == "" { 7566 res.__id, err = res.id() 7567 if err != nil { 7568 return nil, err 7569 } 7570 } 7571 7572 if runtime.HasRecording { 7573 args, err = runtime.ResourceFromRecording("pam.conf", res.__id) 7574 if err != nil || args == nil { 7575 return res, err 7576 } 7577 return res, SetAllData(res, args) 7578 } 7579 7580 return res, nil 7581 } 7582 7583 func (c *mqlPamConf) MqlName() string { 7584 return "pam.conf" 7585 } 7586 7587 func (c *mqlPamConf) MqlID() string { 7588 return c.__id 7589 } 7590 7591 func (c *mqlPamConf) GetFiles() *plugin.TValue[[]interface{}] { 7592 return plugin.GetOrCompute[[]interface{}](&c.Files, func() ([]interface{}, error) { 7593 if c.MqlRuntime.HasRecording { 7594 d, err := c.MqlRuntime.FieldResourceFromRecording("pam.conf", c.__id, "files") 7595 if err != nil { 7596 return nil, err 7597 } 7598 if d != nil { 7599 return d.Value.([]interface{}), nil 7600 } 7601 } 7602 7603 return c.files() 7604 }) 7605 } 7606 7607 func (c *mqlPamConf) GetContent() *plugin.TValue[string] { 7608 return plugin.GetOrCompute[string](&c.Content, func() (string, error) { 7609 vargFiles := c.GetFiles() 7610 if vargFiles.Error != nil { 7611 return "", vargFiles.Error 7612 } 7613 7614 return c.content(vargFiles.Data) 7615 }) 7616 } 7617 7618 func (c *mqlPamConf) GetServices() *plugin.TValue[map[string]interface{}] { 7619 return plugin.GetOrCompute[map[string]interface{}](&c.Services, func() (map[string]interface{}, error) { 7620 vargFiles := c.GetFiles() 7621 if vargFiles.Error != nil { 7622 return nil, vargFiles.Error 7623 } 7624 7625 return c.services(vargFiles.Data) 7626 }) 7627 } 7628 7629 func (c *mqlPamConf) GetEntries() *plugin.TValue[map[string]interface{}] { 7630 return plugin.GetOrCompute[map[string]interface{}](&c.Entries, func() (map[string]interface{}, error) { 7631 if c.MqlRuntime.HasRecording { 7632 d, err := c.MqlRuntime.FieldResourceFromRecording("pam.conf", c.__id, "entries") 7633 if err != nil { 7634 return nil, err 7635 } 7636 if d != nil { 7637 return d.Value.(map[string]interface{}), nil 7638 } 7639 } 7640 7641 vargFiles := c.GetFiles() 7642 if vargFiles.Error != nil { 7643 return nil, vargFiles.Error 7644 } 7645 7646 return c.entries(vargFiles.Data) 7647 }) 7648 } 7649 7650 // mqlPamConfServiceEntry for the pam.conf.serviceEntry resource 7651 type mqlPamConfServiceEntry struct { 7652 MqlRuntime *plugin.Runtime 7653 __id string 7654 // optional: if you define mqlPamConfServiceEntryInternal it will be used here 7655 Service plugin.TValue[string] 7656 LineNumber plugin.TValue[int64] 7657 PamType plugin.TValue[string] 7658 Control plugin.TValue[string] 7659 Module plugin.TValue[string] 7660 Options plugin.TValue[[]interface{}] 7661 } 7662 7663 // createPamConfServiceEntry creates a new instance of this resource 7664 func createPamConfServiceEntry(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 7665 res := &mqlPamConfServiceEntry{ 7666 MqlRuntime: runtime, 7667 } 7668 7669 err := SetAllData(res, args) 7670 if err != nil { 7671 return res, err 7672 } 7673 7674 if res.__id == "" { 7675 res.__id, err = res.id() 7676 if err != nil { 7677 return nil, err 7678 } 7679 } 7680 7681 if runtime.HasRecording { 7682 args, err = runtime.ResourceFromRecording("pam.conf.serviceEntry", res.__id) 7683 if err != nil || args == nil { 7684 return res, err 7685 } 7686 return res, SetAllData(res, args) 7687 } 7688 7689 return res, nil 7690 } 7691 7692 func (c *mqlPamConfServiceEntry) MqlName() string { 7693 return "pam.conf.serviceEntry" 7694 } 7695 7696 func (c *mqlPamConfServiceEntry) MqlID() string { 7697 return c.__id 7698 } 7699 7700 func (c *mqlPamConfServiceEntry) GetService() *plugin.TValue[string] { 7701 return &c.Service 7702 } 7703 7704 func (c *mqlPamConfServiceEntry) GetLineNumber() *plugin.TValue[int64] { 7705 return &c.LineNumber 7706 } 7707 7708 func (c *mqlPamConfServiceEntry) GetPamType() *plugin.TValue[string] { 7709 return &c.PamType 7710 } 7711 7712 func (c *mqlPamConfServiceEntry) GetControl() *plugin.TValue[string] { 7713 return &c.Control 7714 } 7715 7716 func (c *mqlPamConfServiceEntry) GetModule() *plugin.TValue[string] { 7717 return &c.Module 7718 } 7719 7720 func (c *mqlPamConfServiceEntry) GetOptions() *plugin.TValue[[]interface{}] { 7721 return &c.Options 7722 } 7723 7724 // mqlSshd for the sshd resource 7725 type mqlSshd struct { 7726 MqlRuntime *plugin.Runtime 7727 __id string 7728 // optional: if you define mqlSshdInternal it will be used here 7729 } 7730 7731 // createSshd creates a new instance of this resource 7732 func createSshd(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 7733 res := &mqlSshd{ 7734 MqlRuntime: runtime, 7735 } 7736 7737 err := SetAllData(res, args) 7738 if err != nil { 7739 return res, err 7740 } 7741 7742 // to override __id implement: id() (string, error) 7743 7744 if runtime.HasRecording { 7745 args, err = runtime.ResourceFromRecording("sshd", res.__id) 7746 if err != nil || args == nil { 7747 return res, err 7748 } 7749 return res, SetAllData(res, args) 7750 } 7751 7752 return res, nil 7753 } 7754 7755 func (c *mqlSshd) MqlName() string { 7756 return "sshd" 7757 } 7758 7759 func (c *mqlSshd) MqlID() string { 7760 return c.__id 7761 } 7762 7763 // mqlSshdConfig for the sshd.config resource 7764 type mqlSshdConfig struct { 7765 MqlRuntime *plugin.Runtime 7766 __id string 7767 // optional: if you define mqlSshdConfigInternal it will be used here 7768 File plugin.TValue[*mqlFile] 7769 Files plugin.TValue[[]interface{}] 7770 Content plugin.TValue[string] 7771 Params plugin.TValue[map[string]interface{}] 7772 Ciphers plugin.TValue[[]interface{}] 7773 Macs plugin.TValue[[]interface{}] 7774 Kexs plugin.TValue[[]interface{}] 7775 Hostkeys plugin.TValue[[]interface{}] 7776 } 7777 7778 // createSshdConfig creates a new instance of this resource 7779 func createSshdConfig(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 7780 res := &mqlSshdConfig{ 7781 MqlRuntime: runtime, 7782 } 7783 7784 err := SetAllData(res, args) 7785 if err != nil { 7786 return res, err 7787 } 7788 7789 if res.__id == "" { 7790 res.__id, err = res.id() 7791 if err != nil { 7792 return nil, err 7793 } 7794 } 7795 7796 if runtime.HasRecording { 7797 args, err = runtime.ResourceFromRecording("sshd.config", res.__id) 7798 if err != nil || args == nil { 7799 return res, err 7800 } 7801 return res, SetAllData(res, args) 7802 } 7803 7804 return res, nil 7805 } 7806 7807 func (c *mqlSshdConfig) MqlName() string { 7808 return "sshd.config" 7809 } 7810 7811 func (c *mqlSshdConfig) MqlID() string { 7812 return c.__id 7813 } 7814 7815 func (c *mqlSshdConfig) GetFile() *plugin.TValue[*mqlFile] { 7816 return plugin.GetOrCompute[*mqlFile](&c.File, func() (*mqlFile, error) { 7817 if c.MqlRuntime.HasRecording { 7818 d, err := c.MqlRuntime.FieldResourceFromRecording("sshd.config", c.__id, "file") 7819 if err != nil { 7820 return nil, err 7821 } 7822 if d != nil { 7823 return d.Value.(*mqlFile), nil 7824 } 7825 } 7826 7827 return c.file() 7828 }) 7829 } 7830 7831 func (c *mqlSshdConfig) GetFiles() *plugin.TValue[[]interface{}] { 7832 return plugin.GetOrCompute[[]interface{}](&c.Files, func() ([]interface{}, error) { 7833 if c.MqlRuntime.HasRecording { 7834 d, err := c.MqlRuntime.FieldResourceFromRecording("sshd.config", c.__id, "files") 7835 if err != nil { 7836 return nil, err 7837 } 7838 if d != nil { 7839 return d.Value.([]interface{}), nil 7840 } 7841 } 7842 7843 vargFile := c.GetFile() 7844 if vargFile.Error != nil { 7845 return nil, vargFile.Error 7846 } 7847 7848 return c.files(vargFile.Data) 7849 }) 7850 } 7851 7852 func (c *mqlSshdConfig) GetContent() *plugin.TValue[string] { 7853 return plugin.GetOrCompute[string](&c.Content, func() (string, error) { 7854 vargFiles := c.GetFiles() 7855 if vargFiles.Error != nil { 7856 return "", vargFiles.Error 7857 } 7858 7859 return c.content(vargFiles.Data) 7860 }) 7861 } 7862 7863 func (c *mqlSshdConfig) GetParams() *plugin.TValue[map[string]interface{}] { 7864 return plugin.GetOrCompute[map[string]interface{}](&c.Params, func() (map[string]interface{}, error) { 7865 vargContent := c.GetContent() 7866 if vargContent.Error != nil { 7867 return nil, vargContent.Error 7868 } 7869 7870 return c.params(vargContent.Data) 7871 }) 7872 } 7873 7874 func (c *mqlSshdConfig) GetCiphers() *plugin.TValue[[]interface{}] { 7875 return plugin.GetOrCompute[[]interface{}](&c.Ciphers, func() ([]interface{}, error) { 7876 vargParams := c.GetParams() 7877 if vargParams.Error != nil { 7878 return nil, vargParams.Error 7879 } 7880 7881 return c.ciphers(vargParams.Data) 7882 }) 7883 } 7884 7885 func (c *mqlSshdConfig) GetMacs() *plugin.TValue[[]interface{}] { 7886 return plugin.GetOrCompute[[]interface{}](&c.Macs, func() ([]interface{}, error) { 7887 vargParams := c.GetParams() 7888 if vargParams.Error != nil { 7889 return nil, vargParams.Error 7890 } 7891 7892 return c.macs(vargParams.Data) 7893 }) 7894 } 7895 7896 func (c *mqlSshdConfig) GetKexs() *plugin.TValue[[]interface{}] { 7897 return plugin.GetOrCompute[[]interface{}](&c.Kexs, func() ([]interface{}, error) { 7898 vargParams := c.GetParams() 7899 if vargParams.Error != nil { 7900 return nil, vargParams.Error 7901 } 7902 7903 return c.kexs(vargParams.Data) 7904 }) 7905 } 7906 7907 func (c *mqlSshdConfig) GetHostkeys() *plugin.TValue[[]interface{}] { 7908 return plugin.GetOrCompute[[]interface{}](&c.Hostkeys, func() ([]interface{}, error) { 7909 vargParams := c.GetParams() 7910 if vargParams.Error != nil { 7911 return nil, vargParams.Error 7912 } 7913 7914 return c.hostkeys(vargParams.Data) 7915 }) 7916 } 7917 7918 // mqlService for the service resource 7919 type mqlService struct { 7920 MqlRuntime *plugin.Runtime 7921 __id string 7922 // optional: if you define mqlServiceInternal it will be used here 7923 Name plugin.TValue[string] 7924 Description plugin.TValue[string] 7925 Installed plugin.TValue[bool] 7926 Running plugin.TValue[bool] 7927 Enabled plugin.TValue[bool] 7928 Type plugin.TValue[string] 7929 Masked plugin.TValue[bool] 7930 } 7931 7932 // createService creates a new instance of this resource 7933 func createService(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 7934 res := &mqlService{ 7935 MqlRuntime: runtime, 7936 } 7937 7938 err := SetAllData(res, args) 7939 if err != nil { 7940 return res, err 7941 } 7942 7943 if res.__id == "" { 7944 res.__id, err = res.id() 7945 if err != nil { 7946 return nil, err 7947 } 7948 } 7949 7950 if runtime.HasRecording { 7951 args, err = runtime.ResourceFromRecording("service", res.__id) 7952 if err != nil || args == nil { 7953 return res, err 7954 } 7955 return res, SetAllData(res, args) 7956 } 7957 7958 return res, nil 7959 } 7960 7961 func (c *mqlService) MqlName() string { 7962 return "service" 7963 } 7964 7965 func (c *mqlService) MqlID() string { 7966 return c.__id 7967 } 7968 7969 func (c *mqlService) GetName() *plugin.TValue[string] { 7970 return &c.Name 7971 } 7972 7973 func (c *mqlService) GetDescription() *plugin.TValue[string] { 7974 return &c.Description 7975 } 7976 7977 func (c *mqlService) GetInstalled() *plugin.TValue[bool] { 7978 return &c.Installed 7979 } 7980 7981 func (c *mqlService) GetRunning() *plugin.TValue[bool] { 7982 return &c.Running 7983 } 7984 7985 func (c *mqlService) GetEnabled() *plugin.TValue[bool] { 7986 return &c.Enabled 7987 } 7988 7989 func (c *mqlService) GetType() *plugin.TValue[string] { 7990 return &c.Type 7991 } 7992 7993 func (c *mqlService) GetMasked() *plugin.TValue[bool] { 7994 return &c.Masked 7995 } 7996 7997 // mqlServices for the services resource 7998 type mqlServices struct { 7999 MqlRuntime *plugin.Runtime 8000 __id string 8001 mqlServicesInternal 8002 List plugin.TValue[[]interface{}] 8003 } 8004 8005 // createServices creates a new instance of this resource 8006 func createServices(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 8007 res := &mqlServices{ 8008 MqlRuntime: runtime, 8009 } 8010 8011 err := SetAllData(res, args) 8012 if err != nil { 8013 return res, err 8014 } 8015 8016 // to override __id implement: id() (string, error) 8017 8018 if runtime.HasRecording { 8019 args, err = runtime.ResourceFromRecording("services", res.__id) 8020 if err != nil || args == nil { 8021 return res, err 8022 } 8023 return res, SetAllData(res, args) 8024 } 8025 8026 return res, nil 8027 } 8028 8029 func (c *mqlServices) MqlName() string { 8030 return "services" 8031 } 8032 8033 func (c *mqlServices) MqlID() string { 8034 return c.__id 8035 } 8036 8037 func (c *mqlServices) GetList() *plugin.TValue[[]interface{}] { 8038 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 8039 if c.MqlRuntime.HasRecording { 8040 d, err := c.MqlRuntime.FieldResourceFromRecording("services", c.__id, "list") 8041 if err != nil { 8042 return nil, err 8043 } 8044 if d != nil { 8045 return d.Value.([]interface{}), nil 8046 } 8047 } 8048 8049 return c.list() 8050 }) 8051 } 8052 8053 // mqlKernel for the kernel resource 8054 type mqlKernel struct { 8055 MqlRuntime *plugin.Runtime 8056 __id string 8057 mqlKernelInternal 8058 Info plugin.TValue[interface{}] 8059 Parameters plugin.TValue[map[string]interface{}] 8060 Modules plugin.TValue[[]interface{}] 8061 Installed plugin.TValue[[]interface{}] 8062 } 8063 8064 // createKernel creates a new instance of this resource 8065 func createKernel(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 8066 res := &mqlKernel{ 8067 MqlRuntime: runtime, 8068 } 8069 8070 err := SetAllData(res, args) 8071 if err != nil { 8072 return res, err 8073 } 8074 8075 // to override __id implement: id() (string, error) 8076 8077 if runtime.HasRecording { 8078 args, err = runtime.ResourceFromRecording("kernel", res.__id) 8079 if err != nil || args == nil { 8080 return res, err 8081 } 8082 return res, SetAllData(res, args) 8083 } 8084 8085 return res, nil 8086 } 8087 8088 func (c *mqlKernel) MqlName() string { 8089 return "kernel" 8090 } 8091 8092 func (c *mqlKernel) MqlID() string { 8093 return c.__id 8094 } 8095 8096 func (c *mqlKernel) GetInfo() *plugin.TValue[interface{}] { 8097 return plugin.GetOrCompute[interface{}](&c.Info, func() (interface{}, error) { 8098 return c.info() 8099 }) 8100 } 8101 8102 func (c *mqlKernel) GetParameters() *plugin.TValue[map[string]interface{}] { 8103 return plugin.GetOrCompute[map[string]interface{}](&c.Parameters, func() (map[string]interface{}, error) { 8104 return c.parameters() 8105 }) 8106 } 8107 8108 func (c *mqlKernel) GetModules() *plugin.TValue[[]interface{}] { 8109 return plugin.GetOrCompute[[]interface{}](&c.Modules, func() ([]interface{}, error) { 8110 if c.MqlRuntime.HasRecording { 8111 d, err := c.MqlRuntime.FieldResourceFromRecording("kernel", c.__id, "modules") 8112 if err != nil { 8113 return nil, err 8114 } 8115 if d != nil { 8116 return d.Value.([]interface{}), nil 8117 } 8118 } 8119 8120 return c.modules() 8121 }) 8122 } 8123 8124 func (c *mqlKernel) GetInstalled() *plugin.TValue[[]interface{}] { 8125 return plugin.GetOrCompute[[]interface{}](&c.Installed, func() ([]interface{}, error) { 8126 return c.installed() 8127 }) 8128 } 8129 8130 // mqlKernelModule for the kernel.module resource 8131 type mqlKernelModule struct { 8132 MqlRuntime *plugin.Runtime 8133 __id string 8134 // optional: if you define mqlKernelModuleInternal it will be used here 8135 Name plugin.TValue[string] 8136 Size plugin.TValue[string] 8137 Loaded plugin.TValue[bool] 8138 } 8139 8140 // createKernelModule creates a new instance of this resource 8141 func createKernelModule(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 8142 res := &mqlKernelModule{ 8143 MqlRuntime: runtime, 8144 } 8145 8146 err := SetAllData(res, args) 8147 if err != nil { 8148 return res, err 8149 } 8150 8151 if res.__id == "" { 8152 res.__id, err = res.id() 8153 if err != nil { 8154 return nil, err 8155 } 8156 } 8157 8158 if runtime.HasRecording { 8159 args, err = runtime.ResourceFromRecording("kernel.module", res.__id) 8160 if err != nil || args == nil { 8161 return res, err 8162 } 8163 return res, SetAllData(res, args) 8164 } 8165 8166 return res, nil 8167 } 8168 8169 func (c *mqlKernelModule) MqlName() string { 8170 return "kernel.module" 8171 } 8172 8173 func (c *mqlKernelModule) MqlID() string { 8174 return c.__id 8175 } 8176 8177 func (c *mqlKernelModule) GetName() *plugin.TValue[string] { 8178 return &c.Name 8179 } 8180 8181 func (c *mqlKernelModule) GetSize() *plugin.TValue[string] { 8182 return &c.Size 8183 } 8184 8185 func (c *mqlKernelModule) GetLoaded() *plugin.TValue[bool] { 8186 return &c.Loaded 8187 } 8188 8189 // mqlDocker for the docker resource 8190 type mqlDocker struct { 8191 MqlRuntime *plugin.Runtime 8192 __id string 8193 // optional: if you define mqlDockerInternal it will be used here 8194 Images plugin.TValue[[]interface{}] 8195 Containers plugin.TValue[[]interface{}] 8196 } 8197 8198 // createDocker creates a new instance of this resource 8199 func createDocker(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 8200 res := &mqlDocker{ 8201 MqlRuntime: runtime, 8202 } 8203 8204 err := SetAllData(res, args) 8205 if err != nil { 8206 return res, err 8207 } 8208 8209 // to override __id implement: id() (string, error) 8210 8211 if runtime.HasRecording { 8212 args, err = runtime.ResourceFromRecording("docker", res.__id) 8213 if err != nil || args == nil { 8214 return res, err 8215 } 8216 return res, SetAllData(res, args) 8217 } 8218 8219 return res, nil 8220 } 8221 8222 func (c *mqlDocker) MqlName() string { 8223 return "docker" 8224 } 8225 8226 func (c *mqlDocker) MqlID() string { 8227 return c.__id 8228 } 8229 8230 func (c *mqlDocker) GetImages() *plugin.TValue[[]interface{}] { 8231 return plugin.GetOrCompute[[]interface{}](&c.Images, func() ([]interface{}, error) { 8232 if c.MqlRuntime.HasRecording { 8233 d, err := c.MqlRuntime.FieldResourceFromRecording("docker", c.__id, "images") 8234 if err != nil { 8235 return nil, err 8236 } 8237 if d != nil { 8238 return d.Value.([]interface{}), nil 8239 } 8240 } 8241 8242 return c.images() 8243 }) 8244 } 8245 8246 func (c *mqlDocker) GetContainers() *plugin.TValue[[]interface{}] { 8247 return plugin.GetOrCompute[[]interface{}](&c.Containers, func() ([]interface{}, error) { 8248 if c.MqlRuntime.HasRecording { 8249 d, err := c.MqlRuntime.FieldResourceFromRecording("docker", c.__id, "containers") 8250 if err != nil { 8251 return nil, err 8252 } 8253 if d != nil { 8254 return d.Value.([]interface{}), nil 8255 } 8256 } 8257 8258 return c.containers() 8259 }) 8260 } 8261 8262 // mqlDockerImage for the docker.image resource 8263 type mqlDockerImage struct { 8264 MqlRuntime *plugin.Runtime 8265 __id string 8266 // optional: if you define mqlDockerImageInternal it will be used here 8267 Id plugin.TValue[string] 8268 Size plugin.TValue[int64] 8269 Virtualsize plugin.TValue[int64] 8270 Tags plugin.TValue[[]interface{}] 8271 Labels plugin.TValue[map[string]interface{}] 8272 } 8273 8274 // createDockerImage creates a new instance of this resource 8275 func createDockerImage(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 8276 res := &mqlDockerImage{ 8277 MqlRuntime: runtime, 8278 } 8279 8280 err := SetAllData(res, args) 8281 if err != nil { 8282 return res, err 8283 } 8284 8285 if res.__id == "" { 8286 res.__id, err = res.id() 8287 if err != nil { 8288 return nil, err 8289 } 8290 } 8291 8292 if runtime.HasRecording { 8293 args, err = runtime.ResourceFromRecording("docker.image", res.__id) 8294 if err != nil || args == nil { 8295 return res, err 8296 } 8297 return res, SetAllData(res, args) 8298 } 8299 8300 return res, nil 8301 } 8302 8303 func (c *mqlDockerImage) MqlName() string { 8304 return "docker.image" 8305 } 8306 8307 func (c *mqlDockerImage) MqlID() string { 8308 return c.__id 8309 } 8310 8311 func (c *mqlDockerImage) GetId() *plugin.TValue[string] { 8312 return &c.Id 8313 } 8314 8315 func (c *mqlDockerImage) GetSize() *plugin.TValue[int64] { 8316 return &c.Size 8317 } 8318 8319 func (c *mqlDockerImage) GetVirtualsize() *plugin.TValue[int64] { 8320 return &c.Virtualsize 8321 } 8322 8323 func (c *mqlDockerImage) GetTags() *plugin.TValue[[]interface{}] { 8324 return &c.Tags 8325 } 8326 8327 func (c *mqlDockerImage) GetLabels() *plugin.TValue[map[string]interface{}] { 8328 return &c.Labels 8329 } 8330 8331 // mqlDockerContainer for the docker.container resource 8332 type mqlDockerContainer struct { 8333 MqlRuntime *plugin.Runtime 8334 __id string 8335 // optional: if you define mqlDockerContainerInternal it will be used here 8336 Os plugin.TValue[*mqlOsLinux] 8337 Id plugin.TValue[string] 8338 Command plugin.TValue[string] 8339 Image plugin.TValue[string] 8340 Imageid plugin.TValue[string] 8341 Names plugin.TValue[[]interface{}] 8342 State plugin.TValue[string] 8343 Status plugin.TValue[string] 8344 Labels plugin.TValue[map[string]interface{}] 8345 } 8346 8347 // createDockerContainer creates a new instance of this resource 8348 func createDockerContainer(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 8349 res := &mqlDockerContainer{ 8350 MqlRuntime: runtime, 8351 } 8352 8353 err := SetAllData(res, args) 8354 if err != nil { 8355 return res, err 8356 } 8357 8358 if res.__id == "" { 8359 res.__id, err = res.id() 8360 if err != nil { 8361 return nil, err 8362 } 8363 } 8364 8365 if runtime.HasRecording { 8366 args, err = runtime.ResourceFromRecording("docker.container", res.__id) 8367 if err != nil || args == nil { 8368 return res, err 8369 } 8370 return res, SetAllData(res, args) 8371 } 8372 8373 return res, nil 8374 } 8375 8376 func (c *mqlDockerContainer) MqlName() string { 8377 return "docker.container" 8378 } 8379 8380 func (c *mqlDockerContainer) MqlID() string { 8381 return c.__id 8382 } 8383 8384 func (c *mqlDockerContainer) GetOs() *plugin.TValue[*mqlOsLinux] { 8385 return plugin.GetOrCompute[*mqlOsLinux](&c.Os, func() (*mqlOsLinux, error) { 8386 if c.MqlRuntime.HasRecording { 8387 d, err := c.MqlRuntime.FieldResourceFromRecording("docker.container", c.__id, "os") 8388 if err != nil { 8389 return nil, err 8390 } 8391 if d != nil { 8392 return d.Value.(*mqlOsLinux), nil 8393 } 8394 } 8395 8396 return c.os() 8397 }) 8398 } 8399 8400 func (c *mqlDockerContainer) GetId() *plugin.TValue[string] { 8401 return &c.Id 8402 } 8403 8404 func (c *mqlDockerContainer) GetCommand() *plugin.TValue[string] { 8405 return &c.Command 8406 } 8407 8408 func (c *mqlDockerContainer) GetImage() *plugin.TValue[string] { 8409 return &c.Image 8410 } 8411 8412 func (c *mqlDockerContainer) GetImageid() *plugin.TValue[string] { 8413 return &c.Imageid 8414 } 8415 8416 func (c *mqlDockerContainer) GetNames() *plugin.TValue[[]interface{}] { 8417 return &c.Names 8418 } 8419 8420 func (c *mqlDockerContainer) GetState() *plugin.TValue[string] { 8421 return &c.State 8422 } 8423 8424 func (c *mqlDockerContainer) GetStatus() *plugin.TValue[string] { 8425 return &c.Status 8426 } 8427 8428 func (c *mqlDockerContainer) GetLabels() *plugin.TValue[map[string]interface{}] { 8429 return &c.Labels 8430 } 8431 8432 // mqlIptables for the iptables resource 8433 type mqlIptables struct { 8434 MqlRuntime *plugin.Runtime 8435 __id string 8436 // optional: if you define mqlIptablesInternal it will be used here 8437 Input plugin.TValue[[]interface{}] 8438 Output plugin.TValue[[]interface{}] 8439 } 8440 8441 // createIptables creates a new instance of this resource 8442 func createIptables(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 8443 res := &mqlIptables{ 8444 MqlRuntime: runtime, 8445 } 8446 8447 err := SetAllData(res, args) 8448 if err != nil { 8449 return res, err 8450 } 8451 8452 // to override __id implement: id() (string, error) 8453 8454 if runtime.HasRecording { 8455 args, err = runtime.ResourceFromRecording("iptables", res.__id) 8456 if err != nil || args == nil { 8457 return res, err 8458 } 8459 return res, SetAllData(res, args) 8460 } 8461 8462 return res, nil 8463 } 8464 8465 func (c *mqlIptables) MqlName() string { 8466 return "iptables" 8467 } 8468 8469 func (c *mqlIptables) MqlID() string { 8470 return c.__id 8471 } 8472 8473 func (c *mqlIptables) GetInput() *plugin.TValue[[]interface{}] { 8474 return plugin.GetOrCompute[[]interface{}](&c.Input, func() ([]interface{}, error) { 8475 if c.MqlRuntime.HasRecording { 8476 d, err := c.MqlRuntime.FieldResourceFromRecording("iptables", c.__id, "input") 8477 if err != nil { 8478 return nil, err 8479 } 8480 if d != nil { 8481 return d.Value.([]interface{}), nil 8482 } 8483 } 8484 8485 return c.input() 8486 }) 8487 } 8488 8489 func (c *mqlIptables) GetOutput() *plugin.TValue[[]interface{}] { 8490 return plugin.GetOrCompute[[]interface{}](&c.Output, func() ([]interface{}, error) { 8491 if c.MqlRuntime.HasRecording { 8492 d, err := c.MqlRuntime.FieldResourceFromRecording("iptables", c.__id, "output") 8493 if err != nil { 8494 return nil, err 8495 } 8496 if d != nil { 8497 return d.Value.([]interface{}), nil 8498 } 8499 } 8500 8501 return c.output() 8502 }) 8503 } 8504 8505 // mqlIp6tables for the ip6tables resource 8506 type mqlIp6tables struct { 8507 MqlRuntime *plugin.Runtime 8508 __id string 8509 // optional: if you define mqlIp6tablesInternal it will be used here 8510 Input plugin.TValue[[]interface{}] 8511 Output plugin.TValue[[]interface{}] 8512 } 8513 8514 // createIp6tables creates a new instance of this resource 8515 func createIp6tables(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 8516 res := &mqlIp6tables{ 8517 MqlRuntime: runtime, 8518 } 8519 8520 err := SetAllData(res, args) 8521 if err != nil { 8522 return res, err 8523 } 8524 8525 // to override __id implement: id() (string, error) 8526 8527 if runtime.HasRecording { 8528 args, err = runtime.ResourceFromRecording("ip6tables", res.__id) 8529 if err != nil || args == nil { 8530 return res, err 8531 } 8532 return res, SetAllData(res, args) 8533 } 8534 8535 return res, nil 8536 } 8537 8538 func (c *mqlIp6tables) MqlName() string { 8539 return "ip6tables" 8540 } 8541 8542 func (c *mqlIp6tables) MqlID() string { 8543 return c.__id 8544 } 8545 8546 func (c *mqlIp6tables) GetInput() *plugin.TValue[[]interface{}] { 8547 return plugin.GetOrCompute[[]interface{}](&c.Input, func() ([]interface{}, error) { 8548 if c.MqlRuntime.HasRecording { 8549 d, err := c.MqlRuntime.FieldResourceFromRecording("ip6tables", c.__id, "input") 8550 if err != nil { 8551 return nil, err 8552 } 8553 if d != nil { 8554 return d.Value.([]interface{}), nil 8555 } 8556 } 8557 8558 return c.input() 8559 }) 8560 } 8561 8562 func (c *mqlIp6tables) GetOutput() *plugin.TValue[[]interface{}] { 8563 return plugin.GetOrCompute[[]interface{}](&c.Output, func() ([]interface{}, error) { 8564 if c.MqlRuntime.HasRecording { 8565 d, err := c.MqlRuntime.FieldResourceFromRecording("ip6tables", c.__id, "output") 8566 if err != nil { 8567 return nil, err 8568 } 8569 if d != nil { 8570 return d.Value.([]interface{}), nil 8571 } 8572 } 8573 8574 return c.output() 8575 }) 8576 } 8577 8578 // mqlIptablesEntry for the iptables.entry resource 8579 type mqlIptablesEntry struct { 8580 MqlRuntime *plugin.Runtime 8581 __id string 8582 // optional: if you define mqlIptablesEntryInternal it will be used here 8583 LineNumber plugin.TValue[int64] 8584 Packets plugin.TValue[int64] 8585 Bytes plugin.TValue[int64] 8586 Target plugin.TValue[string] 8587 Protocol plugin.TValue[string] 8588 Opt plugin.TValue[string] 8589 In plugin.TValue[string] 8590 Out plugin.TValue[string] 8591 Source plugin.TValue[string] 8592 Destination plugin.TValue[string] 8593 Options plugin.TValue[string] 8594 Chain plugin.TValue[string] 8595 } 8596 8597 // createIptablesEntry creates a new instance of this resource 8598 func createIptablesEntry(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 8599 res := &mqlIptablesEntry{ 8600 MqlRuntime: runtime, 8601 } 8602 8603 err := SetAllData(res, args) 8604 if err != nil { 8605 return res, err 8606 } 8607 8608 if res.__id == "" { 8609 res.__id, err = res.id() 8610 if err != nil { 8611 return nil, err 8612 } 8613 } 8614 8615 if runtime.HasRecording { 8616 args, err = runtime.ResourceFromRecording("iptables.entry", res.__id) 8617 if err != nil || args == nil { 8618 return res, err 8619 } 8620 return res, SetAllData(res, args) 8621 } 8622 8623 return res, nil 8624 } 8625 8626 func (c *mqlIptablesEntry) MqlName() string { 8627 return "iptables.entry" 8628 } 8629 8630 func (c *mqlIptablesEntry) MqlID() string { 8631 return c.__id 8632 } 8633 8634 func (c *mqlIptablesEntry) GetLineNumber() *plugin.TValue[int64] { 8635 return &c.LineNumber 8636 } 8637 8638 func (c *mqlIptablesEntry) GetPackets() *plugin.TValue[int64] { 8639 return &c.Packets 8640 } 8641 8642 func (c *mqlIptablesEntry) GetBytes() *plugin.TValue[int64] { 8643 return &c.Bytes 8644 } 8645 8646 func (c *mqlIptablesEntry) GetTarget() *plugin.TValue[string] { 8647 return &c.Target 8648 } 8649 8650 func (c *mqlIptablesEntry) GetProtocol() *plugin.TValue[string] { 8651 return &c.Protocol 8652 } 8653 8654 func (c *mqlIptablesEntry) GetOpt() *plugin.TValue[string] { 8655 return &c.Opt 8656 } 8657 8658 func (c *mqlIptablesEntry) GetIn() *plugin.TValue[string] { 8659 return &c.In 8660 } 8661 8662 func (c *mqlIptablesEntry) GetOut() *plugin.TValue[string] { 8663 return &c.Out 8664 } 8665 8666 func (c *mqlIptablesEntry) GetSource() *plugin.TValue[string] { 8667 return &c.Source 8668 } 8669 8670 func (c *mqlIptablesEntry) GetDestination() *plugin.TValue[string] { 8671 return &c.Destination 8672 } 8673 8674 func (c *mqlIptablesEntry) GetOptions() *plugin.TValue[string] { 8675 return &c.Options 8676 } 8677 8678 func (c *mqlIptablesEntry) GetChain() *plugin.TValue[string] { 8679 return &c.Chain 8680 } 8681 8682 // mqlProcess for the process resource 8683 type mqlProcess struct { 8684 MqlRuntime *plugin.Runtime 8685 __id string 8686 mqlProcessInternal 8687 Pid plugin.TValue[int64] 8688 State plugin.TValue[string] 8689 Executable plugin.TValue[string] 8690 Command plugin.TValue[string] 8691 Flags plugin.TValue[map[string]interface{}] 8692 } 8693 8694 // createProcess creates a new instance of this resource 8695 func createProcess(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 8696 res := &mqlProcess{ 8697 MqlRuntime: runtime, 8698 } 8699 8700 err := SetAllData(res, args) 8701 if err != nil { 8702 return res, err 8703 } 8704 8705 if res.__id == "" { 8706 res.__id, err = res.id() 8707 if err != nil { 8708 return nil, err 8709 } 8710 } 8711 8712 if runtime.HasRecording { 8713 args, err = runtime.ResourceFromRecording("process", res.__id) 8714 if err != nil || args == nil { 8715 return res, err 8716 } 8717 return res, SetAllData(res, args) 8718 } 8719 8720 return res, nil 8721 } 8722 8723 func (c *mqlProcess) MqlName() string { 8724 return "process" 8725 } 8726 8727 func (c *mqlProcess) MqlID() string { 8728 return c.__id 8729 } 8730 8731 func (c *mqlProcess) GetPid() *plugin.TValue[int64] { 8732 return &c.Pid 8733 } 8734 8735 func (c *mqlProcess) GetState() *plugin.TValue[string] { 8736 return plugin.GetOrCompute[string](&c.State, func() (string, error) { 8737 return c.state() 8738 }) 8739 } 8740 8741 func (c *mqlProcess) GetExecutable() *plugin.TValue[string] { 8742 return plugin.GetOrCompute[string](&c.Executable, func() (string, error) { 8743 return c.executable() 8744 }) 8745 } 8746 8747 func (c *mqlProcess) GetCommand() *plugin.TValue[string] { 8748 return plugin.GetOrCompute[string](&c.Command, func() (string, error) { 8749 return c.command() 8750 }) 8751 } 8752 8753 func (c *mqlProcess) GetFlags() *plugin.TValue[map[string]interface{}] { 8754 return plugin.GetOrCompute[map[string]interface{}](&c.Flags, func() (map[string]interface{}, error) { 8755 return c.flags() 8756 }) 8757 } 8758 8759 // mqlProcesses for the processes resource 8760 type mqlProcesses struct { 8761 MqlRuntime *plugin.Runtime 8762 __id string 8763 mqlProcessesInternal 8764 List plugin.TValue[[]interface{}] 8765 } 8766 8767 // createProcesses creates a new instance of this resource 8768 func createProcesses(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 8769 res := &mqlProcesses{ 8770 MqlRuntime: runtime, 8771 } 8772 8773 err := SetAllData(res, args) 8774 if err != nil { 8775 return res, err 8776 } 8777 8778 // to override __id implement: id() (string, error) 8779 8780 if runtime.HasRecording { 8781 args, err = runtime.ResourceFromRecording("processes", res.__id) 8782 if err != nil || args == nil { 8783 return res, err 8784 } 8785 return res, SetAllData(res, args) 8786 } 8787 8788 return res, nil 8789 } 8790 8791 func (c *mqlProcesses) MqlName() string { 8792 return "processes" 8793 } 8794 8795 func (c *mqlProcesses) MqlID() string { 8796 return c.__id 8797 } 8798 8799 func (c *mqlProcesses) GetList() *plugin.TValue[[]interface{}] { 8800 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 8801 if c.MqlRuntime.HasRecording { 8802 d, err := c.MqlRuntime.FieldResourceFromRecording("processes", c.__id, "list") 8803 if err != nil { 8804 return nil, err 8805 } 8806 if d != nil { 8807 return d.Value.([]interface{}), nil 8808 } 8809 } 8810 8811 return c.list() 8812 }) 8813 } 8814 8815 // mqlPort for the port resource 8816 type mqlPort struct { 8817 MqlRuntime *plugin.Runtime 8818 __id string 8819 mqlPortInternal 8820 Protocol plugin.TValue[string] 8821 Port plugin.TValue[int64] 8822 Address plugin.TValue[string] 8823 User plugin.TValue[*mqlUser] 8824 Process plugin.TValue[*mqlProcess] 8825 State plugin.TValue[string] 8826 RemoteAddress plugin.TValue[string] 8827 RemotePort plugin.TValue[int64] 8828 Tls plugin.TValue[plugin.Resource] 8829 } 8830 8831 // createPort creates a new instance of this resource 8832 func createPort(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 8833 res := &mqlPort{ 8834 MqlRuntime: runtime, 8835 } 8836 8837 err := SetAllData(res, args) 8838 if err != nil { 8839 return res, err 8840 } 8841 8842 if res.__id == "" { 8843 res.__id, err = res.id() 8844 if err != nil { 8845 return nil, err 8846 } 8847 } 8848 8849 if runtime.HasRecording { 8850 args, err = runtime.ResourceFromRecording("port", res.__id) 8851 if err != nil || args == nil { 8852 return res, err 8853 } 8854 return res, SetAllData(res, args) 8855 } 8856 8857 return res, nil 8858 } 8859 8860 func (c *mqlPort) MqlName() string { 8861 return "port" 8862 } 8863 8864 func (c *mqlPort) MqlID() string { 8865 return c.__id 8866 } 8867 8868 func (c *mqlPort) GetProtocol() *plugin.TValue[string] { 8869 return &c.Protocol 8870 } 8871 8872 func (c *mqlPort) GetPort() *plugin.TValue[int64] { 8873 return &c.Port 8874 } 8875 8876 func (c *mqlPort) GetAddress() *plugin.TValue[string] { 8877 return &c.Address 8878 } 8879 8880 func (c *mqlPort) GetUser() *plugin.TValue[*mqlUser] { 8881 return &c.User 8882 } 8883 8884 func (c *mqlPort) GetProcess() *plugin.TValue[*mqlProcess] { 8885 return plugin.GetOrCompute[*mqlProcess](&c.Process, func() (*mqlProcess, error) { 8886 if c.MqlRuntime.HasRecording { 8887 d, err := c.MqlRuntime.FieldResourceFromRecording("port", c.__id, "process") 8888 if err != nil { 8889 return nil, err 8890 } 8891 if d != nil { 8892 return d.Value.(*mqlProcess), nil 8893 } 8894 } 8895 8896 return c.process() 8897 }) 8898 } 8899 8900 func (c *mqlPort) GetState() *plugin.TValue[string] { 8901 return &c.State 8902 } 8903 8904 func (c *mqlPort) GetRemoteAddress() *plugin.TValue[string] { 8905 return &c.RemoteAddress 8906 } 8907 8908 func (c *mqlPort) GetRemotePort() *plugin.TValue[int64] { 8909 return &c.RemotePort 8910 } 8911 8912 func (c *mqlPort) GetTls() *plugin.TValue[plugin.Resource] { 8913 return plugin.GetOrCompute[plugin.Resource](&c.Tls, func() (plugin.Resource, error) { 8914 if c.MqlRuntime.HasRecording { 8915 d, err := c.MqlRuntime.FieldResourceFromRecording("port", c.__id, "tls") 8916 if err != nil { 8917 return nil, err 8918 } 8919 if d != nil { 8920 return d.Value.(plugin.Resource), nil 8921 } 8922 } 8923 8924 vargAddress := c.GetAddress() 8925 if vargAddress.Error != nil { 8926 return nil, vargAddress.Error 8927 } 8928 8929 vargPort := c.GetPort() 8930 if vargPort.Error != nil { 8931 return nil, vargPort.Error 8932 } 8933 8934 vargProtocol := c.GetProtocol() 8935 if vargProtocol.Error != nil { 8936 return nil, vargProtocol.Error 8937 } 8938 8939 return c.tls(vargAddress.Data, vargPort.Data, vargProtocol.Data) 8940 }) 8941 } 8942 8943 // mqlPorts for the ports resource 8944 type mqlPorts struct { 8945 MqlRuntime *plugin.Runtime 8946 __id string 8947 mqlPortsInternal 8948 Listening plugin.TValue[[]interface{}] 8949 List plugin.TValue[[]interface{}] 8950 } 8951 8952 // createPorts creates a new instance of this resource 8953 func createPorts(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 8954 res := &mqlPorts{ 8955 MqlRuntime: runtime, 8956 } 8957 8958 err := SetAllData(res, args) 8959 if err != nil { 8960 return res, err 8961 } 8962 8963 // to override __id implement: id() (string, error) 8964 8965 if runtime.HasRecording { 8966 args, err = runtime.ResourceFromRecording("ports", res.__id) 8967 if err != nil || args == nil { 8968 return res, err 8969 } 8970 return res, SetAllData(res, args) 8971 } 8972 8973 return res, nil 8974 } 8975 8976 func (c *mqlPorts) MqlName() string { 8977 return "ports" 8978 } 8979 8980 func (c *mqlPorts) MqlID() string { 8981 return c.__id 8982 } 8983 8984 func (c *mqlPorts) GetListening() *plugin.TValue[[]interface{}] { 8985 return plugin.GetOrCompute[[]interface{}](&c.Listening, func() ([]interface{}, error) { 8986 if c.MqlRuntime.HasRecording { 8987 d, err := c.MqlRuntime.FieldResourceFromRecording("ports", c.__id, "listening") 8988 if err != nil { 8989 return nil, err 8990 } 8991 if d != nil { 8992 return d.Value.([]interface{}), nil 8993 } 8994 } 8995 8996 return c.listening() 8997 }) 8998 } 8999 9000 func (c *mqlPorts) GetList() *plugin.TValue[[]interface{}] { 9001 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 9002 if c.MqlRuntime.HasRecording { 9003 d, err := c.MqlRuntime.FieldResourceFromRecording("ports", c.__id, "list") 9004 if err != nil { 9005 return nil, err 9006 } 9007 if d != nil { 9008 return d.Value.([]interface{}), nil 9009 } 9010 } 9011 9012 return c.list() 9013 }) 9014 } 9015 9016 // mqlAuditpol for the auditpol resource 9017 type mqlAuditpol struct { 9018 MqlRuntime *plugin.Runtime 9019 __id string 9020 // optional: if you define mqlAuditpolInternal it will be used here 9021 List plugin.TValue[[]interface{}] 9022 } 9023 9024 // createAuditpol creates a new instance of this resource 9025 func createAuditpol(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 9026 res := &mqlAuditpol{ 9027 MqlRuntime: runtime, 9028 } 9029 9030 err := SetAllData(res, args) 9031 if err != nil { 9032 return res, err 9033 } 9034 9035 // to override __id implement: id() (string, error) 9036 9037 if runtime.HasRecording { 9038 args, err = runtime.ResourceFromRecording("auditpol", res.__id) 9039 if err != nil || args == nil { 9040 return res, err 9041 } 9042 return res, SetAllData(res, args) 9043 } 9044 9045 return res, nil 9046 } 9047 9048 func (c *mqlAuditpol) MqlName() string { 9049 return "auditpol" 9050 } 9051 9052 func (c *mqlAuditpol) MqlID() string { 9053 return c.__id 9054 } 9055 9056 func (c *mqlAuditpol) GetList() *plugin.TValue[[]interface{}] { 9057 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 9058 if c.MqlRuntime.HasRecording { 9059 d, err := c.MqlRuntime.FieldResourceFromRecording("auditpol", c.__id, "list") 9060 if err != nil { 9061 return nil, err 9062 } 9063 if d != nil { 9064 return d.Value.([]interface{}), nil 9065 } 9066 } 9067 9068 return c.list() 9069 }) 9070 } 9071 9072 // mqlAuditpolEntry for the auditpol.entry resource 9073 type mqlAuditpolEntry struct { 9074 MqlRuntime *plugin.Runtime 9075 __id string 9076 // optional: if you define mqlAuditpolEntryInternal it will be used here 9077 Machinename plugin.TValue[string] 9078 Policytarget plugin.TValue[string] 9079 Subcategory plugin.TValue[string] 9080 Subcategoryguid plugin.TValue[string] 9081 Inclusionsetting plugin.TValue[string] 9082 Exclusionsetting plugin.TValue[string] 9083 } 9084 9085 // createAuditpolEntry creates a new instance of this resource 9086 func createAuditpolEntry(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 9087 res := &mqlAuditpolEntry{ 9088 MqlRuntime: runtime, 9089 } 9090 9091 err := SetAllData(res, args) 9092 if err != nil { 9093 return res, err 9094 } 9095 9096 if res.__id == "" { 9097 res.__id, err = res.id() 9098 if err != nil { 9099 return nil, err 9100 } 9101 } 9102 9103 if runtime.HasRecording { 9104 args, err = runtime.ResourceFromRecording("auditpol.entry", res.__id) 9105 if err != nil || args == nil { 9106 return res, err 9107 } 9108 return res, SetAllData(res, args) 9109 } 9110 9111 return res, nil 9112 } 9113 9114 func (c *mqlAuditpolEntry) MqlName() string { 9115 return "auditpol.entry" 9116 } 9117 9118 func (c *mqlAuditpolEntry) MqlID() string { 9119 return c.__id 9120 } 9121 9122 func (c *mqlAuditpolEntry) GetMachinename() *plugin.TValue[string] { 9123 return &c.Machinename 9124 } 9125 9126 func (c *mqlAuditpolEntry) GetPolicytarget() *plugin.TValue[string] { 9127 return &c.Policytarget 9128 } 9129 9130 func (c *mqlAuditpolEntry) GetSubcategory() *plugin.TValue[string] { 9131 return &c.Subcategory 9132 } 9133 9134 func (c *mqlAuditpolEntry) GetSubcategoryguid() *plugin.TValue[string] { 9135 return &c.Subcategoryguid 9136 } 9137 9138 func (c *mqlAuditpolEntry) GetInclusionsetting() *plugin.TValue[string] { 9139 return &c.Inclusionsetting 9140 } 9141 9142 func (c *mqlAuditpolEntry) GetExclusionsetting() *plugin.TValue[string] { 9143 return &c.Exclusionsetting 9144 } 9145 9146 // mqlSecpol for the secpol resource 9147 type mqlSecpol struct { 9148 MqlRuntime *plugin.Runtime 9149 __id string 9150 mqlSecpolInternal 9151 Systemaccess plugin.TValue[map[string]interface{}] 9152 Eventaudit plugin.TValue[map[string]interface{}] 9153 Registryvalues plugin.TValue[map[string]interface{}] 9154 Privilegerights plugin.TValue[map[string]interface{}] 9155 } 9156 9157 // createSecpol creates a new instance of this resource 9158 func createSecpol(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 9159 res := &mqlSecpol{ 9160 MqlRuntime: runtime, 9161 } 9162 9163 err := SetAllData(res, args) 9164 if err != nil { 9165 return res, err 9166 } 9167 9168 // to override __id implement: id() (string, error) 9169 9170 if runtime.HasRecording { 9171 args, err = runtime.ResourceFromRecording("secpol", res.__id) 9172 if err != nil || args == nil { 9173 return res, err 9174 } 9175 return res, SetAllData(res, args) 9176 } 9177 9178 return res, nil 9179 } 9180 9181 func (c *mqlSecpol) MqlName() string { 9182 return "secpol" 9183 } 9184 9185 func (c *mqlSecpol) MqlID() string { 9186 return c.__id 9187 } 9188 9189 func (c *mqlSecpol) GetSystemaccess() *plugin.TValue[map[string]interface{}] { 9190 return plugin.GetOrCompute[map[string]interface{}](&c.Systemaccess, func() (map[string]interface{}, error) { 9191 return c.systemaccess() 9192 }) 9193 } 9194 9195 func (c *mqlSecpol) GetEventaudit() *plugin.TValue[map[string]interface{}] { 9196 return plugin.GetOrCompute[map[string]interface{}](&c.Eventaudit, func() (map[string]interface{}, error) { 9197 return c.eventaudit() 9198 }) 9199 } 9200 9201 func (c *mqlSecpol) GetRegistryvalues() *plugin.TValue[map[string]interface{}] { 9202 return plugin.GetOrCompute[map[string]interface{}](&c.Registryvalues, func() (map[string]interface{}, error) { 9203 return c.registryvalues() 9204 }) 9205 } 9206 9207 func (c *mqlSecpol) GetPrivilegerights() *plugin.TValue[map[string]interface{}] { 9208 return plugin.GetOrCompute[map[string]interface{}](&c.Privilegerights, func() (map[string]interface{}, error) { 9209 return c.privilegerights() 9210 }) 9211 } 9212 9213 // mqlNtpConf for the ntp.conf resource 9214 type mqlNtpConf struct { 9215 MqlRuntime *plugin.Runtime 9216 __id string 9217 // optional: if you define mqlNtpConfInternal it will be used here 9218 File plugin.TValue[*mqlFile] 9219 Content plugin.TValue[string] 9220 Settings plugin.TValue[[]interface{}] 9221 Servers plugin.TValue[[]interface{}] 9222 Restrict plugin.TValue[[]interface{}] 9223 Fudge plugin.TValue[[]interface{}] 9224 } 9225 9226 // createNtpConf creates a new instance of this resource 9227 func createNtpConf(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 9228 res := &mqlNtpConf{ 9229 MqlRuntime: runtime, 9230 } 9231 9232 err := SetAllData(res, args) 9233 if err != nil { 9234 return res, err 9235 } 9236 9237 if res.__id == "" { 9238 res.__id, err = res.id() 9239 if err != nil { 9240 return nil, err 9241 } 9242 } 9243 9244 if runtime.HasRecording { 9245 args, err = runtime.ResourceFromRecording("ntp.conf", res.__id) 9246 if err != nil || args == nil { 9247 return res, err 9248 } 9249 return res, SetAllData(res, args) 9250 } 9251 9252 return res, nil 9253 } 9254 9255 func (c *mqlNtpConf) MqlName() string { 9256 return "ntp.conf" 9257 } 9258 9259 func (c *mqlNtpConf) MqlID() string { 9260 return c.__id 9261 } 9262 9263 func (c *mqlNtpConf) GetFile() *plugin.TValue[*mqlFile] { 9264 return plugin.GetOrCompute[*mqlFile](&c.File, func() (*mqlFile, error) { 9265 if c.MqlRuntime.HasRecording { 9266 d, err := c.MqlRuntime.FieldResourceFromRecording("ntp.conf", c.__id, "file") 9267 if err != nil { 9268 return nil, err 9269 } 9270 if d != nil { 9271 return d.Value.(*mqlFile), nil 9272 } 9273 } 9274 9275 return c.file() 9276 }) 9277 } 9278 9279 func (c *mqlNtpConf) GetContent() *plugin.TValue[string] { 9280 return plugin.GetOrCompute[string](&c.Content, func() (string, error) { 9281 vargFile := c.GetFile() 9282 if vargFile.Error != nil { 9283 return "", vargFile.Error 9284 } 9285 9286 return c.content(vargFile.Data) 9287 }) 9288 } 9289 9290 func (c *mqlNtpConf) GetSettings() *plugin.TValue[[]interface{}] { 9291 return plugin.GetOrCompute[[]interface{}](&c.Settings, func() ([]interface{}, error) { 9292 vargContent := c.GetContent() 9293 if vargContent.Error != nil { 9294 return nil, vargContent.Error 9295 } 9296 9297 return c.settings(vargContent.Data) 9298 }) 9299 } 9300 9301 func (c *mqlNtpConf) GetServers() *plugin.TValue[[]interface{}] { 9302 return plugin.GetOrCompute[[]interface{}](&c.Servers, func() ([]interface{}, error) { 9303 vargSettings := c.GetSettings() 9304 if vargSettings.Error != nil { 9305 return nil, vargSettings.Error 9306 } 9307 9308 return c.servers(vargSettings.Data) 9309 }) 9310 } 9311 9312 func (c *mqlNtpConf) GetRestrict() *plugin.TValue[[]interface{}] { 9313 return plugin.GetOrCompute[[]interface{}](&c.Restrict, func() ([]interface{}, error) { 9314 vargSettings := c.GetSettings() 9315 if vargSettings.Error != nil { 9316 return nil, vargSettings.Error 9317 } 9318 9319 return c.restrict(vargSettings.Data) 9320 }) 9321 } 9322 9323 func (c *mqlNtpConf) GetFudge() *plugin.TValue[[]interface{}] { 9324 return plugin.GetOrCompute[[]interface{}](&c.Fudge, func() ([]interface{}, error) { 9325 vargSettings := c.GetSettings() 9326 if vargSettings.Error != nil { 9327 return nil, vargSettings.Error 9328 } 9329 9330 return c.fudge(vargSettings.Data) 9331 }) 9332 } 9333 9334 // mqlRsyslogConf for the rsyslog.conf resource 9335 type mqlRsyslogConf struct { 9336 MqlRuntime *plugin.Runtime 9337 __id string 9338 // optional: if you define mqlRsyslogConfInternal it will be used here 9339 Path plugin.TValue[string] 9340 Files plugin.TValue[[]interface{}] 9341 Content plugin.TValue[string] 9342 Settings plugin.TValue[[]interface{}] 9343 } 9344 9345 // createRsyslogConf creates a new instance of this resource 9346 func createRsyslogConf(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 9347 res := &mqlRsyslogConf{ 9348 MqlRuntime: runtime, 9349 } 9350 9351 err := SetAllData(res, args) 9352 if err != nil { 9353 return res, err 9354 } 9355 9356 if res.__id == "" { 9357 res.__id, err = res.id() 9358 if err != nil { 9359 return nil, err 9360 } 9361 } 9362 9363 if runtime.HasRecording { 9364 args, err = runtime.ResourceFromRecording("rsyslog.conf", res.__id) 9365 if err != nil || args == nil { 9366 return res, err 9367 } 9368 return res, SetAllData(res, args) 9369 } 9370 9371 return res, nil 9372 } 9373 9374 func (c *mqlRsyslogConf) MqlName() string { 9375 return "rsyslog.conf" 9376 } 9377 9378 func (c *mqlRsyslogConf) MqlID() string { 9379 return c.__id 9380 } 9381 9382 func (c *mqlRsyslogConf) GetPath() *plugin.TValue[string] { 9383 return plugin.GetOrCompute[string](&c.Path, func() (string, error) { 9384 return c.path() 9385 }) 9386 } 9387 9388 func (c *mqlRsyslogConf) GetFiles() *plugin.TValue[[]interface{}] { 9389 return plugin.GetOrCompute[[]interface{}](&c.Files, func() ([]interface{}, error) { 9390 if c.MqlRuntime.HasRecording { 9391 d, err := c.MqlRuntime.FieldResourceFromRecording("rsyslog.conf", c.__id, "files") 9392 if err != nil { 9393 return nil, err 9394 } 9395 if d != nil { 9396 return d.Value.([]interface{}), nil 9397 } 9398 } 9399 9400 vargPath := c.GetPath() 9401 if vargPath.Error != nil { 9402 return nil, vargPath.Error 9403 } 9404 9405 return c.files(vargPath.Data) 9406 }) 9407 } 9408 9409 func (c *mqlRsyslogConf) GetContent() *plugin.TValue[string] { 9410 return plugin.GetOrCompute[string](&c.Content, func() (string, error) { 9411 vargFiles := c.GetFiles() 9412 if vargFiles.Error != nil { 9413 return "", vargFiles.Error 9414 } 9415 9416 return c.content(vargFiles.Data) 9417 }) 9418 } 9419 9420 func (c *mqlRsyslogConf) GetSettings() *plugin.TValue[[]interface{}] { 9421 return plugin.GetOrCompute[[]interface{}](&c.Settings, func() ([]interface{}, error) { 9422 vargContent := c.GetContent() 9423 if vargContent.Error != nil { 9424 return nil, vargContent.Error 9425 } 9426 9427 return c.settings(vargContent.Data) 9428 }) 9429 } 9430 9431 // mqlLogindefs for the logindefs resource 9432 type mqlLogindefs struct { 9433 MqlRuntime *plugin.Runtime 9434 __id string 9435 // optional: if you define mqlLogindefsInternal it will be used here 9436 File plugin.TValue[*mqlFile] 9437 Content plugin.TValue[string] 9438 Params plugin.TValue[map[string]interface{}] 9439 } 9440 9441 // createLogindefs creates a new instance of this resource 9442 func createLogindefs(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 9443 res := &mqlLogindefs{ 9444 MqlRuntime: runtime, 9445 } 9446 9447 err := SetAllData(res, args) 9448 if err != nil { 9449 return res, err 9450 } 9451 9452 if res.__id == "" { 9453 res.__id, err = res.id() 9454 if err != nil { 9455 return nil, err 9456 } 9457 } 9458 9459 if runtime.HasRecording { 9460 args, err = runtime.ResourceFromRecording("logindefs", res.__id) 9461 if err != nil || args == nil { 9462 return res, err 9463 } 9464 return res, SetAllData(res, args) 9465 } 9466 9467 return res, nil 9468 } 9469 9470 func (c *mqlLogindefs) MqlName() string { 9471 return "logindefs" 9472 } 9473 9474 func (c *mqlLogindefs) MqlID() string { 9475 return c.__id 9476 } 9477 9478 func (c *mqlLogindefs) GetFile() *plugin.TValue[*mqlFile] { 9479 return plugin.GetOrCompute[*mqlFile](&c.File, func() (*mqlFile, error) { 9480 if c.MqlRuntime.HasRecording { 9481 d, err := c.MqlRuntime.FieldResourceFromRecording("logindefs", c.__id, "file") 9482 if err != nil { 9483 return nil, err 9484 } 9485 if d != nil { 9486 return d.Value.(*mqlFile), nil 9487 } 9488 } 9489 9490 return c.file() 9491 }) 9492 } 9493 9494 func (c *mqlLogindefs) GetContent() *plugin.TValue[string] { 9495 return plugin.GetOrCompute[string](&c.Content, func() (string, error) { 9496 vargFile := c.GetFile() 9497 if vargFile.Error != nil { 9498 return "", vargFile.Error 9499 } 9500 9501 return c.content(vargFile.Data) 9502 }) 9503 } 9504 9505 func (c *mqlLogindefs) GetParams() *plugin.TValue[map[string]interface{}] { 9506 return plugin.GetOrCompute[map[string]interface{}](&c.Params, func() (map[string]interface{}, error) { 9507 vargContent := c.GetContent() 9508 if vargContent.Error != nil { 9509 return nil, vargContent.Error 9510 } 9511 9512 return c.params(vargContent.Data) 9513 }) 9514 } 9515 9516 // mqlLsblk for the lsblk resource 9517 type mqlLsblk struct { 9518 MqlRuntime *plugin.Runtime 9519 __id string 9520 // optional: if you define mqlLsblkInternal it will be used here 9521 List plugin.TValue[[]interface{}] 9522 } 9523 9524 // createLsblk creates a new instance of this resource 9525 func createLsblk(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 9526 res := &mqlLsblk{ 9527 MqlRuntime: runtime, 9528 } 9529 9530 err := SetAllData(res, args) 9531 if err != nil { 9532 return res, err 9533 } 9534 9535 if res.__id == "" { 9536 res.__id, err = res.id() 9537 if err != nil { 9538 return nil, err 9539 } 9540 } 9541 9542 if runtime.HasRecording { 9543 args, err = runtime.ResourceFromRecording("lsblk", res.__id) 9544 if err != nil || args == nil { 9545 return res, err 9546 } 9547 return res, SetAllData(res, args) 9548 } 9549 9550 return res, nil 9551 } 9552 9553 func (c *mqlLsblk) MqlName() string { 9554 return "lsblk" 9555 } 9556 9557 func (c *mqlLsblk) MqlID() string { 9558 return c.__id 9559 } 9560 9561 func (c *mqlLsblk) GetList() *plugin.TValue[[]interface{}] { 9562 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 9563 if c.MqlRuntime.HasRecording { 9564 d, err := c.MqlRuntime.FieldResourceFromRecording("lsblk", c.__id, "list") 9565 if err != nil { 9566 return nil, err 9567 } 9568 if d != nil { 9569 return d.Value.([]interface{}), nil 9570 } 9571 } 9572 9573 return c.list() 9574 }) 9575 } 9576 9577 // mqlLsblkEntry for the lsblk.entry resource 9578 type mqlLsblkEntry struct { 9579 MqlRuntime *plugin.Runtime 9580 __id string 9581 // optional: if you define mqlLsblkEntryInternal it will be used here 9582 Name plugin.TValue[string] 9583 Fstype plugin.TValue[string] 9584 Label plugin.TValue[string] 9585 Uuid plugin.TValue[string] 9586 Mountpoints plugin.TValue[[]interface{}] 9587 } 9588 9589 // createLsblkEntry creates a new instance of this resource 9590 func createLsblkEntry(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 9591 res := &mqlLsblkEntry{ 9592 MqlRuntime: runtime, 9593 } 9594 9595 err := SetAllData(res, args) 9596 if err != nil { 9597 return res, err 9598 } 9599 9600 if res.__id == "" { 9601 res.__id, err = res.id() 9602 if err != nil { 9603 return nil, err 9604 } 9605 } 9606 9607 if runtime.HasRecording { 9608 args, err = runtime.ResourceFromRecording("lsblk.entry", res.__id) 9609 if err != nil || args == nil { 9610 return res, err 9611 } 9612 return res, SetAllData(res, args) 9613 } 9614 9615 return res, nil 9616 } 9617 9618 func (c *mqlLsblkEntry) MqlName() string { 9619 return "lsblk.entry" 9620 } 9621 9622 func (c *mqlLsblkEntry) MqlID() string { 9623 return c.__id 9624 } 9625 9626 func (c *mqlLsblkEntry) GetName() *plugin.TValue[string] { 9627 return &c.Name 9628 } 9629 9630 func (c *mqlLsblkEntry) GetFstype() *plugin.TValue[string] { 9631 return &c.Fstype 9632 } 9633 9634 func (c *mqlLsblkEntry) GetLabel() *plugin.TValue[string] { 9635 return &c.Label 9636 } 9637 9638 func (c *mqlLsblkEntry) GetUuid() *plugin.TValue[string] { 9639 return &c.Uuid 9640 } 9641 9642 func (c *mqlLsblkEntry) GetMountpoints() *plugin.TValue[[]interface{}] { 9643 return &c.Mountpoints 9644 } 9645 9646 // mqlMount for the mount resource 9647 type mqlMount struct { 9648 MqlRuntime *plugin.Runtime 9649 __id string 9650 // optional: if you define mqlMountInternal it will be used here 9651 List plugin.TValue[[]interface{}] 9652 } 9653 9654 // createMount creates a new instance of this resource 9655 func createMount(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 9656 res := &mqlMount{ 9657 MqlRuntime: runtime, 9658 } 9659 9660 err := SetAllData(res, args) 9661 if err != nil { 9662 return res, err 9663 } 9664 9665 if res.__id == "" { 9666 res.__id, err = res.id() 9667 if err != nil { 9668 return nil, err 9669 } 9670 } 9671 9672 if runtime.HasRecording { 9673 args, err = runtime.ResourceFromRecording("mount", res.__id) 9674 if err != nil || args == nil { 9675 return res, err 9676 } 9677 return res, SetAllData(res, args) 9678 } 9679 9680 return res, nil 9681 } 9682 9683 func (c *mqlMount) MqlName() string { 9684 return "mount" 9685 } 9686 9687 func (c *mqlMount) MqlID() string { 9688 return c.__id 9689 } 9690 9691 func (c *mqlMount) GetList() *plugin.TValue[[]interface{}] { 9692 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 9693 if c.MqlRuntime.HasRecording { 9694 d, err := c.MqlRuntime.FieldResourceFromRecording("mount", c.__id, "list") 9695 if err != nil { 9696 return nil, err 9697 } 9698 if d != nil { 9699 return d.Value.([]interface{}), nil 9700 } 9701 } 9702 9703 return c.list() 9704 }) 9705 } 9706 9707 // mqlMountPoint for the mount.point resource 9708 type mqlMountPoint struct { 9709 MqlRuntime *plugin.Runtime 9710 __id string 9711 // optional: if you define mqlMountPointInternal it will be used here 9712 Device plugin.TValue[string] 9713 Path plugin.TValue[string] 9714 Fstype plugin.TValue[string] 9715 Options plugin.TValue[map[string]interface{}] 9716 Mounted plugin.TValue[bool] 9717 } 9718 9719 // createMountPoint creates a new instance of this resource 9720 func createMountPoint(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 9721 res := &mqlMountPoint{ 9722 MqlRuntime: runtime, 9723 } 9724 9725 err := SetAllData(res, args) 9726 if err != nil { 9727 return res, err 9728 } 9729 9730 if res.__id == "" { 9731 res.__id, err = res.id() 9732 if err != nil { 9733 return nil, err 9734 } 9735 } 9736 9737 if runtime.HasRecording { 9738 args, err = runtime.ResourceFromRecording("mount.point", res.__id) 9739 if err != nil || args == nil { 9740 return res, err 9741 } 9742 return res, SetAllData(res, args) 9743 } 9744 9745 return res, nil 9746 } 9747 9748 func (c *mqlMountPoint) MqlName() string { 9749 return "mount.point" 9750 } 9751 9752 func (c *mqlMountPoint) MqlID() string { 9753 return c.__id 9754 } 9755 9756 func (c *mqlMountPoint) GetDevice() *plugin.TValue[string] { 9757 return &c.Device 9758 } 9759 9760 func (c *mqlMountPoint) GetPath() *plugin.TValue[string] { 9761 return &c.Path 9762 } 9763 9764 func (c *mqlMountPoint) GetFstype() *plugin.TValue[string] { 9765 return &c.Fstype 9766 } 9767 9768 func (c *mqlMountPoint) GetOptions() *plugin.TValue[map[string]interface{}] { 9769 return &c.Options 9770 } 9771 9772 func (c *mqlMountPoint) GetMounted() *plugin.TValue[bool] { 9773 return &c.Mounted 9774 } 9775 9776 // mqlShadow for the shadow resource 9777 type mqlShadow struct { 9778 MqlRuntime *plugin.Runtime 9779 __id string 9780 // optional: if you define mqlShadowInternal it will be used here 9781 List plugin.TValue[[]interface{}] 9782 } 9783 9784 // createShadow creates a new instance of this resource 9785 func createShadow(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 9786 res := &mqlShadow{ 9787 MqlRuntime: runtime, 9788 } 9789 9790 err := SetAllData(res, args) 9791 if err != nil { 9792 return res, err 9793 } 9794 9795 if res.__id == "" { 9796 res.__id, err = res.id() 9797 if err != nil { 9798 return nil, err 9799 } 9800 } 9801 9802 if runtime.HasRecording { 9803 args, err = runtime.ResourceFromRecording("shadow", res.__id) 9804 if err != nil || args == nil { 9805 return res, err 9806 } 9807 return res, SetAllData(res, args) 9808 } 9809 9810 return res, nil 9811 } 9812 9813 func (c *mqlShadow) MqlName() string { 9814 return "shadow" 9815 } 9816 9817 func (c *mqlShadow) MqlID() string { 9818 return c.__id 9819 } 9820 9821 func (c *mqlShadow) GetList() *plugin.TValue[[]interface{}] { 9822 return plugin.GetOrCompute[[]interface{}](&c.List, func() ([]interface{}, error) { 9823 if c.MqlRuntime.HasRecording { 9824 d, err := c.MqlRuntime.FieldResourceFromRecording("shadow", c.__id, "list") 9825 if err != nil { 9826 return nil, err 9827 } 9828 if d != nil { 9829 return d.Value.([]interface{}), nil 9830 } 9831 } 9832 9833 return c.list() 9834 }) 9835 } 9836 9837 // mqlShadowEntry for the shadow.entry resource 9838 type mqlShadowEntry struct { 9839 MqlRuntime *plugin.Runtime 9840 __id string 9841 // optional: if you define mqlShadowEntryInternal it will be used here 9842 User plugin.TValue[string] 9843 Password plugin.TValue[string] 9844 Lastchanged plugin.TValue[*time.Time] 9845 Mindays plugin.TValue[int64] 9846 Maxdays plugin.TValue[int64] 9847 Warndays plugin.TValue[int64] 9848 Inactivedays plugin.TValue[int64] 9849 Expirydates plugin.TValue[string] 9850 Reserved plugin.TValue[string] 9851 } 9852 9853 // createShadowEntry creates a new instance of this resource 9854 func createShadowEntry(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 9855 res := &mqlShadowEntry{ 9856 MqlRuntime: runtime, 9857 } 9858 9859 err := SetAllData(res, args) 9860 if err != nil { 9861 return res, err 9862 } 9863 9864 if res.__id == "" { 9865 res.__id, err = res.id() 9866 if err != nil { 9867 return nil, err 9868 } 9869 } 9870 9871 if runtime.HasRecording { 9872 args, err = runtime.ResourceFromRecording("shadow.entry", res.__id) 9873 if err != nil || args == nil { 9874 return res, err 9875 } 9876 return res, SetAllData(res, args) 9877 } 9878 9879 return res, nil 9880 } 9881 9882 func (c *mqlShadowEntry) MqlName() string { 9883 return "shadow.entry" 9884 } 9885 9886 func (c *mqlShadowEntry) MqlID() string { 9887 return c.__id 9888 } 9889 9890 func (c *mqlShadowEntry) GetUser() *plugin.TValue[string] { 9891 return &c.User 9892 } 9893 9894 func (c *mqlShadowEntry) GetPassword() *plugin.TValue[string] { 9895 return &c.Password 9896 } 9897 9898 func (c *mqlShadowEntry) GetLastchanged() *plugin.TValue[*time.Time] { 9899 return &c.Lastchanged 9900 } 9901 9902 func (c *mqlShadowEntry) GetMindays() *plugin.TValue[int64] { 9903 return &c.Mindays 9904 } 9905 9906 func (c *mqlShadowEntry) GetMaxdays() *plugin.TValue[int64] { 9907 return &c.Maxdays 9908 } 9909 9910 func (c *mqlShadowEntry) GetWarndays() *plugin.TValue[int64] { 9911 return &c.Warndays 9912 } 9913 9914 func (c *mqlShadowEntry) GetInactivedays() *plugin.TValue[int64] { 9915 return &c.Inactivedays 9916 } 9917 9918 func (c *mqlShadowEntry) GetExpirydates() *plugin.TValue[string] { 9919 return &c.Expirydates 9920 } 9921 9922 func (c *mqlShadowEntry) GetReserved() *plugin.TValue[string] { 9923 return &c.Reserved 9924 } 9925 9926 // mqlYum for the yum resource 9927 type mqlYum struct { 9928 MqlRuntime *plugin.Runtime 9929 __id string 9930 // optional: if you define mqlYumInternal it will be used here 9931 Vars plugin.TValue[map[string]interface{}] 9932 Repos plugin.TValue[[]interface{}] 9933 } 9934 9935 // createYum creates a new instance of this resource 9936 func createYum(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 9937 res := &mqlYum{ 9938 MqlRuntime: runtime, 9939 } 9940 9941 err := SetAllData(res, args) 9942 if err != nil { 9943 return res, err 9944 } 9945 9946 if res.__id == "" { 9947 res.__id, err = res.id() 9948 if err != nil { 9949 return nil, err 9950 } 9951 } 9952 9953 if runtime.HasRecording { 9954 args, err = runtime.ResourceFromRecording("yum", res.__id) 9955 if err != nil || args == nil { 9956 return res, err 9957 } 9958 return res, SetAllData(res, args) 9959 } 9960 9961 return res, nil 9962 } 9963 9964 func (c *mqlYum) MqlName() string { 9965 return "yum" 9966 } 9967 9968 func (c *mqlYum) MqlID() string { 9969 return c.__id 9970 } 9971 9972 func (c *mqlYum) GetVars() *plugin.TValue[map[string]interface{}] { 9973 return plugin.GetOrCompute[map[string]interface{}](&c.Vars, func() (map[string]interface{}, error) { 9974 return c.vars() 9975 }) 9976 } 9977 9978 func (c *mqlYum) GetRepos() *plugin.TValue[[]interface{}] { 9979 return plugin.GetOrCompute[[]interface{}](&c.Repos, func() ([]interface{}, error) { 9980 if c.MqlRuntime.HasRecording { 9981 d, err := c.MqlRuntime.FieldResourceFromRecording("yum", c.__id, "repos") 9982 if err != nil { 9983 return nil, err 9984 } 9985 if d != nil { 9986 return d.Value.([]interface{}), nil 9987 } 9988 } 9989 9990 return c.repos() 9991 }) 9992 } 9993 9994 // mqlYumRepo for the yum.repo resource 9995 type mqlYumRepo struct { 9996 MqlRuntime *plugin.Runtime 9997 __id string 9998 // optional: if you define mqlYumRepoInternal it will be used here 9999 Id plugin.TValue[string] 10000 Name plugin.TValue[string] 10001 Status plugin.TValue[string] 10002 Baseurl plugin.TValue[[]interface{}] 10003 Expire plugin.TValue[string] 10004 Filename plugin.TValue[string] 10005 File plugin.TValue[*mqlFile] 10006 Revision plugin.TValue[string] 10007 Pkgs plugin.TValue[string] 10008 Size plugin.TValue[string] 10009 Mirrors plugin.TValue[string] 10010 Enabled plugin.TValue[bool] 10011 } 10012 10013 // createYumRepo creates a new instance of this resource 10014 func createYumRepo(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 10015 res := &mqlYumRepo{ 10016 MqlRuntime: runtime, 10017 } 10018 10019 err := SetAllData(res, args) 10020 if err != nil { 10021 return res, err 10022 } 10023 10024 if res.__id == "" { 10025 res.__id, err = res.id() 10026 if err != nil { 10027 return nil, err 10028 } 10029 } 10030 10031 if runtime.HasRecording { 10032 args, err = runtime.ResourceFromRecording("yum.repo", res.__id) 10033 if err != nil || args == nil { 10034 return res, err 10035 } 10036 return res, SetAllData(res, args) 10037 } 10038 10039 return res, nil 10040 } 10041 10042 func (c *mqlYumRepo) MqlName() string { 10043 return "yum.repo" 10044 } 10045 10046 func (c *mqlYumRepo) MqlID() string { 10047 return c.__id 10048 } 10049 10050 func (c *mqlYumRepo) GetId() *plugin.TValue[string] { 10051 return &c.Id 10052 } 10053 10054 func (c *mqlYumRepo) GetName() *plugin.TValue[string] { 10055 return &c.Name 10056 } 10057 10058 func (c *mqlYumRepo) GetStatus() *plugin.TValue[string] { 10059 return &c.Status 10060 } 10061 10062 func (c *mqlYumRepo) GetBaseurl() *plugin.TValue[[]interface{}] { 10063 return &c.Baseurl 10064 } 10065 10066 func (c *mqlYumRepo) GetExpire() *plugin.TValue[string] { 10067 return &c.Expire 10068 } 10069 10070 func (c *mqlYumRepo) GetFilename() *plugin.TValue[string] { 10071 return &c.Filename 10072 } 10073 10074 func (c *mqlYumRepo) GetFile() *plugin.TValue[*mqlFile] { 10075 return &c.File 10076 } 10077 10078 func (c *mqlYumRepo) GetRevision() *plugin.TValue[string] { 10079 return &c.Revision 10080 } 10081 10082 func (c *mqlYumRepo) GetPkgs() *plugin.TValue[string] { 10083 return &c.Pkgs 10084 } 10085 10086 func (c *mqlYumRepo) GetSize() *plugin.TValue[string] { 10087 return &c.Size 10088 } 10089 10090 func (c *mqlYumRepo) GetMirrors() *plugin.TValue[string] { 10091 return &c.Mirrors 10092 } 10093 10094 func (c *mqlYumRepo) GetEnabled() *plugin.TValue[bool] { 10095 return plugin.GetOrCompute[bool](&c.Enabled, func() (bool, error) { 10096 return c.enabled() 10097 }) 10098 } 10099 10100 // mqlRegistrykey for the registrykey resource 10101 type mqlRegistrykey struct { 10102 MqlRuntime *plugin.Runtime 10103 __id string 10104 // optional: if you define mqlRegistrykeyInternal it will be used here 10105 Path plugin.TValue[string] 10106 Exists plugin.TValue[bool] 10107 Properties plugin.TValue[map[string]interface{}] 10108 Items plugin.TValue[[]interface{}] 10109 Children plugin.TValue[[]interface{}] 10110 } 10111 10112 // createRegistrykey creates a new instance of this resource 10113 func createRegistrykey(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 10114 res := &mqlRegistrykey{ 10115 MqlRuntime: runtime, 10116 } 10117 10118 err := SetAllData(res, args) 10119 if err != nil { 10120 return res, err 10121 } 10122 10123 if res.__id == "" { 10124 res.__id, err = res.id() 10125 if err != nil { 10126 return nil, err 10127 } 10128 } 10129 10130 if runtime.HasRecording { 10131 args, err = runtime.ResourceFromRecording("registrykey", res.__id) 10132 if err != nil || args == nil { 10133 return res, err 10134 } 10135 return res, SetAllData(res, args) 10136 } 10137 10138 return res, nil 10139 } 10140 10141 func (c *mqlRegistrykey) MqlName() string { 10142 return "registrykey" 10143 } 10144 10145 func (c *mqlRegistrykey) MqlID() string { 10146 return c.__id 10147 } 10148 10149 func (c *mqlRegistrykey) GetPath() *plugin.TValue[string] { 10150 return &c.Path 10151 } 10152 10153 func (c *mqlRegistrykey) GetExists() *plugin.TValue[bool] { 10154 return plugin.GetOrCompute[bool](&c.Exists, func() (bool, error) { 10155 return c.exists() 10156 }) 10157 } 10158 10159 func (c *mqlRegistrykey) GetProperties() *plugin.TValue[map[string]interface{}] { 10160 return plugin.GetOrCompute[map[string]interface{}](&c.Properties, func() (map[string]interface{}, error) { 10161 return c.properties() 10162 }) 10163 } 10164 10165 func (c *mqlRegistrykey) GetItems() *plugin.TValue[[]interface{}] { 10166 return plugin.GetOrCompute[[]interface{}](&c.Items, func() ([]interface{}, error) { 10167 if c.MqlRuntime.HasRecording { 10168 d, err := c.MqlRuntime.FieldResourceFromRecording("registrykey", c.__id, "items") 10169 if err != nil { 10170 return nil, err 10171 } 10172 if d != nil { 10173 return d.Value.([]interface{}), nil 10174 } 10175 } 10176 10177 return c.items() 10178 }) 10179 } 10180 10181 func (c *mqlRegistrykey) GetChildren() *plugin.TValue[[]interface{}] { 10182 return plugin.GetOrCompute[[]interface{}](&c.Children, func() ([]interface{}, error) { 10183 return c.children() 10184 }) 10185 } 10186 10187 // mqlRegistrykeyProperty for the registrykey.property resource 10188 type mqlRegistrykeyProperty struct { 10189 MqlRuntime *plugin.Runtime 10190 __id string 10191 // optional: if you define mqlRegistrykeyPropertyInternal it will be used here 10192 Path plugin.TValue[string] 10193 Name plugin.TValue[string] 10194 Exists plugin.TValue[bool] 10195 Value plugin.TValue[string] 10196 Type plugin.TValue[string] 10197 Data plugin.TValue[interface{}] 10198 } 10199 10200 // createRegistrykeyProperty creates a new instance of this resource 10201 func createRegistrykeyProperty(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 10202 res := &mqlRegistrykeyProperty{ 10203 MqlRuntime: runtime, 10204 } 10205 10206 err := SetAllData(res, args) 10207 if err != nil { 10208 return res, err 10209 } 10210 10211 if res.__id == "" { 10212 res.__id, err = res.id() 10213 if err != nil { 10214 return nil, err 10215 } 10216 } 10217 10218 if runtime.HasRecording { 10219 args, err = runtime.ResourceFromRecording("registrykey.property", res.__id) 10220 if err != nil || args == nil { 10221 return res, err 10222 } 10223 return res, SetAllData(res, args) 10224 } 10225 10226 return res, nil 10227 } 10228 10229 func (c *mqlRegistrykeyProperty) MqlName() string { 10230 return "registrykey.property" 10231 } 10232 10233 func (c *mqlRegistrykeyProperty) MqlID() string { 10234 return c.__id 10235 } 10236 10237 func (c *mqlRegistrykeyProperty) GetPath() *plugin.TValue[string] { 10238 return &c.Path 10239 } 10240 10241 func (c *mqlRegistrykeyProperty) GetName() *plugin.TValue[string] { 10242 return &c.Name 10243 } 10244 10245 func (c *mqlRegistrykeyProperty) GetExists() *plugin.TValue[bool] { 10246 return plugin.GetOrCompute[bool](&c.Exists, func() (bool, error) { 10247 return c.exists() 10248 }) 10249 } 10250 10251 func (c *mqlRegistrykeyProperty) GetValue() *plugin.TValue[string] { 10252 return plugin.GetOrCompute[string](&c.Value, func() (string, error) { 10253 return c.value() 10254 }) 10255 } 10256 10257 func (c *mqlRegistrykeyProperty) GetType() *plugin.TValue[string] { 10258 return plugin.GetOrCompute[string](&c.Type, func() (string, error) { 10259 return c.compute_type() 10260 }) 10261 } 10262 10263 func (c *mqlRegistrykeyProperty) GetData() *plugin.TValue[interface{}] { 10264 return plugin.GetOrCompute[interface{}](&c.Data, func() (interface{}, error) { 10265 return c.data() 10266 }) 10267 } 10268 10269 // mqlContainerImage for the container.image resource 10270 type mqlContainerImage struct { 10271 MqlRuntime *plugin.Runtime 10272 __id string 10273 // optional: if you define mqlContainerImageInternal it will be used here 10274 Reference plugin.TValue[string] 10275 Name plugin.TValue[string] 10276 Identifier plugin.TValue[string] 10277 IdentifierType plugin.TValue[string] 10278 Repository plugin.TValue[*mqlContainerRepository] 10279 } 10280 10281 // createContainerImage creates a new instance of this resource 10282 func createContainerImage(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 10283 res := &mqlContainerImage{ 10284 MqlRuntime: runtime, 10285 } 10286 10287 err := SetAllData(res, args) 10288 if err != nil { 10289 return res, err 10290 } 10291 10292 if res.__id == "" { 10293 res.__id, err = res.id() 10294 if err != nil { 10295 return nil, err 10296 } 10297 } 10298 10299 if runtime.HasRecording { 10300 args, err = runtime.ResourceFromRecording("container.image", res.__id) 10301 if err != nil || args == nil { 10302 return res, err 10303 } 10304 return res, SetAllData(res, args) 10305 } 10306 10307 return res, nil 10308 } 10309 10310 func (c *mqlContainerImage) MqlName() string { 10311 return "container.image" 10312 } 10313 10314 func (c *mqlContainerImage) MqlID() string { 10315 return c.__id 10316 } 10317 10318 func (c *mqlContainerImage) GetReference() *plugin.TValue[string] { 10319 return &c.Reference 10320 } 10321 10322 func (c *mqlContainerImage) GetName() *plugin.TValue[string] { 10323 return &c.Name 10324 } 10325 10326 func (c *mqlContainerImage) GetIdentifier() *plugin.TValue[string] { 10327 return &c.Identifier 10328 } 10329 10330 func (c *mqlContainerImage) GetIdentifierType() *plugin.TValue[string] { 10331 return &c.IdentifierType 10332 } 10333 10334 func (c *mqlContainerImage) GetRepository() *plugin.TValue[*mqlContainerRepository] { 10335 return plugin.GetOrCompute[*mqlContainerRepository](&c.Repository, func() (*mqlContainerRepository, error) { 10336 if c.MqlRuntime.HasRecording { 10337 d, err := c.MqlRuntime.FieldResourceFromRecording("container.image", c.__id, "repository") 10338 if err != nil { 10339 return nil, err 10340 } 10341 if d != nil { 10342 return d.Value.(*mqlContainerRepository), nil 10343 } 10344 } 10345 10346 return c.repository() 10347 }) 10348 } 10349 10350 // mqlContainerRepository for the container.repository resource 10351 type mqlContainerRepository struct { 10352 MqlRuntime *plugin.Runtime 10353 __id string 10354 // optional: if you define mqlContainerRepositoryInternal it will be used here 10355 Name plugin.TValue[string] 10356 Scheme plugin.TValue[string] 10357 FullName plugin.TValue[string] 10358 Registry plugin.TValue[string] 10359 } 10360 10361 // createContainerRepository creates a new instance of this resource 10362 func createContainerRepository(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 10363 res := &mqlContainerRepository{ 10364 MqlRuntime: runtime, 10365 } 10366 10367 err := SetAllData(res, args) 10368 if err != nil { 10369 return res, err 10370 } 10371 10372 if res.__id == "" { 10373 res.__id, err = res.id() 10374 if err != nil { 10375 return nil, err 10376 } 10377 } 10378 10379 if runtime.HasRecording { 10380 args, err = runtime.ResourceFromRecording("container.repository", res.__id) 10381 if err != nil || args == nil { 10382 return res, err 10383 } 10384 return res, SetAllData(res, args) 10385 } 10386 10387 return res, nil 10388 } 10389 10390 func (c *mqlContainerRepository) MqlName() string { 10391 return "container.repository" 10392 } 10393 10394 func (c *mqlContainerRepository) MqlID() string { 10395 return c.__id 10396 } 10397 10398 func (c *mqlContainerRepository) GetName() *plugin.TValue[string] { 10399 return &c.Name 10400 } 10401 10402 func (c *mqlContainerRepository) GetScheme() *plugin.TValue[string] { 10403 return &c.Scheme 10404 } 10405 10406 func (c *mqlContainerRepository) GetFullName() *plugin.TValue[string] { 10407 return &c.FullName 10408 } 10409 10410 func (c *mqlContainerRepository) GetRegistry() *plugin.TValue[string] { 10411 return &c.Registry 10412 } 10413 10414 // mqlKubelet for the kubelet resource 10415 type mqlKubelet struct { 10416 MqlRuntime *plugin.Runtime 10417 __id string 10418 // optional: if you define mqlKubeletInternal it will be used here 10419 ConfigFile plugin.TValue[*mqlFile] 10420 Process plugin.TValue[*mqlProcess] 10421 Configuration plugin.TValue[interface{}] 10422 } 10423 10424 // createKubelet creates a new instance of this resource 10425 func createKubelet(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 10426 res := &mqlKubelet{ 10427 MqlRuntime: runtime, 10428 } 10429 10430 err := SetAllData(res, args) 10431 if err != nil { 10432 return res, err 10433 } 10434 10435 // to override __id implement: id() (string, error) 10436 10437 if runtime.HasRecording { 10438 args, err = runtime.ResourceFromRecording("kubelet", res.__id) 10439 if err != nil || args == nil { 10440 return res, err 10441 } 10442 return res, SetAllData(res, args) 10443 } 10444 10445 return res, nil 10446 } 10447 10448 func (c *mqlKubelet) MqlName() string { 10449 return "kubelet" 10450 } 10451 10452 func (c *mqlKubelet) MqlID() string { 10453 return c.__id 10454 } 10455 10456 func (c *mqlKubelet) GetConfigFile() *plugin.TValue[*mqlFile] { 10457 return &c.ConfigFile 10458 } 10459 10460 func (c *mqlKubelet) GetProcess() *plugin.TValue[*mqlProcess] { 10461 return &c.Process 10462 } 10463 10464 func (c *mqlKubelet) GetConfiguration() *plugin.TValue[interface{}] { 10465 return &c.Configuration 10466 } 10467 10468 // mqlPython for the python resource 10469 type mqlPython struct { 10470 MqlRuntime *plugin.Runtime 10471 __id string 10472 // optional: if you define mqlPythonInternal it will be used here 10473 Path plugin.TValue[string] 10474 Packages plugin.TValue[[]interface{}] 10475 Toplevel plugin.TValue[[]interface{}] 10476 } 10477 10478 // createPython creates a new instance of this resource 10479 func createPython(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 10480 res := &mqlPython{ 10481 MqlRuntime: runtime, 10482 } 10483 10484 err := SetAllData(res, args) 10485 if err != nil { 10486 return res, err 10487 } 10488 10489 if res.__id == "" { 10490 res.__id, err = res.id() 10491 if err != nil { 10492 return nil, err 10493 } 10494 } 10495 10496 if runtime.HasRecording { 10497 args, err = runtime.ResourceFromRecording("python", res.__id) 10498 if err != nil || args == nil { 10499 return res, err 10500 } 10501 return res, SetAllData(res, args) 10502 } 10503 10504 return res, nil 10505 } 10506 10507 func (c *mqlPython) MqlName() string { 10508 return "python" 10509 } 10510 10511 func (c *mqlPython) MqlID() string { 10512 return c.__id 10513 } 10514 10515 func (c *mqlPython) GetPath() *plugin.TValue[string] { 10516 return &c.Path 10517 } 10518 10519 func (c *mqlPython) GetPackages() *plugin.TValue[[]interface{}] { 10520 return plugin.GetOrCompute[[]interface{}](&c.Packages, func() ([]interface{}, error) { 10521 if c.MqlRuntime.HasRecording { 10522 d, err := c.MqlRuntime.FieldResourceFromRecording("python", c.__id, "packages") 10523 if err != nil { 10524 return nil, err 10525 } 10526 if d != nil { 10527 return d.Value.([]interface{}), nil 10528 } 10529 } 10530 10531 return c.packages() 10532 }) 10533 } 10534 10535 func (c *mqlPython) GetToplevel() *plugin.TValue[[]interface{}] { 10536 return plugin.GetOrCompute[[]interface{}](&c.Toplevel, func() ([]interface{}, error) { 10537 if c.MqlRuntime.HasRecording { 10538 d, err := c.MqlRuntime.FieldResourceFromRecording("python", c.__id, "toplevel") 10539 if err != nil { 10540 return nil, err 10541 } 10542 if d != nil { 10543 return d.Value.([]interface{}), nil 10544 } 10545 } 10546 10547 return c.toplevel() 10548 }) 10549 } 10550 10551 // mqlPythonPackage for the python.package resource 10552 type mqlPythonPackage struct { 10553 MqlRuntime *plugin.Runtime 10554 __id string 10555 // optional: if you define mqlPythonPackageInternal it will be used here 10556 Id plugin.TValue[string] 10557 Name plugin.TValue[string] 10558 File plugin.TValue[*mqlFile] 10559 Version plugin.TValue[string] 10560 License plugin.TValue[string] 10561 Author plugin.TValue[string] 10562 Summary plugin.TValue[string] 10563 Dependencies plugin.TValue[[]interface{}] 10564 } 10565 10566 // createPythonPackage creates a new instance of this resource 10567 func createPythonPackage(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 10568 res := &mqlPythonPackage{ 10569 MqlRuntime: runtime, 10570 } 10571 10572 err := SetAllData(res, args) 10573 if err != nil { 10574 return res, err 10575 } 10576 10577 if res.__id == "" { 10578 res.__id, err = res.id() 10579 if err != nil { 10580 return nil, err 10581 } 10582 } 10583 10584 if runtime.HasRecording { 10585 args, err = runtime.ResourceFromRecording("python.package", res.__id) 10586 if err != nil || args == nil { 10587 return res, err 10588 } 10589 return res, SetAllData(res, args) 10590 } 10591 10592 return res, nil 10593 } 10594 10595 func (c *mqlPythonPackage) MqlName() string { 10596 return "python.package" 10597 } 10598 10599 func (c *mqlPythonPackage) MqlID() string { 10600 return c.__id 10601 } 10602 10603 func (c *mqlPythonPackage) GetId() *plugin.TValue[string] { 10604 return &c.Id 10605 } 10606 10607 func (c *mqlPythonPackage) GetName() *plugin.TValue[string] { 10608 return plugin.GetOrCompute[string](&c.Name, func() (string, error) { 10609 return c.name() 10610 }) 10611 } 10612 10613 func (c *mqlPythonPackage) GetFile() *plugin.TValue[*mqlFile] { 10614 return &c.File 10615 } 10616 10617 func (c *mqlPythonPackage) GetVersion() *plugin.TValue[string] { 10618 return plugin.GetOrCompute[string](&c.Version, func() (string, error) { 10619 return c.version() 10620 }) 10621 } 10622 10623 func (c *mqlPythonPackage) GetLicense() *plugin.TValue[string] { 10624 return plugin.GetOrCompute[string](&c.License, func() (string, error) { 10625 return c.license() 10626 }) 10627 } 10628 10629 func (c *mqlPythonPackage) GetAuthor() *plugin.TValue[string] { 10630 return plugin.GetOrCompute[string](&c.Author, func() (string, error) { 10631 return c.author() 10632 }) 10633 } 10634 10635 func (c *mqlPythonPackage) GetSummary() *plugin.TValue[string] { 10636 return plugin.GetOrCompute[string](&c.Summary, func() (string, error) { 10637 return c.summary() 10638 }) 10639 } 10640 10641 func (c *mqlPythonPackage) GetDependencies() *plugin.TValue[[]interface{}] { 10642 return plugin.GetOrCompute[[]interface{}](&c.Dependencies, func() ([]interface{}, error) { 10643 if c.MqlRuntime.HasRecording { 10644 d, err := c.MqlRuntime.FieldResourceFromRecording("python.package", c.__id, "dependencies") 10645 if err != nil { 10646 return nil, err 10647 } 10648 if d != nil { 10649 return d.Value.([]interface{}), nil 10650 } 10651 } 10652 10653 return c.dependencies() 10654 }) 10655 } 10656 10657 // mqlMacos for the macos resource 10658 type mqlMacos struct { 10659 MqlRuntime *plugin.Runtime 10660 __id string 10661 // optional: if you define mqlMacosInternal it will be used here 10662 UserPreferences plugin.TValue[map[string]interface{}] 10663 UserHostPreferences plugin.TValue[map[string]interface{}] 10664 GlobalAccountPolicies plugin.TValue[interface{}] 10665 } 10666 10667 // createMacos creates a new instance of this resource 10668 func createMacos(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 10669 res := &mqlMacos{ 10670 MqlRuntime: runtime, 10671 } 10672 10673 err := SetAllData(res, args) 10674 if err != nil { 10675 return res, err 10676 } 10677 10678 // to override __id implement: id() (string, error) 10679 10680 if runtime.HasRecording { 10681 args, err = runtime.ResourceFromRecording("macos", res.__id) 10682 if err != nil || args == nil { 10683 return res, err 10684 } 10685 return res, SetAllData(res, args) 10686 } 10687 10688 return res, nil 10689 } 10690 10691 func (c *mqlMacos) MqlName() string { 10692 return "macos" 10693 } 10694 10695 func (c *mqlMacos) MqlID() string { 10696 return c.__id 10697 } 10698 10699 func (c *mqlMacos) GetUserPreferences() *plugin.TValue[map[string]interface{}] { 10700 return plugin.GetOrCompute[map[string]interface{}](&c.UserPreferences, func() (map[string]interface{}, error) { 10701 return c.userPreferences() 10702 }) 10703 } 10704 10705 func (c *mqlMacos) GetUserHostPreferences() *plugin.TValue[map[string]interface{}] { 10706 return plugin.GetOrCompute[map[string]interface{}](&c.UserHostPreferences, func() (map[string]interface{}, error) { 10707 return c.userHostPreferences() 10708 }) 10709 } 10710 10711 func (c *mqlMacos) GetGlobalAccountPolicies() *plugin.TValue[interface{}] { 10712 return plugin.GetOrCompute[interface{}](&c.GlobalAccountPolicies, func() (interface{}, error) { 10713 return c.globalAccountPolicies() 10714 }) 10715 } 10716 10717 // mqlMacosAlf for the macos.alf resource 10718 type mqlMacosAlf struct { 10719 MqlRuntime *plugin.Runtime 10720 __id string 10721 // optional: if you define mqlMacosAlfInternal it will be used here 10722 AllowDownloadSignedEnabled plugin.TValue[int64] 10723 AllowSignedEnabled plugin.TValue[int64] 10724 FirewallUnload plugin.TValue[int64] 10725 GlobalState plugin.TValue[int64] 10726 LoggingEnabled plugin.TValue[int64] 10727 LoggingOption plugin.TValue[int64] 10728 StealthEnabled plugin.TValue[int64] 10729 Version plugin.TValue[string] 10730 Exceptions plugin.TValue[[]interface{}] 10731 ExplicitAuths plugin.TValue[[]interface{}] 10732 Applications plugin.TValue[[]interface{}] 10733 } 10734 10735 // createMacosAlf creates a new instance of this resource 10736 func createMacosAlf(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 10737 res := &mqlMacosAlf{ 10738 MqlRuntime: runtime, 10739 } 10740 10741 err := SetAllData(res, args) 10742 if err != nil { 10743 return res, err 10744 } 10745 10746 // to override __id implement: id() (string, error) 10747 10748 if runtime.HasRecording { 10749 args, err = runtime.ResourceFromRecording("macos.alf", res.__id) 10750 if err != nil || args == nil { 10751 return res, err 10752 } 10753 return res, SetAllData(res, args) 10754 } 10755 10756 return res, nil 10757 } 10758 10759 func (c *mqlMacosAlf) MqlName() string { 10760 return "macos.alf" 10761 } 10762 10763 func (c *mqlMacosAlf) MqlID() string { 10764 return c.__id 10765 } 10766 10767 func (c *mqlMacosAlf) GetAllowDownloadSignedEnabled() *plugin.TValue[int64] { 10768 return &c.AllowDownloadSignedEnabled 10769 } 10770 10771 func (c *mqlMacosAlf) GetAllowSignedEnabled() *plugin.TValue[int64] { 10772 return &c.AllowSignedEnabled 10773 } 10774 10775 func (c *mqlMacosAlf) GetFirewallUnload() *plugin.TValue[int64] { 10776 return &c.FirewallUnload 10777 } 10778 10779 func (c *mqlMacosAlf) GetGlobalState() *plugin.TValue[int64] { 10780 return &c.GlobalState 10781 } 10782 10783 func (c *mqlMacosAlf) GetLoggingEnabled() *plugin.TValue[int64] { 10784 return &c.LoggingEnabled 10785 } 10786 10787 func (c *mqlMacosAlf) GetLoggingOption() *plugin.TValue[int64] { 10788 return &c.LoggingOption 10789 } 10790 10791 func (c *mqlMacosAlf) GetStealthEnabled() *plugin.TValue[int64] { 10792 return &c.StealthEnabled 10793 } 10794 10795 func (c *mqlMacosAlf) GetVersion() *plugin.TValue[string] { 10796 return &c.Version 10797 } 10798 10799 func (c *mqlMacosAlf) GetExceptions() *plugin.TValue[[]interface{}] { 10800 return &c.Exceptions 10801 } 10802 10803 func (c *mqlMacosAlf) GetExplicitAuths() *plugin.TValue[[]interface{}] { 10804 return &c.ExplicitAuths 10805 } 10806 10807 func (c *mqlMacosAlf) GetApplications() *plugin.TValue[[]interface{}] { 10808 return &c.Applications 10809 } 10810 10811 // mqlMacosTimemachine for the macos.timemachine resource 10812 type mqlMacosTimemachine struct { 10813 MqlRuntime *plugin.Runtime 10814 __id string 10815 // optional: if you define mqlMacosTimemachineInternal it will be used here 10816 Preferences plugin.TValue[interface{}] 10817 } 10818 10819 // createMacosTimemachine creates a new instance of this resource 10820 func createMacosTimemachine(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 10821 res := &mqlMacosTimemachine{ 10822 MqlRuntime: runtime, 10823 } 10824 10825 err := SetAllData(res, args) 10826 if err != nil { 10827 return res, err 10828 } 10829 10830 // to override __id implement: id() (string, error) 10831 10832 if runtime.HasRecording { 10833 args, err = runtime.ResourceFromRecording("macos.timemachine", res.__id) 10834 if err != nil || args == nil { 10835 return res, err 10836 } 10837 return res, SetAllData(res, args) 10838 } 10839 10840 return res, nil 10841 } 10842 10843 func (c *mqlMacosTimemachine) MqlName() string { 10844 return "macos.timemachine" 10845 } 10846 10847 func (c *mqlMacosTimemachine) MqlID() string { 10848 return c.__id 10849 } 10850 10851 func (c *mqlMacosTimemachine) GetPreferences() *plugin.TValue[interface{}] { 10852 return plugin.GetOrCompute[interface{}](&c.Preferences, func() (interface{}, error) { 10853 return c.preferences() 10854 }) 10855 } 10856 10857 // mqlMacosSystemsetup for the macos.systemsetup resource 10858 type mqlMacosSystemsetup struct { 10859 MqlRuntime *plugin.Runtime 10860 __id string 10861 // optional: if you define mqlMacosSystemsetupInternal it will be used here 10862 Date plugin.TValue[string] 10863 Time plugin.TValue[string] 10864 TimeZone plugin.TValue[string] 10865 UsingNetworkTime plugin.TValue[string] 10866 NetworkTimeServer plugin.TValue[string] 10867 Sleep plugin.TValue[[]interface{}] 10868 DisplaySleep plugin.TValue[string] 10869 HarddiskSleep plugin.TValue[string] 10870 WakeOnModem plugin.TValue[string] 10871 WakeOnNetworkAccess plugin.TValue[string] 10872 RestartPowerFailure plugin.TValue[string] 10873 RestartFreeze plugin.TValue[string] 10874 AllowPowerButtonToSleepComputer plugin.TValue[string] 10875 RemoteLogin plugin.TValue[string] 10876 RemoteAppleEvents plugin.TValue[string] 10877 ComputerName plugin.TValue[string] 10878 LocalSubnetName plugin.TValue[string] 10879 StartupDisk plugin.TValue[string] 10880 WaitForStartupAfterPowerFailure plugin.TValue[string] 10881 DisableKeyboardWhenEnclosureLockIsEngaged plugin.TValue[string] 10882 } 10883 10884 // createMacosSystemsetup creates a new instance of this resource 10885 func createMacosSystemsetup(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 10886 res := &mqlMacosSystemsetup{ 10887 MqlRuntime: runtime, 10888 } 10889 10890 err := SetAllData(res, args) 10891 if err != nil { 10892 return res, err 10893 } 10894 10895 // to override __id implement: id() (string, error) 10896 10897 if runtime.HasRecording { 10898 args, err = runtime.ResourceFromRecording("macos.systemsetup", res.__id) 10899 if err != nil || args == nil { 10900 return res, err 10901 } 10902 return res, SetAllData(res, args) 10903 } 10904 10905 return res, nil 10906 } 10907 10908 func (c *mqlMacosSystemsetup) MqlName() string { 10909 return "macos.systemsetup" 10910 } 10911 10912 func (c *mqlMacosSystemsetup) MqlID() string { 10913 return c.__id 10914 } 10915 10916 func (c *mqlMacosSystemsetup) GetDate() *plugin.TValue[string] { 10917 return plugin.GetOrCompute[string](&c.Date, func() (string, error) { 10918 return c.date() 10919 }) 10920 } 10921 10922 func (c *mqlMacosSystemsetup) GetTime() *plugin.TValue[string] { 10923 return plugin.GetOrCompute[string](&c.Time, func() (string, error) { 10924 return c.time() 10925 }) 10926 } 10927 10928 func (c *mqlMacosSystemsetup) GetTimeZone() *plugin.TValue[string] { 10929 return plugin.GetOrCompute[string](&c.TimeZone, func() (string, error) { 10930 return c.timeZone() 10931 }) 10932 } 10933 10934 func (c *mqlMacosSystemsetup) GetUsingNetworkTime() *plugin.TValue[string] { 10935 return plugin.GetOrCompute[string](&c.UsingNetworkTime, func() (string, error) { 10936 return c.usingNetworkTime() 10937 }) 10938 } 10939 10940 func (c *mqlMacosSystemsetup) GetNetworkTimeServer() *plugin.TValue[string] { 10941 return plugin.GetOrCompute[string](&c.NetworkTimeServer, func() (string, error) { 10942 return c.networkTimeServer() 10943 }) 10944 } 10945 10946 func (c *mqlMacosSystemsetup) GetSleep() *plugin.TValue[[]interface{}] { 10947 return plugin.GetOrCompute[[]interface{}](&c.Sleep, func() ([]interface{}, error) { 10948 return c.sleep() 10949 }) 10950 } 10951 10952 func (c *mqlMacosSystemsetup) GetDisplaySleep() *plugin.TValue[string] { 10953 return plugin.GetOrCompute[string](&c.DisplaySleep, func() (string, error) { 10954 return c.displaySleep() 10955 }) 10956 } 10957 10958 func (c *mqlMacosSystemsetup) GetHarddiskSleep() *plugin.TValue[string] { 10959 return plugin.GetOrCompute[string](&c.HarddiskSleep, func() (string, error) { 10960 return c.harddiskSleep() 10961 }) 10962 } 10963 10964 func (c *mqlMacosSystemsetup) GetWakeOnModem() *plugin.TValue[string] { 10965 return plugin.GetOrCompute[string](&c.WakeOnModem, func() (string, error) { 10966 return c.wakeOnModem() 10967 }) 10968 } 10969 10970 func (c *mqlMacosSystemsetup) GetWakeOnNetworkAccess() *plugin.TValue[string] { 10971 return plugin.GetOrCompute[string](&c.WakeOnNetworkAccess, func() (string, error) { 10972 return c.wakeOnNetworkAccess() 10973 }) 10974 } 10975 10976 func (c *mqlMacosSystemsetup) GetRestartPowerFailure() *plugin.TValue[string] { 10977 return plugin.GetOrCompute[string](&c.RestartPowerFailure, func() (string, error) { 10978 return c.restartPowerFailure() 10979 }) 10980 } 10981 10982 func (c *mqlMacosSystemsetup) GetRestartFreeze() *plugin.TValue[string] { 10983 return plugin.GetOrCompute[string](&c.RestartFreeze, func() (string, error) { 10984 return c.restartFreeze() 10985 }) 10986 } 10987 10988 func (c *mqlMacosSystemsetup) GetAllowPowerButtonToSleepComputer() *plugin.TValue[string] { 10989 return plugin.GetOrCompute[string](&c.AllowPowerButtonToSleepComputer, func() (string, error) { 10990 return c.allowPowerButtonToSleepComputer() 10991 }) 10992 } 10993 10994 func (c *mqlMacosSystemsetup) GetRemoteLogin() *plugin.TValue[string] { 10995 return plugin.GetOrCompute[string](&c.RemoteLogin, func() (string, error) { 10996 return c.remoteLogin() 10997 }) 10998 } 10999 11000 func (c *mqlMacosSystemsetup) GetRemoteAppleEvents() *plugin.TValue[string] { 11001 return plugin.GetOrCompute[string](&c.RemoteAppleEvents, func() (string, error) { 11002 return c.remoteAppleEvents() 11003 }) 11004 } 11005 11006 func (c *mqlMacosSystemsetup) GetComputerName() *plugin.TValue[string] { 11007 return plugin.GetOrCompute[string](&c.ComputerName, func() (string, error) { 11008 return c.computerName() 11009 }) 11010 } 11011 11012 func (c *mqlMacosSystemsetup) GetLocalSubnetName() *plugin.TValue[string] { 11013 return plugin.GetOrCompute[string](&c.LocalSubnetName, func() (string, error) { 11014 return c.localSubnetName() 11015 }) 11016 } 11017 11018 func (c *mqlMacosSystemsetup) GetStartupDisk() *plugin.TValue[string] { 11019 return plugin.GetOrCompute[string](&c.StartupDisk, func() (string, error) { 11020 return c.startupDisk() 11021 }) 11022 } 11023 11024 func (c *mqlMacosSystemsetup) GetWaitForStartupAfterPowerFailure() *plugin.TValue[string] { 11025 return plugin.GetOrCompute[string](&c.WaitForStartupAfterPowerFailure, func() (string, error) { 11026 return c.waitForStartupAfterPowerFailure() 11027 }) 11028 } 11029 11030 func (c *mqlMacosSystemsetup) GetDisableKeyboardWhenEnclosureLockIsEngaged() *plugin.TValue[string] { 11031 return plugin.GetOrCompute[string](&c.DisableKeyboardWhenEnclosureLockIsEngaged, func() (string, error) { 11032 return c.disableKeyboardWhenEnclosureLockIsEngaged() 11033 }) 11034 } 11035 11036 // mqlWindows for the windows resource 11037 type mqlWindows struct { 11038 MqlRuntime *plugin.Runtime 11039 __id string 11040 // optional: if you define mqlWindowsInternal it will be used here 11041 ComputerInfo plugin.TValue[interface{}] 11042 Hotfixes plugin.TValue[[]interface{}] 11043 Features plugin.TValue[[]interface{}] 11044 } 11045 11046 // createWindows creates a new instance of this resource 11047 func createWindows(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 11048 res := &mqlWindows{ 11049 MqlRuntime: runtime, 11050 } 11051 11052 err := SetAllData(res, args) 11053 if err != nil { 11054 return res, err 11055 } 11056 11057 // to override __id implement: id() (string, error) 11058 11059 if runtime.HasRecording { 11060 args, err = runtime.ResourceFromRecording("windows", res.__id) 11061 if err != nil || args == nil { 11062 return res, err 11063 } 11064 return res, SetAllData(res, args) 11065 } 11066 11067 return res, nil 11068 } 11069 11070 func (c *mqlWindows) MqlName() string { 11071 return "windows" 11072 } 11073 11074 func (c *mqlWindows) MqlID() string { 11075 return c.__id 11076 } 11077 11078 func (c *mqlWindows) GetComputerInfo() *plugin.TValue[interface{}] { 11079 return plugin.GetOrCompute[interface{}](&c.ComputerInfo, func() (interface{}, error) { 11080 return c.computerInfo() 11081 }) 11082 } 11083 11084 func (c *mqlWindows) GetHotfixes() *plugin.TValue[[]interface{}] { 11085 return plugin.GetOrCompute[[]interface{}](&c.Hotfixes, func() ([]interface{}, error) { 11086 if c.MqlRuntime.HasRecording { 11087 d, err := c.MqlRuntime.FieldResourceFromRecording("windows", c.__id, "hotfixes") 11088 if err != nil { 11089 return nil, err 11090 } 11091 if d != nil { 11092 return d.Value.([]interface{}), nil 11093 } 11094 } 11095 11096 return c.hotfixes() 11097 }) 11098 } 11099 11100 func (c *mqlWindows) GetFeatures() *plugin.TValue[[]interface{}] { 11101 return plugin.GetOrCompute[[]interface{}](&c.Features, func() ([]interface{}, error) { 11102 if c.MqlRuntime.HasRecording { 11103 d, err := c.MqlRuntime.FieldResourceFromRecording("windows", c.__id, "features") 11104 if err != nil { 11105 return nil, err 11106 } 11107 if d != nil { 11108 return d.Value.([]interface{}), nil 11109 } 11110 } 11111 11112 return c.features() 11113 }) 11114 } 11115 11116 // mqlWindowsHotfix for the windows.hotfix resource 11117 type mqlWindowsHotfix struct { 11118 MqlRuntime *plugin.Runtime 11119 __id string 11120 // optional: if you define mqlWindowsHotfixInternal it will be used here 11121 HotfixId plugin.TValue[string] 11122 Description plugin.TValue[string] 11123 Caption plugin.TValue[string] 11124 InstalledOn plugin.TValue[*time.Time] 11125 InstalledBy plugin.TValue[string] 11126 } 11127 11128 // createWindowsHotfix creates a new instance of this resource 11129 func createWindowsHotfix(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 11130 res := &mqlWindowsHotfix{ 11131 MqlRuntime: runtime, 11132 } 11133 11134 err := SetAllData(res, args) 11135 if err != nil { 11136 return res, err 11137 } 11138 11139 if res.__id == "" { 11140 res.__id, err = res.id() 11141 if err != nil { 11142 return nil, err 11143 } 11144 } 11145 11146 if runtime.HasRecording { 11147 args, err = runtime.ResourceFromRecording("windows.hotfix", res.__id) 11148 if err != nil || args == nil { 11149 return res, err 11150 } 11151 return res, SetAllData(res, args) 11152 } 11153 11154 return res, nil 11155 } 11156 11157 func (c *mqlWindowsHotfix) MqlName() string { 11158 return "windows.hotfix" 11159 } 11160 11161 func (c *mqlWindowsHotfix) MqlID() string { 11162 return c.__id 11163 } 11164 11165 func (c *mqlWindowsHotfix) GetHotfixId() *plugin.TValue[string] { 11166 return &c.HotfixId 11167 } 11168 11169 func (c *mqlWindowsHotfix) GetDescription() *plugin.TValue[string] { 11170 return &c.Description 11171 } 11172 11173 func (c *mqlWindowsHotfix) GetCaption() *plugin.TValue[string] { 11174 return &c.Caption 11175 } 11176 11177 func (c *mqlWindowsHotfix) GetInstalledOn() *plugin.TValue[*time.Time] { 11178 return &c.InstalledOn 11179 } 11180 11181 func (c *mqlWindowsHotfix) GetInstalledBy() *plugin.TValue[string] { 11182 return &c.InstalledBy 11183 } 11184 11185 // mqlWindowsFeature for the windows.feature resource 11186 type mqlWindowsFeature struct { 11187 MqlRuntime *plugin.Runtime 11188 __id string 11189 // optional: if you define mqlWindowsFeatureInternal it will be used here 11190 Path plugin.TValue[string] 11191 Name plugin.TValue[string] 11192 DisplayName plugin.TValue[string] 11193 Description plugin.TValue[string] 11194 Installed plugin.TValue[bool] 11195 InstallState plugin.TValue[int64] 11196 } 11197 11198 // createWindowsFeature creates a new instance of this resource 11199 func createWindowsFeature(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 11200 res := &mqlWindowsFeature{ 11201 MqlRuntime: runtime, 11202 } 11203 11204 err := SetAllData(res, args) 11205 if err != nil { 11206 return res, err 11207 } 11208 11209 if res.__id == "" { 11210 res.__id, err = res.id() 11211 if err != nil { 11212 return nil, err 11213 } 11214 } 11215 11216 if runtime.HasRecording { 11217 args, err = runtime.ResourceFromRecording("windows.feature", res.__id) 11218 if err != nil || args == nil { 11219 return res, err 11220 } 11221 return res, SetAllData(res, args) 11222 } 11223 11224 return res, nil 11225 } 11226 11227 func (c *mqlWindowsFeature) MqlName() string { 11228 return "windows.feature" 11229 } 11230 11231 func (c *mqlWindowsFeature) MqlID() string { 11232 return c.__id 11233 } 11234 11235 func (c *mqlWindowsFeature) GetPath() *plugin.TValue[string] { 11236 return &c.Path 11237 } 11238 11239 func (c *mqlWindowsFeature) GetName() *plugin.TValue[string] { 11240 return &c.Name 11241 } 11242 11243 func (c *mqlWindowsFeature) GetDisplayName() *plugin.TValue[string] { 11244 return &c.DisplayName 11245 } 11246 11247 func (c *mqlWindowsFeature) GetDescription() *plugin.TValue[string] { 11248 return &c.Description 11249 } 11250 11251 func (c *mqlWindowsFeature) GetInstalled() *plugin.TValue[bool] { 11252 return &c.Installed 11253 } 11254 11255 func (c *mqlWindowsFeature) GetInstallState() *plugin.TValue[int64] { 11256 return &c.InstallState 11257 } 11258 11259 // mqlWindowsFirewall for the windows.firewall resource 11260 type mqlWindowsFirewall struct { 11261 MqlRuntime *plugin.Runtime 11262 __id string 11263 // optional: if you define mqlWindowsFirewallInternal it will be used here 11264 Settings plugin.TValue[interface{}] 11265 Profiles plugin.TValue[[]interface{}] 11266 Rules plugin.TValue[[]interface{}] 11267 } 11268 11269 // createWindowsFirewall creates a new instance of this resource 11270 func createWindowsFirewall(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 11271 res := &mqlWindowsFirewall{ 11272 MqlRuntime: runtime, 11273 } 11274 11275 err := SetAllData(res, args) 11276 if err != nil { 11277 return res, err 11278 } 11279 11280 // to override __id implement: id() (string, error) 11281 11282 if runtime.HasRecording { 11283 args, err = runtime.ResourceFromRecording("windows.firewall", res.__id) 11284 if err != nil || args == nil { 11285 return res, err 11286 } 11287 return res, SetAllData(res, args) 11288 } 11289 11290 return res, nil 11291 } 11292 11293 func (c *mqlWindowsFirewall) MqlName() string { 11294 return "windows.firewall" 11295 } 11296 11297 func (c *mqlWindowsFirewall) MqlID() string { 11298 return c.__id 11299 } 11300 11301 func (c *mqlWindowsFirewall) GetSettings() *plugin.TValue[interface{}] { 11302 return plugin.GetOrCompute[interface{}](&c.Settings, func() (interface{}, error) { 11303 return c.settings() 11304 }) 11305 } 11306 11307 func (c *mqlWindowsFirewall) GetProfiles() *plugin.TValue[[]interface{}] { 11308 return plugin.GetOrCompute[[]interface{}](&c.Profiles, func() ([]interface{}, error) { 11309 if c.MqlRuntime.HasRecording { 11310 d, err := c.MqlRuntime.FieldResourceFromRecording("windows.firewall", c.__id, "profiles") 11311 if err != nil { 11312 return nil, err 11313 } 11314 if d != nil { 11315 return d.Value.([]interface{}), nil 11316 } 11317 } 11318 11319 return c.profiles() 11320 }) 11321 } 11322 11323 func (c *mqlWindowsFirewall) GetRules() *plugin.TValue[[]interface{}] { 11324 return plugin.GetOrCompute[[]interface{}](&c.Rules, func() ([]interface{}, error) { 11325 if c.MqlRuntime.HasRecording { 11326 d, err := c.MqlRuntime.FieldResourceFromRecording("windows.firewall", c.__id, "rules") 11327 if err != nil { 11328 return nil, err 11329 } 11330 if d != nil { 11331 return d.Value.([]interface{}), nil 11332 } 11333 } 11334 11335 return c.rules() 11336 }) 11337 } 11338 11339 // mqlWindowsFirewallProfile for the windows.firewall.profile resource 11340 type mqlWindowsFirewallProfile struct { 11341 MqlRuntime *plugin.Runtime 11342 __id string 11343 // optional: if you define mqlWindowsFirewallProfileInternal it will be used here 11344 InstanceID plugin.TValue[string] 11345 Name plugin.TValue[string] 11346 Enabled plugin.TValue[int64] 11347 DefaultInboundAction plugin.TValue[int64] 11348 DefaultOutboundAction plugin.TValue[int64] 11349 AllowInboundRules plugin.TValue[int64] 11350 AllowLocalFirewallRules plugin.TValue[int64] 11351 AllowLocalIPsecRules plugin.TValue[int64] 11352 AllowUserApps plugin.TValue[int64] 11353 AllowUserPorts plugin.TValue[int64] 11354 AllowUnicastResponseToMulticast plugin.TValue[int64] 11355 NotifyOnListen plugin.TValue[int64] 11356 EnableStealthModeForIPsec plugin.TValue[int64] 11357 LogMaxSizeKilobytes plugin.TValue[int64] 11358 LogAllowed plugin.TValue[int64] 11359 LogBlocked plugin.TValue[int64] 11360 LogIgnored plugin.TValue[int64] 11361 LogFileName plugin.TValue[string] 11362 } 11363 11364 // createWindowsFirewallProfile creates a new instance of this resource 11365 func createWindowsFirewallProfile(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 11366 res := &mqlWindowsFirewallProfile{ 11367 MqlRuntime: runtime, 11368 } 11369 11370 err := SetAllData(res, args) 11371 if err != nil { 11372 return res, err 11373 } 11374 11375 if res.__id == "" { 11376 res.__id, err = res.id() 11377 if err != nil { 11378 return nil, err 11379 } 11380 } 11381 11382 if runtime.HasRecording { 11383 args, err = runtime.ResourceFromRecording("windows.firewall.profile", res.__id) 11384 if err != nil || args == nil { 11385 return res, err 11386 } 11387 return res, SetAllData(res, args) 11388 } 11389 11390 return res, nil 11391 } 11392 11393 func (c *mqlWindowsFirewallProfile) MqlName() string { 11394 return "windows.firewall.profile" 11395 } 11396 11397 func (c *mqlWindowsFirewallProfile) MqlID() string { 11398 return c.__id 11399 } 11400 11401 func (c *mqlWindowsFirewallProfile) GetInstanceID() *plugin.TValue[string] { 11402 return &c.InstanceID 11403 } 11404 11405 func (c *mqlWindowsFirewallProfile) GetName() *plugin.TValue[string] { 11406 return &c.Name 11407 } 11408 11409 func (c *mqlWindowsFirewallProfile) GetEnabled() *plugin.TValue[int64] { 11410 return &c.Enabled 11411 } 11412 11413 func (c *mqlWindowsFirewallProfile) GetDefaultInboundAction() *plugin.TValue[int64] { 11414 return &c.DefaultInboundAction 11415 } 11416 11417 func (c *mqlWindowsFirewallProfile) GetDefaultOutboundAction() *plugin.TValue[int64] { 11418 return &c.DefaultOutboundAction 11419 } 11420 11421 func (c *mqlWindowsFirewallProfile) GetAllowInboundRules() *plugin.TValue[int64] { 11422 return &c.AllowInboundRules 11423 } 11424 11425 func (c *mqlWindowsFirewallProfile) GetAllowLocalFirewallRules() *plugin.TValue[int64] { 11426 return &c.AllowLocalFirewallRules 11427 } 11428 11429 func (c *mqlWindowsFirewallProfile) GetAllowLocalIPsecRules() *plugin.TValue[int64] { 11430 return &c.AllowLocalIPsecRules 11431 } 11432 11433 func (c *mqlWindowsFirewallProfile) GetAllowUserApps() *plugin.TValue[int64] { 11434 return &c.AllowUserApps 11435 } 11436 11437 func (c *mqlWindowsFirewallProfile) GetAllowUserPorts() *plugin.TValue[int64] { 11438 return &c.AllowUserPorts 11439 } 11440 11441 func (c *mqlWindowsFirewallProfile) GetAllowUnicastResponseToMulticast() *plugin.TValue[int64] { 11442 return &c.AllowUnicastResponseToMulticast 11443 } 11444 11445 func (c *mqlWindowsFirewallProfile) GetNotifyOnListen() *plugin.TValue[int64] { 11446 return &c.NotifyOnListen 11447 } 11448 11449 func (c *mqlWindowsFirewallProfile) GetEnableStealthModeForIPsec() *plugin.TValue[int64] { 11450 return &c.EnableStealthModeForIPsec 11451 } 11452 11453 func (c *mqlWindowsFirewallProfile) GetLogMaxSizeKilobytes() *plugin.TValue[int64] { 11454 return &c.LogMaxSizeKilobytes 11455 } 11456 11457 func (c *mqlWindowsFirewallProfile) GetLogAllowed() *plugin.TValue[int64] { 11458 return &c.LogAllowed 11459 } 11460 11461 func (c *mqlWindowsFirewallProfile) GetLogBlocked() *plugin.TValue[int64] { 11462 return &c.LogBlocked 11463 } 11464 11465 func (c *mqlWindowsFirewallProfile) GetLogIgnored() *plugin.TValue[int64] { 11466 return &c.LogIgnored 11467 } 11468 11469 func (c *mqlWindowsFirewallProfile) GetLogFileName() *plugin.TValue[string] { 11470 return &c.LogFileName 11471 } 11472 11473 // mqlWindowsFirewallRule for the windows.firewall.rule resource 11474 type mqlWindowsFirewallRule struct { 11475 MqlRuntime *plugin.Runtime 11476 __id string 11477 // optional: if you define mqlWindowsFirewallRuleInternal it will be used here 11478 InstanceID plugin.TValue[string] 11479 Name plugin.TValue[string] 11480 DisplayName plugin.TValue[string] 11481 Description plugin.TValue[string] 11482 DisplayGroup plugin.TValue[string] 11483 Enabled plugin.TValue[int64] 11484 Direction plugin.TValue[int64] 11485 Action plugin.TValue[int64] 11486 EdgeTraversalPolicy plugin.TValue[int64] 11487 LooseSourceMapping plugin.TValue[bool] 11488 LocalOnlyMapping plugin.TValue[bool] 11489 PrimaryStatus plugin.TValue[int64] 11490 Status plugin.TValue[string] 11491 EnforcementStatus plugin.TValue[string] 11492 PolicyStoreSource plugin.TValue[string] 11493 PolicyStoreSourceType plugin.TValue[int64] 11494 } 11495 11496 // createWindowsFirewallRule creates a new instance of this resource 11497 func createWindowsFirewallRule(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 11498 res := &mqlWindowsFirewallRule{ 11499 MqlRuntime: runtime, 11500 } 11501 11502 err := SetAllData(res, args) 11503 if err != nil { 11504 return res, err 11505 } 11506 11507 if res.__id == "" { 11508 res.__id, err = res.id() 11509 if err != nil { 11510 return nil, err 11511 } 11512 } 11513 11514 if runtime.HasRecording { 11515 args, err = runtime.ResourceFromRecording("windows.firewall.rule", res.__id) 11516 if err != nil || args == nil { 11517 return res, err 11518 } 11519 return res, SetAllData(res, args) 11520 } 11521 11522 return res, nil 11523 } 11524 11525 func (c *mqlWindowsFirewallRule) MqlName() string { 11526 return "windows.firewall.rule" 11527 } 11528 11529 func (c *mqlWindowsFirewallRule) MqlID() string { 11530 return c.__id 11531 } 11532 11533 func (c *mqlWindowsFirewallRule) GetInstanceID() *plugin.TValue[string] { 11534 return &c.InstanceID 11535 } 11536 11537 func (c *mqlWindowsFirewallRule) GetName() *plugin.TValue[string] { 11538 return &c.Name 11539 } 11540 11541 func (c *mqlWindowsFirewallRule) GetDisplayName() *plugin.TValue[string] { 11542 return &c.DisplayName 11543 } 11544 11545 func (c *mqlWindowsFirewallRule) GetDescription() *plugin.TValue[string] { 11546 return &c.Description 11547 } 11548 11549 func (c *mqlWindowsFirewallRule) GetDisplayGroup() *plugin.TValue[string] { 11550 return &c.DisplayGroup 11551 } 11552 11553 func (c *mqlWindowsFirewallRule) GetEnabled() *plugin.TValue[int64] { 11554 return &c.Enabled 11555 } 11556 11557 func (c *mqlWindowsFirewallRule) GetDirection() *plugin.TValue[int64] { 11558 return &c.Direction 11559 } 11560 11561 func (c *mqlWindowsFirewallRule) GetAction() *plugin.TValue[int64] { 11562 return &c.Action 11563 } 11564 11565 func (c *mqlWindowsFirewallRule) GetEdgeTraversalPolicy() *plugin.TValue[int64] { 11566 return &c.EdgeTraversalPolicy 11567 } 11568 11569 func (c *mqlWindowsFirewallRule) GetLooseSourceMapping() *plugin.TValue[bool] { 11570 return &c.LooseSourceMapping 11571 } 11572 11573 func (c *mqlWindowsFirewallRule) GetLocalOnlyMapping() *plugin.TValue[bool] { 11574 return &c.LocalOnlyMapping 11575 } 11576 11577 func (c *mqlWindowsFirewallRule) GetPrimaryStatus() *plugin.TValue[int64] { 11578 return &c.PrimaryStatus 11579 } 11580 11581 func (c *mqlWindowsFirewallRule) GetStatus() *plugin.TValue[string] { 11582 return &c.Status 11583 } 11584 11585 func (c *mqlWindowsFirewallRule) GetEnforcementStatus() *plugin.TValue[string] { 11586 return &c.EnforcementStatus 11587 } 11588 11589 func (c *mqlWindowsFirewallRule) GetPolicyStoreSource() *plugin.TValue[string] { 11590 return &c.PolicyStoreSource 11591 } 11592 11593 func (c *mqlWindowsFirewallRule) GetPolicyStoreSourceType() *plugin.TValue[int64] { 11594 return &c.PolicyStoreSourceType 11595 } 11596 11597 // mqlWindowsBitlocker for the windows.bitlocker resource 11598 type mqlWindowsBitlocker struct { 11599 MqlRuntime *plugin.Runtime 11600 __id string 11601 // optional: if you define mqlWindowsBitlockerInternal it will be used here 11602 Volumes plugin.TValue[[]interface{}] 11603 } 11604 11605 // createWindowsBitlocker creates a new instance of this resource 11606 func createWindowsBitlocker(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 11607 res := &mqlWindowsBitlocker{ 11608 MqlRuntime: runtime, 11609 } 11610 11611 err := SetAllData(res, args) 11612 if err != nil { 11613 return res, err 11614 } 11615 11616 // to override __id implement: id() (string, error) 11617 11618 if runtime.HasRecording { 11619 args, err = runtime.ResourceFromRecording("windows.bitlocker", res.__id) 11620 if err != nil || args == nil { 11621 return res, err 11622 } 11623 return res, SetAllData(res, args) 11624 } 11625 11626 return res, nil 11627 } 11628 11629 func (c *mqlWindowsBitlocker) MqlName() string { 11630 return "windows.bitlocker" 11631 } 11632 11633 func (c *mqlWindowsBitlocker) MqlID() string { 11634 return c.__id 11635 } 11636 11637 func (c *mqlWindowsBitlocker) GetVolumes() *plugin.TValue[[]interface{}] { 11638 return plugin.GetOrCompute[[]interface{}](&c.Volumes, func() ([]interface{}, error) { 11639 if c.MqlRuntime.HasRecording { 11640 d, err := c.MqlRuntime.FieldResourceFromRecording("windows.bitlocker", c.__id, "volumes") 11641 if err != nil { 11642 return nil, err 11643 } 11644 if d != nil { 11645 return d.Value.([]interface{}), nil 11646 } 11647 } 11648 11649 return c.volumes() 11650 }) 11651 } 11652 11653 // mqlWindowsBitlockerVolume for the windows.bitlocker.volume resource 11654 type mqlWindowsBitlockerVolume struct { 11655 MqlRuntime *plugin.Runtime 11656 __id string 11657 // optional: if you define mqlWindowsBitlockerVolumeInternal it will be used here 11658 DeviceID plugin.TValue[string] 11659 DriveLetter plugin.TValue[string] 11660 ConversionStatus plugin.TValue[interface{}] 11661 EncryptionMethod plugin.TValue[interface{}] 11662 LockStatus plugin.TValue[int64] 11663 PersistentVolumeID plugin.TValue[string] 11664 ProtectionStatus plugin.TValue[interface{}] 11665 Version plugin.TValue[interface{}] 11666 } 11667 11668 // createWindowsBitlockerVolume creates a new instance of this resource 11669 func createWindowsBitlockerVolume(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 11670 res := &mqlWindowsBitlockerVolume{ 11671 MqlRuntime: runtime, 11672 } 11673 11674 err := SetAllData(res, args) 11675 if err != nil { 11676 return res, err 11677 } 11678 11679 if res.__id == "" { 11680 res.__id, err = res.id() 11681 if err != nil { 11682 return nil, err 11683 } 11684 } 11685 11686 if runtime.HasRecording { 11687 args, err = runtime.ResourceFromRecording("windows.bitlocker.volume", res.__id) 11688 if err != nil || args == nil { 11689 return res, err 11690 } 11691 return res, SetAllData(res, args) 11692 } 11693 11694 return res, nil 11695 } 11696 11697 func (c *mqlWindowsBitlockerVolume) MqlName() string { 11698 return "windows.bitlocker.volume" 11699 } 11700 11701 func (c *mqlWindowsBitlockerVolume) MqlID() string { 11702 return c.__id 11703 } 11704 11705 func (c *mqlWindowsBitlockerVolume) GetDeviceID() *plugin.TValue[string] { 11706 return &c.DeviceID 11707 } 11708 11709 func (c *mqlWindowsBitlockerVolume) GetDriveLetter() *plugin.TValue[string] { 11710 return &c.DriveLetter 11711 } 11712 11713 func (c *mqlWindowsBitlockerVolume) GetConversionStatus() *plugin.TValue[interface{}] { 11714 return &c.ConversionStatus 11715 } 11716 11717 func (c *mqlWindowsBitlockerVolume) GetEncryptionMethod() *plugin.TValue[interface{}] { 11718 return &c.EncryptionMethod 11719 } 11720 11721 func (c *mqlWindowsBitlockerVolume) GetLockStatus() *plugin.TValue[int64] { 11722 return &c.LockStatus 11723 } 11724 11725 func (c *mqlWindowsBitlockerVolume) GetPersistentVolumeID() *plugin.TValue[string] { 11726 return &c.PersistentVolumeID 11727 } 11728 11729 func (c *mqlWindowsBitlockerVolume) GetProtectionStatus() *plugin.TValue[interface{}] { 11730 return &c.ProtectionStatus 11731 } 11732 11733 func (c *mqlWindowsBitlockerVolume) GetVersion() *plugin.TValue[interface{}] { 11734 return &c.Version 11735 } 11736 11737 // mqlWindowsSecurity for the windows.security resource 11738 type mqlWindowsSecurity struct { 11739 MqlRuntime *plugin.Runtime 11740 __id string 11741 // optional: if you define mqlWindowsSecurityInternal it will be used here 11742 Products plugin.TValue[[]interface{}] 11743 } 11744 11745 // createWindowsSecurity creates a new instance of this resource 11746 func createWindowsSecurity(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 11747 res := &mqlWindowsSecurity{ 11748 MqlRuntime: runtime, 11749 } 11750 11751 err := SetAllData(res, args) 11752 if err != nil { 11753 return res, err 11754 } 11755 11756 // to override __id implement: id() (string, error) 11757 11758 if runtime.HasRecording { 11759 args, err = runtime.ResourceFromRecording("windows.security", res.__id) 11760 if err != nil || args == nil { 11761 return res, err 11762 } 11763 return res, SetAllData(res, args) 11764 } 11765 11766 return res, nil 11767 } 11768 11769 func (c *mqlWindowsSecurity) MqlName() string { 11770 return "windows.security" 11771 } 11772 11773 func (c *mqlWindowsSecurity) MqlID() string { 11774 return c.__id 11775 } 11776 11777 func (c *mqlWindowsSecurity) GetProducts() *plugin.TValue[[]interface{}] { 11778 return plugin.GetOrCompute[[]interface{}](&c.Products, func() ([]interface{}, error) { 11779 if c.MqlRuntime.HasRecording { 11780 d, err := c.MqlRuntime.FieldResourceFromRecording("windows.security", c.__id, "products") 11781 if err != nil { 11782 return nil, err 11783 } 11784 if d != nil { 11785 return d.Value.([]interface{}), nil 11786 } 11787 } 11788 11789 return c.products() 11790 }) 11791 } 11792 11793 // mqlWindowsSecurityProduct for the windows.security.product resource 11794 type mqlWindowsSecurityProduct struct { 11795 MqlRuntime *plugin.Runtime 11796 __id string 11797 // optional: if you define mqlWindowsSecurityProductInternal it will be used here 11798 Type plugin.TValue[string] 11799 Guid plugin.TValue[string] 11800 Name plugin.TValue[string] 11801 State plugin.TValue[int64] 11802 ProductState plugin.TValue[string] 11803 SignatureState plugin.TValue[string] 11804 Timestamp plugin.TValue[*time.Time] 11805 } 11806 11807 // createWindowsSecurityProduct creates a new instance of this resource 11808 func createWindowsSecurityProduct(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 11809 res := &mqlWindowsSecurityProduct{ 11810 MqlRuntime: runtime, 11811 } 11812 11813 err := SetAllData(res, args) 11814 if err != nil { 11815 return res, err 11816 } 11817 11818 if res.__id == "" { 11819 res.__id, err = res.id() 11820 if err != nil { 11821 return nil, err 11822 } 11823 } 11824 11825 if runtime.HasRecording { 11826 args, err = runtime.ResourceFromRecording("windows.security.product", res.__id) 11827 if err != nil || args == nil { 11828 return res, err 11829 } 11830 return res, SetAllData(res, args) 11831 } 11832 11833 return res, nil 11834 } 11835 11836 func (c *mqlWindowsSecurityProduct) MqlName() string { 11837 return "windows.security.product" 11838 } 11839 11840 func (c *mqlWindowsSecurityProduct) MqlID() string { 11841 return c.__id 11842 } 11843 11844 func (c *mqlWindowsSecurityProduct) GetType() *plugin.TValue[string] { 11845 return &c.Type 11846 } 11847 11848 func (c *mqlWindowsSecurityProduct) GetGuid() *plugin.TValue[string] { 11849 return &c.Guid 11850 } 11851 11852 func (c *mqlWindowsSecurityProduct) GetName() *plugin.TValue[string] { 11853 return &c.Name 11854 } 11855 11856 func (c *mqlWindowsSecurityProduct) GetState() *plugin.TValue[int64] { 11857 return &c.State 11858 } 11859 11860 func (c *mqlWindowsSecurityProduct) GetProductState() *plugin.TValue[string] { 11861 return &c.ProductState 11862 } 11863 11864 func (c *mqlWindowsSecurityProduct) GetSignatureState() *plugin.TValue[string] { 11865 return &c.SignatureState 11866 } 11867 11868 func (c *mqlWindowsSecurityProduct) GetTimestamp() *plugin.TValue[*time.Time] { 11869 return &c.Timestamp 11870 } 11871 11872 // mqlWindowsSecurityHealth for the windows.security.health resource 11873 type mqlWindowsSecurityHealth struct { 11874 MqlRuntime *plugin.Runtime 11875 __id string 11876 // optional: if you define mqlWindowsSecurityHealthInternal it will be used here 11877 Firewall plugin.TValue[interface{}] 11878 AutoUpdate plugin.TValue[interface{}] 11879 AntiVirus plugin.TValue[interface{}] 11880 AntiSpyware plugin.TValue[interface{}] 11881 InternetSettings plugin.TValue[interface{}] 11882 Uac plugin.TValue[interface{}] 11883 SecurityCenterService plugin.TValue[interface{}] 11884 } 11885 11886 // createWindowsSecurityHealth creates a new instance of this resource 11887 func createWindowsSecurityHealth(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { 11888 res := &mqlWindowsSecurityHealth{ 11889 MqlRuntime: runtime, 11890 } 11891 11892 err := SetAllData(res, args) 11893 if err != nil { 11894 return res, err 11895 } 11896 11897 // to override __id implement: id() (string, error) 11898 11899 if runtime.HasRecording { 11900 args, err = runtime.ResourceFromRecording("windows.security.health", res.__id) 11901 if err != nil || args == nil { 11902 return res, err 11903 } 11904 return res, SetAllData(res, args) 11905 } 11906 11907 return res, nil 11908 } 11909 11910 func (c *mqlWindowsSecurityHealth) MqlName() string { 11911 return "windows.security.health" 11912 } 11913 11914 func (c *mqlWindowsSecurityHealth) MqlID() string { 11915 return c.__id 11916 } 11917 11918 func (c *mqlWindowsSecurityHealth) GetFirewall() *plugin.TValue[interface{}] { 11919 return &c.Firewall 11920 } 11921 11922 func (c *mqlWindowsSecurityHealth) GetAutoUpdate() *plugin.TValue[interface{}] { 11923 return &c.AutoUpdate 11924 } 11925 11926 func (c *mqlWindowsSecurityHealth) GetAntiVirus() *plugin.TValue[interface{}] { 11927 return &c.AntiVirus 11928 } 11929 11930 func (c *mqlWindowsSecurityHealth) GetAntiSpyware() *plugin.TValue[interface{}] { 11931 return &c.AntiSpyware 11932 } 11933 11934 func (c *mqlWindowsSecurityHealth) GetInternetSettings() *plugin.TValue[interface{}] { 11935 return &c.InternetSettings 11936 } 11937 11938 func (c *mqlWindowsSecurityHealth) GetUac() *plugin.TValue[interface{}] { 11939 return &c.Uac 11940 } 11941 11942 func (c *mqlWindowsSecurityHealth) GetSecurityCenterService() *plugin.TValue[interface{}] { 11943 return &c.SecurityCenterService 11944 }