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

Method SetVersion

pkg/database/ent/machine_create.go:579–582  ·  view source on GitHub ↗

SetVersion sets the "version" field.

(v string)

Source from the content-addressed store, hash-verified

577
578// SetVersion sets the "version" field.
579func (u *MachineUpsert) SetVersion(v string) *MachineUpsert {
580 u.Set(machine.FieldVersion, v)
581 return u
582}
583
584// UpdateVersion sets the "version" field to the value that was provided on create.
585func (u *MachineUpsert) UpdateVersion() *MachineUpsert {

Callers

nothing calls this directly

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected