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

Struct DisableCommand

pkg/hubops/disable.go:45–48  ·  view source on GitHub ↗

DisableCommand uninstalls an item and its dependencies, ensuring that no sub-item is left in an inconsistent state.

Source from the content-addressed store, hash-verified

43// DisableCommand uninstalls an item and its dependencies, ensuring that no
44// sub-item is left in an inconsistent state.
45type DisableCommand struct {
46 Item *cwhub.Item
47 Force bool
48}
49
50func NewDisableCommand(item *cwhub.Item, force bool) *DisableCommand {
51 return &DisableCommand{Item: item, Force: force}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected