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

Method SetNillableSecretKey

ent/storagepolicy_create.go:147–152  ·  view source on GitHub ↗

SetNillableSecretKey sets the "secret_key" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

145
146// SetNillableSecretKey sets the "secret_key" field if the given value is not nil.
147func (spc *StoragePolicyCreate) SetNillableSecretKey(s *string) *StoragePolicyCreate {
148 if s != nil {
149 spc.SetSecretKey(*s)
150 }
151 return spc
152}
153
154// SetMaxSize sets the "max_size" field.
155func (spc *StoragePolicyCreate) SetMaxSize(i int64) *StoragePolicyCreate {

Callers

nothing calls this directly

Calls 1

SetSecretKeyMethod · 0.95

Tested by

no test coverage detected