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

Method SetStoragePolicy

ent/entity_update.go:725–727  ·  view source on GitHub ↗

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

(s *StoragePolicy)

Source from the content-addressed store, hash-verified

723
724// SetStoragePolicy sets the "storage_policy" edge to the StoragePolicy entity.
725func (euo *EntityUpdateOne) SetStoragePolicy(s *StoragePolicy) *EntityUpdateOne {
726 return euo.SetStoragePolicyID(s.ID)
727}
728
729// Mutation returns the EntityMutation object of the builder.
730func (euo *EntityUpdateOne) Mutation() *EntityMutation {

Callers

nothing calls this directly

Calls 1

SetStoragePolicyIDMethod · 0.95

Tested by

no test coverage detected