MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / NewMachineClient

Function NewMachineClient

pkg/database/ent/client.go:1488–1490  ·  view source on GitHub ↗

NewMachineClient returns a client for the Machine from the given config.

(c config)

Source from the content-addressed store, hash-verified

1486
1487// NewMachineClient returns a client for the Machine from the given config.
1488func NewMachineClient(c config) *MachineClient {
1489 return &MachineClient{config: c}
1490}
1491
1492// Use adds a list of mutation hooks to the hooks stack.
1493// A call to `Use(f, g, h)` equals to `machine.Hooks(f(g(h())))`.

Callers 6

QueryAlertsMethod · 0.85
UpdateMethod · 0.85
initMethod · 0.85
initMethod · 0.85
TxMethod · 0.85
BeginTxMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…