getPluginCache returns a cache instance dedicated to the community scripts plugin.
()
| 179 | |
| 180 | // getPluginCache returns a cache instance dedicated to the community scripts plugin. |
| 181 | func getPluginCache() cache.Cache { |
| 182 | pluginCacheOnce.Do(func() { |
| 183 | pluginCache = cache.GetNamespacedCache("communityscripts") |
| 184 | }) |
| 185 | |
| 186 | return pluginCache |
| 187 | } |
| 188 | |
| 189 | func validateMetadataURL(rawURL string) (string, error) { |
| 190 | parsed, err := url.Parse(rawURL) |
no test coverage detected