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

Method SetNillableSlaveKey

ent/node_create.go:109–114  ·  view source on GitHub ↗

SetNillableSlaveKey sets the "slave_key" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

107
108// SetNillableSlaveKey sets the "slave_key" field if the given value is not nil.
109func (nc *NodeCreate) SetNillableSlaveKey(s *string) *NodeCreate {
110 if s != nil {
111 nc.SetSlaveKey(*s)
112 }
113 return nc
114}
115
116// SetCapabilities sets the "capabilities" field.
117func (nc *NodeCreate) SetCapabilities(bs *boolset.BooleanSet) *NodeCreate {

Callers

nothing calls this directly

Calls 1

SetSlaveKeyMethod · 0.95

Tested by

no test coverage detected