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

Method Create

pkg/database/ent/client.go:1372–1375  ·  view source on GitHub ↗

Create returns a builder for creating a Lock entity.

()

Source from the content-addressed store, hash-verified

1370
1371// Create returns a builder for creating a Lock entity.
1372func (c *LockClient) Create() *LockCreate {
1373 mutation := newLockMutation(c.config, OpCreate)
1374 return &LockCreate{config: c.config, hooks: c.Hooks(), mutation: mutation}
1375}
1376
1377// CreateBulk returns a builder for creating a bulk of Lock entities.
1378func (c *LockClient) CreateBulk(builders ...*LockCreate) *LockCreateBulk {

Callers 15

MapCreateBulkMethod · 0.95
mainFunction · 0.45
CreateAllowListMethod · 0.45
AddToAllowlistMethod · 0.45
createDecisionFunction · 0.45
NewClientFunction · 0.45
CreateOrUpdateAlertMethod · 0.45
createDecisionBatchMethod · 0.45
buildEventCreatesFunction · 0.45
buildMetaCreatesFunction · 0.45
createAlertBatchMethod · 0.45

Calls 2

HooksMethod · 0.95
newLockMutationFunction · 0.85

Tested by 15

createDecisionFunction · 0.36
TestOneShotFunction · 0.36
TestLiveAcquisitionFunction · 0.36
TestListFilesAtPathFunction · 0.36
copyFileFunction · 0.36
TestAPICSendMetricsFunction · 0.36
TestAPICCAPIPullIsOldFunction · 0.36
TestAPICGetMetricsFunction · 0.36
TestAPICWhitelistsFunction · 0.36
TestAPICPullTopFunction · 0.36