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

Method SetUpdatedAt

pkg/database/ent/machine_create.go:489–492  ·  view source on GitHub ↗

SetUpdatedAt sets the "updated_at" field.

(v time.Time)

Source from the content-addressed store, hash-verified

487
488// SetUpdatedAt sets the "updated_at" field.
489func (u *MachineUpsert) SetUpdatedAt(v time.Time) *MachineUpsert {
490 u.Set(machine.FieldUpdatedAt, v)
491 return u
492}
493
494// UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
495func (u *MachineUpsert) UpdateUpdatedAt() *MachineUpsert {

Callers

nothing calls this directly

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected