blob: e75e56b33dee5f3071198aacf96a26d78824d06d [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
Austin Schuh95460cc2023-06-26 11:53:10 -070014 void FindLogs(std::vector<File> *files) final;
Alexei Strots1bf05be2023-04-21 11:07:37 -070015
16 private:
Austin Schuh95460cc2023-06-26 11:53:10 -070017 const std::vector<File> object_urls_;
Alexei Strots1bf05be2023-04-21 11:07:37 -070018};
19
20} // namespace aos::logger::internal
21
Alexei Strots0cb11342023-05-03 15:51:18 -070022#endif // AOS_EVENTS_LOGGING_S3_FILE_OPERATIONS_H_