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

Method SetStoragePolicy

ent/node.go:254–257  ·  view source on GitHub ↗

SetStoragePolicy manually set the edge as loaded state.

(v []*StoragePolicy)

Source from the content-addressed store, hash-verified

252
253// SetStoragePolicy manually set the edge as loaded state.
254func (e *Node) SetStoragePolicy(v []*StoragePolicy) {
255 e.Edges.StoragePolicy = v
256 e.Edges.loadedTypes[0] = true
257}
258
259// Nodes is a parsable slice of Node.
260type Nodes []*Node

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected