Alexei Strots | 0cb1134 | 2023-05-03 15:51:18 -0700 | [diff] [blame] | 1 | #ifndef AOS_EVENTS_LOGGING_S3_FILE_OPERATIONS_H_ |
| 2 | #define AOS_EVENTS_LOGGING_S3_FILE_OPERATIONS_H_ |
Alexei Strots | 1bf05be | 2023-04-21 11:07:37 -0700 | [diff] [blame] | 3 | |
| 4 | #include "aos/events/logging/file_operations.h" |
| 5 | |
| 6 | namespace aos::logger::internal { |
| 7 | |
| 8 | class S3FileOperations final : public FileOperations { |
| 9 | public: |
| 10 | explicit S3FileOperations(std::string_view url); |
| 11 | |
| 12 | bool Exists() final { return !object_urls_.empty(); } |
| 13 | |
| 14 | void FindLogs(std::vector<std::string> *files) final; |
| 15 | |
| 16 | private: |
| 17 | const std::vector<std::string> object_urls_; |
| 18 | }; |
| 19 | |
| 20 | } // namespace aos::logger::internal |
| 21 | |
Alexei Strots | 0cb1134 | 2023-05-03 15:51:18 -0700 | [diff] [blame] | 22 | #endif // AOS_EVENTS_LOGGING_S3_FILE_OPERATIONS_H_ |