Fledge
An open source edge computing platform for industrial users
check_updates.h
1 #ifndef _CHECK_UPDATES_H
2 #define _CHECK_UPDATES_H
3 
4 /*
5  * Fledge Check Updates
6  *
7  * Copyright (c) 2024 Dianomic Systems
8  *
9  * Released under the Apache 2.0 Licence
10  *
11  * Author: Devki Nandan Ghildiyal
12  */
13 
14 #include <process.h>
15 
16 #define LOG_NAME "check_updates"
17 
23 {
24  public:
25  CheckUpdates(int argc, char** argv);
26  ~CheckUpdates();
27  void run();
28 
29  private:
30  Logger *m_logger;
31  ManagementClient *m_mgtClient;
32 
33  void raiseAlerts();
34  std::string getPackageManager();
35  std::vector<std::string> getUpgradablePackageList();
36  void processEnd();
37 };
38 #endif
Fledge Logger class used to log to syslog.
Definition: logger.h:26
~CheckUpdates()
Destructor for CheckUpdates.
Definition: check_updates.cpp:48
Fledge process base class.
Definition: process.h:21
The management client class used by services and tasks to communicate with the management API of the ...
Definition: management_client.h:43
void run()
CheckUpdates run method, called by the base class to start the process and do the actual work...
Definition: check_updates.cpp:55
CheckUpdates(int argc, char **argv)
Constructor for CheckUpdates.
Definition: check_updates.cpp:35
CheckUpdates class.
Definition: check_updates.h:22