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

Method CreatePlugin

internal/plugin/runtime.go:30–30  ·  view source on GitHub ↗

CreatePlugin creates a plugin instance from the given metadata

(pluginDir string, metadata *Metadata)

Source from the content-addressed store, hash-verified

28type Runtime interface {
29 // CreatePlugin creates a plugin instance from the given metadata
30 CreatePlugin(pluginDir string, metadata *Metadata) (Plugin, error)
31
32 // TODO: move config unmarshalling to the runtime?
33 // UnmarshalConfig(runtimeConfigRaw map[string]any) (RuntimeConfig, error)

Callers 2

CreatePluginMethod · 0.65
LoadDirFunction · 0.65

Implementers 3

prototypePluginManagerinternal/plugin/loader.go
RuntimeExtismV1internal/plugin/runtime_extismv1.go
RuntimeSubprocessinternal/plugin/runtime_subprocess.go

Calls

no outgoing calls

Tested by

no test coverage detected