MCPcopy Create free account
hub / github.com/MacroPower/kat / RunPluginContext

Method RunPluginContext

pkg/command/static.go:121–129  ·  view source on GitHub ↗
(ctx context.Context, _ string)

Source from the content-addressed store, hash-verified

119}
120
121func (rg *Static) RunPluginContext(ctx context.Context, _ string) Output {
122 rg.broadcast(NewEventStart(ctx, TypePlugin))
123
124 out := NewOutput(TypePlugin, WithError(errors.New("plugins not supported in static resource mode")))
125
126 rg.broadcast(NewEventEnd(ctx, out))
127
128 return out
129}
130
131func (rg *Static) GetRules() []*rule.Rule {
132 return nil

Callers 1

RunPluginMethod · 0.95

Calls 5

broadcastMethod · 0.95
NewEventStartFunction · 0.85
NewOutputFunction · 0.85
WithErrorFunction · 0.85
NewEventEndFunction · 0.85

Tested by

no test coverage detected