blob: ae94f622b724578b5b974e31bc87b0bec594b54e [file] [log] [blame]
Alexei Strots0cb11342023-05-03 15:51:18 -07001#ifndef AOS_EVENTS_LOGGING_S3_FILE_OPERATIONS_H_
2#define AOS_EVENTS_LOGGING_S3_FILE_OPERATIONS_H_
Alexei Strots1bf05be2023-04-21 11:07:37 -07003
4#include "aos/events/logging/file_operations.h"
5
6namespace aos::logger::internal {
7
8class 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 Strots0cb11342023-05-03 15:51:18 -070022#endif // AOS_EVENTS_LOGGING_S3_FILE_OPERATIONS_H_