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

Method SetNillableAccessKey

ent/storagepolicy_create.go:133–138  ·  view source on GitHub ↗

SetNillableAccessKey sets the "access_key" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

131
132// SetNillableAccessKey sets the "access_key" field if the given value is not nil.
133func (spc *StoragePolicyCreate) SetNillableAccessKey(s *string) *StoragePolicyCreate {
134 if s != nil {
135 spc.SetAccessKey(*s)
136 }
137 return spc
138}
139
140// SetSecretKey sets the "secret_key" field.
141func (spc *StoragePolicyCreate) SetSecretKey(s string) *StoragePolicyCreate {

Callers

nothing calls this directly

Calls 1

SetAccessKeyMethod · 0.95

Tested by

no test coverage detected