#include <json/json.h>
#include <boost/filesystem.hpp>
Go to the source code of this file.
|
| | data |
| | General data structures.
|
| |
|
|
using | data::UpdateRequestId = std::string |
| |
|
typedef std::pair< UpdateResultCode, std::string > | data::InstallOutcome |
| |
|
| enum | KeyType {
kED25519 = 0,
kFirstKnown = kED25519,
kRSA2048,
kRSA3072,
kRSA4096,
kLastKnown = kRSA4096,
kUnknown = 0xff
} |
| |
| enum | RunningMode {
RunningMode::kFull = 0,
RunningMode::kOnce,
RunningMode::kCampaignCheck,
RunningMode::kCampaignAccept,
RunningMode::kCampaignReject,
RunningMode::kCheck,
RunningMode::kDownload,
RunningMode::kInstall,
RunningMode::kManual
} |
| | Execution mode to run aktualizr in. More...
|
| |
| enum | CryptoSource { kFile = 0,
kPkcs11
} |
| |
| enum | data::UpdateResultCode {
data::UpdateResultCode::kOk = 0,
data::UpdateResultCode::kAlreadyProcessed,
data::UpdateResultCode::kDependencyFailure,
data::UpdateResultCode::kValidationFailed,
data::UpdateResultCode::kInstallFailed,
data::UpdateResultCode::kUpgradeFailed,
data::UpdateResultCode::kRemovalFailed,
data::UpdateResultCode::kFlashFailed,
data::UpdateResultCode::kCreatePartitionFailed,
data::UpdateResultCode::kDeletePartitionFailed,
data::UpdateResultCode::kResizePartitionFailed,
data::UpdateResultCode::kWritePartitionFailed,
data::UpdateResultCode::kPatchPartitionFailed,
data::UpdateResultCode::kUserDeclined,
data::UpdateResultCode::kSoftwareBlacklisted,
data::UpdateResultCode::kDiskFull,
data::UpdateResultCode::kNotFound,
data::UpdateResultCode::kOldVersion,
data::UpdateResultCode::kInternalError,
data::UpdateResultCode::kGeneralError,
data::UpdateResultCode::kInProgress
} |
| | Result of an update. More...
|
| |
|
|
std::ostream & | operator<< (std::ostream &os, const KeyType kt) |
| |
|
std::istream & | operator>> (std::istream &is, KeyType &kt) |
| |
|
RunningMode | RunningModeFromString (const std::string &mode) |
| |
|
std::string | StringFromRunningMode (RunningMode mode) |
| |
|
std::ostream & | operator<< (std::ostream &os, CryptoSource cs) |
| |
◆ RunningMode
Execution mode to run aktualizr in.
| Enumerator |
|---|
| kFull | Fully automated mode.
Regularly checks for updates and downloads and installs automatically. Runs indefinitely.
|
| kOnce | One complete cycle.
Checks once for updates, downloads and installs anything found, and then shuts down.
|
| kCampaignCheck | Only check for an existing campaign related to the device.
|
| kCampaignAccept | Only accept an existing campaign.
|
| kCampaignReject | Only reject an existing campaign.
|
| kCheck | Only check for updates.
Sends a manifest and device data, checks for updates, and then shuts down.
|
| kDownload | Download any available updates and then shut down.
|
| kInstall | Install any available updates and then shut down.
Does not requite network connectivity.
|
| kManual | Completely manual operation.
Send commands via the aktualizr class's API. Runs indefinitely until a Shutdown command is received.
|
Definition at line 62 of file types.h.