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

Method SetOsname

pkg/database/ent/machine_create.go:621–624  ·  view source on GitHub ↗

SetOsname sets the "osname" field.

(v string)

Source from the content-addressed store, hash-verified

619
620// SetOsname sets the "osname" field.
621func (u *MachineUpsert) SetOsname(v string) *MachineUpsert {
622 u.Set(machine.FieldOsname, v)
623 return u
624}
625
626// UpdateOsname sets the "osname" field to the value that was provided on create.
627func (u *MachineUpsert) UpdateOsname() *MachineUpsert {

Callers

nothing calls this directly

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected