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

Struct entitySource

pkg/filemanager/manager/entitysource/entitysource.go:161–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159
160type (
161 entitySource struct {
162 e fs.Entity
163 handler driver.Handler
164 policy *ent.StoragePolicy
165 generalAuth auth.Auth
166 settings setting.Provider
167 hasher hashid.Encoder
168 c request.Client
169 l logging.Logger
170 config conf.ConfigProvider
171 mime mime.MimeDetector
172 encryptorFactory encrypt.CryptorFactory
173
174 rsc io.ReadCloser
175 pos int64
176 o *EntitySourceOptions
177
178 // Cache for resetRequest URL and expiry
179 cachedUrl string
180 cachedExpiry time.Time
181 }
182)
183
184// toASCIISafeFilename converts a filename to ASCII-safe version by replacing

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected