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

Method SetSlaveKey

ent/node_create.go:692–696  ·  view source on GitHub ↗

SetSlaveKey sets the "slave_key" field.

(v string)

Source from the content-addressed store, hash-verified

690
691// SetSlaveKey sets the "slave_key" field.
692func (u *NodeUpsertOne) SetSlaveKey(v string) *NodeUpsertOne {
693 return u.Update(func(s *NodeUpsert) {
694 s.SetSlaveKey(v)
695 })
696}
697
698// UpdateSlaveKey sets the "slave_key" field to the value that was provided on create.
699func (u *NodeUpsertOne) UpdateSlaveKey() *NodeUpsertOne {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected