MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / getPluginCache

Function getPluginCache

internal/plugins/communityscripts/scripts.go:181–187  ·  view source on GitHub ↗

getPluginCache returns a cache instance dedicated to the community scripts plugin.

()

Source from the content-addressed store, hash-verified

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

Callers 3

GetScriptMetadataFilesFunction · 0.85
GetScriptMetadataFunction · 0.85
FetchScriptsFunction · 0.85

Calls 1

GetNamespacedCacheFunction · 0.92

Tested by

no test coverage detected