| 159 | |
| 160 | type ( |
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected