MCPcopy
hub / github.com/crowdsecurity/crowdsec / Run

Method Run

pkg/hubops/plan.go:39–39  ·  view source on GitHub ↗

Run executes the command within the provided context and ActionPlan. It performs the actual operation and returns an error if execution fails. NOTE: Returning an error will currently stop the execution of the action plan.

(ctx context.Context, plan *ActionPlan)

Source from the content-addressed store, hash-verified

37 // It performs the actual operation and returns an error if execution fails.
38 // NOTE: Returning an error will currently stop the execution of the action plan.
39 Run(ctx context.Context, plan *ActionPlan) error
40
41 // OperationType returns a unique string representing the type of operation to perform
42 // (e.g., "download", "enable").

Callers 15

EvalAlertContextRulesFunction · 0.65
ExecuteMethod · 0.65
TestParseSourceConfigFunction · 0.65
TestDataSourceConfigureFunction · 0.65
TestConfigureByDSNFunction · 0.65
transformFunction · 0.65
TestMainFunction · 0.65
TestQueryBuilderFunction · 0.65
TestOneShotFunction · 0.65

Implementers 5

PurgeCommandpkg/hubops/purge.go
EnableCommandpkg/hubops/enable.go
DownloadCommandpkg/hubops/download.go
DisableCommandpkg/hubops/disable.go
DataRefreshCommandpkg/hubops/datarefresh.go

Calls

no outgoing calls

Tested by 15

TestParseSourceConfigFunction · 0.52
TestDataSourceConfigureFunction · 0.52
TestConfigureByDSNFunction · 0.52
TestMainFunction · 0.52
TestQueryBuilderFunction · 0.52
TestOneShotFunction · 0.52
TestConfigureDSNFunction · 0.52
TestOneShotFunction · 0.52
TestStreamingFunction · 0.52