MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / SetStatus

Method SetStatus

ent/node_create.go:629–633  ·  view source on GitHub ↗

SetStatus sets the "status" field.

(v node.Status)

Source from the content-addressed store, hash-verified

627
628// SetStatus sets the "status" field.
629func (u *NodeUpsertOne) SetStatus(v node.Status) *NodeUpsertOne {
630 return u.Update(func(s *NodeUpsert) {
631 s.SetStatus(v)
632 })
633}
634
635// UpdateStatus sets the "status" field to the value that was provided on create.
636func (u *NodeUpsertOne) UpdateStatus() *NodeUpsertOne {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected