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

Method Query

pkg/database/ent/client.go:1435–1441  ·  view source on GitHub ↗

Query returns a query builder for Lock.

()

Source from the content-addressed store, hash-verified

1433
1434// Query returns a query builder for Lock.
1435func (c *LockClient) Query() *LockQuery {
1436 return &LockQuery{
1437 config: c.config,
1438 ctx: &QueryContext{Type: TypeLock},
1439 inters: c.Interceptors(),
1440 }
1441}
1442
1443// Get returns a Lock entity by its id.
1444func (c *LockClient) Get(ctx context.Context, id int) (*Lock, error) {

Callers 11

GetMethod · 0.95
QueryOwnerMethod · 0.45
QueryDecisionsMethod · 0.45
QueryEventsMethod · 0.45
QueryMetasMethod · 0.45
QueryAllowlistItemsMethod · 0.45
QueryAllowlistMethod · 0.45
QueryOwnerMethod · 0.45
QueryOwnerMethod · 0.45
QueryAlertsMethod · 0.45
QueryOwnerMethod · 0.45

Calls 1

InterceptorsMethod · 0.95

Tested by

no test coverage detected