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

Method SetLastPush

pkg/database/ent/machine_create.go:501–504  ·  view source on GitHub ↗

SetLastPush sets the "last_push" field.

(v time.Time)

Source from the content-addressed store, hash-verified

499
500// SetLastPush sets the "last_push" field.
501func (u *MachineUpsert) SetLastPush(v time.Time) *MachineUpsert {
502 u.Set(machine.FieldLastPush, v)
503 return u
504}
505
506// UpdateLastPush sets the "last_push" field to the value that was provided on create.
507func (u *MachineUpsert) UpdateLastPush() *MachineUpsert {

Callers

nothing calls this directly

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected