(scriptType string)
| 230 | } |
| 231 | |
| 232 | func normalizeScriptType(scriptType string) string { |
| 233 | switch scriptType { |
| 234 | case "lxc": |
| 235 | return "ct" |
| 236 | case "vm": |
| 237 | return "vm" |
| 238 | case "addon", "pve": |
| 239 | return "tools" |
| 240 | default: |
| 241 | return scriptType |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | func mapPocketBaseRecord(record pocketBaseScriptRecord) Script { |
| 246 | sourceType := record.Expand.Type.Type |
no outgoing calls
no test coverage detected