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

Method Update

pkg/database/ent/machine.go:245–247  ·  view source on GitHub ↗

Update returns a builder for updating this Machine. Note that you need to call Machine.Unwrap() before calling this method if this Machine was returned from a transaction, and the transaction was committed or rolled back.

()

Source from the content-addressed store, hash-verified

243// Note that you need to call Machine.Unwrap() before calling this method if this Machine
244// was returned from a transaction, and the transaction was committed or rolled back.
245func (_m *Machine) Update() *MachineUpdateOne {
246 return NewMachineClient(_m.config).UpdateOne(_m)
247}
248
249// Unwrap unwraps the Machine entity that was returned from a transaction after it was closed,
250// so that all future queries will be executed through the driver which created the transaction.

Callers

nothing calls this directly

Calls 2

NewMachineClientFunction · 0.85
UpdateOneMethod · 0.45

Tested by

no test coverage detected