MCPcopy
hub / github.com/helm/helm / CreatePlugin

Method CreatePlugin

internal/plugin/loader.go:133–140  ·  view source on GitHub ↗
(pluginPath string, metadata *Metadata)

Source from the content-addressed store, hash-verified

131}
132
133func (pm *prototypePluginManager) CreatePlugin(pluginPath string, metadata *Metadata) (Plugin, error) {
134 rt, ok := pm.runtimes[metadata.Runtime]
135 if !ok {
136 return nil, fmt.Errorf("unsupported plugin runtime type: %q", metadata.Runtime)
137 }
138
139 return rt.CreatePlugin(pluginPath, metadata)
140}
141
142// LoadDir loads a plugin from the given directory.
143func LoadDir(dirname string) (Plugin, error) {

Callers

nothing calls this directly

Calls 1

CreatePluginMethod · 0.65

Tested by

no test coverage detected