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

Method SetPassword

pkg/database/ent/machine_create.go:537–540  ·  view source on GitHub ↗

SetPassword sets the "password" field.

(v string)

Source from the content-addressed store, hash-verified

535
536// SetPassword sets the "password" field.
537func (u *MachineUpsert) SetPassword(v string) *MachineUpsert {
538 u.Set(machine.FieldPassword, v)
539 return u
540}
541
542// UpdatePassword sets the "password" field to the value that was provided on create.
543func (u *MachineUpsert) UpdatePassword() *MachineUpsert {

Callers

nothing calls this directly

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected