mirror of
https://github.com/AlistGo/alist.git
synced 2025-12-20 20:10:07 +08:00
Adds storage class information to file metadata and API responses. This change introduces the ability to store file storage classes in file metadata and display them in API responses. This allows users to view a file's storage tier (e.g., S3 Standard, Glacier), enhancing data management capabilities. Implementation details include: - Introducing the StorageClassProvider interface and the ObjWrapStorageClass structure to uniformly handle and communicate object storage class information. - Updated file metadata structures (e.g., ArchiveObj, FileInfo, RespFile) to include a StorageClass field. - Modified relevant API response functions (e.g., GetFileInfo, GetFileList) to populate and return storage classes. - Integrated functionality for retrieving object storage classes from underlying storage systems (e.g., S3) and wrapping them in lists. |
||
|---|---|---|
| .. | ||
| archive.go | ||
| args.go | ||
| file.go | ||
| label_file_binding.go | ||
| label.go | ||
| meta.go | ||
| obj_file.go | ||
| obj.go | ||
| object.go | ||
| paths.go | ||
| req.go | ||
| role.go | ||
| roles.go | ||
| search.go | ||
| session.go | ||
| setting.go | ||
| sshkey.go | ||
| storage.go | ||
| task.go | ||
| user.go | ||