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

Method SetStoragePolicy

ent/entity_create.go:185–187  ·  view source on GitHub ↗

SetStoragePolicy sets the "storage_policy" edge to the StoragePolicy entity.

(s *StoragePolicy)

Source from the content-addressed store, hash-verified

183
184// SetStoragePolicy sets the "storage_policy" edge to the StoragePolicy entity.
185func (ec *EntityCreate) SetStoragePolicy(s *StoragePolicy) *EntityCreate {
186 return ec.SetStoragePolicyID(s.ID)
187}
188
189// Mutation returns the EntityMutation object of the builder.
190func (ec *EntityCreate) Mutation() *EntityMutation {

Callers

nothing calls this directly

Calls 1

SetStoragePolicyIDMethod · 0.95

Tested by

no test coverage detected