MCPcopy
hub / github.com/helm/helm / newPrototypePluginManager

Function newPrototypePluginManager

internal/plugin/loader.go:111–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109}
110
111func newPrototypePluginManager() (*prototypePluginManager, error) {
112
113 cc, err := wazero.NewCompilationCacheWithDir(helmpath.CachePath("wazero-build"))
114 if err != nil {
115 return nil, fmt.Errorf("failed to create wazero compilation cache: %w", err)
116 }
117
118 return &prototypePluginManager{
119 runtimes: map[string]Runtime{
120 "subprocess": &RuntimeSubprocess{},
121 "extism/v1": &RuntimeExtismV1{
122 HostFunctions: map[string]extism.HostFunction{},
123 CompilationCache: cc,
124 },
125 },
126 }, nil
127}
128
129func (pm *prototypePluginManager) RegisterRuntime(runtimeName string, runtime Runtime) {
130 pm.runtimes[runtimeName] = runtime

Callers 1

LoadDirFunction · 0.85

Calls 1

CachePathFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…