IsProtonExtractor checks if a name matches a proton template ID or tag.
(name string)
| 308 | |
| 309 | // IsProtonExtractor checks if a name matches a proton template ID or tag. |
| 310 | func IsProtonExtractor(name string) bool { |
| 311 | protonMu.RLock() |
| 312 | defer protonMu.RUnlock() |
| 313 | if _, ok := protonTemplateMap["spray-"+name]; ok { |
| 314 | return true |
| 315 | } |
| 316 | if _, ok := protonTemplateMap[name]; ok { |
| 317 | return true |
| 318 | } |
| 319 | if _, ok := protonTagMap[name]; ok { |
| 320 | return true |
| 321 | } |
| 322 | return false |
| 323 | } |
no outgoing calls