MCPcopy
hub / github.com/helm/helm / Invoke

Method Invoke

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

Invoke takes the given input, and dispatches the contents to plugin instance The input is expected to be a JSON-serializable object, which the plugin will interpret according to its type The plugin is expected to return a JSON-serializable object, which the invoker will interpret according to the pl

(ctx context.Context, input *Input)

Source from the content-addressed store, hash-verified

42 // If plugin's execution fails with a non-zero "return code" (this is plugin runtime implementation specific)
43 // an InvokeExecError is returned
44 Invoke(ctx context.Context, input *Input) (*Output, error)
45}
46
47// PluginHook allows plugins to implement hooks that are invoked on plugin management events (install, upgrade, etc)

Callers 5

loadCLIPluginsFunction · 0.65
GetMethod · 0.65
RunMethod · 0.65

Implementers 3

testPluginpkg/getter/plugingetter_test.go
ExtismV1PluginRuntimeinternal/plugin/runtime_extismv1.go
SubprocessPluginRuntimeinternal/plugin/runtime_subprocess.go

Calls

no outgoing calls

Tested by 2