API: add component update transactions
This commit is contained in:
2 files changed
+18
-4
No files matched your search
@@ -217,6 +217,10 @@ namespace Echoion::Api
|
||||
};
|
||||
|
||||
struct UpdateSourceConfig {
|
||||
// "direct" addresses one feed document. "component-layout"
|
||||
// addresses a channel root containing catalog.json and component
|
||||
// discovery documents.
|
||||
std::string kind = "direct";
|
||||
// Empty is only meaningful for the built-in "official" source and
|
||||
// resolves to the URL injected by the release build.
|
||||
std::string url;
|
||||
@@ -265,8 +269,14 @@ namespace Echoion::Api
|
||||
// Number of previous healthy versions retained in addition to
|
||||
// active.
|
||||
uint32_t retainHealthyVersions = 2;
|
||||
std::map<std::string, UpdateSourceConfig> sources = {
|
||||
{"official", UpdateSourceConfig{}}};
|
||||
std::map<std::string, UpdateSourceConfig> sources = {{
|
||||
"official",
|
||||
UpdateSourceConfig{.kind = "component-layout",
|
||||
.url = {},
|
||||
.publicKeys = {},
|
||||
.allowUnsigned = false,
|
||||
.bearerTokenEnv = {}},
|
||||
}};
|
||||
UpdateComponentConfig runtime;
|
||||
UpdateComponentConfig core;
|
||||
PluginUpdatesConfig plugins;
|
||||
|
||||
@@ -119,14 +119,18 @@ namespace Echoion::Api
|
||||
SendTeamSpeakChannelMessage,
|
||||
SendTeamSpeakServerMessage,
|
||||
|
||||
// Component updater (append-only; values 89-95).
|
||||
// Component updater (append-only; values 89-99).
|
||||
GetUpdateStatus,
|
||||
GetUpdateConfig,
|
||||
SetUpdateConfig,
|
||||
CheckForUpdates,
|
||||
ApplyUpdate,
|
||||
RollbackUpdate,
|
||||
ConfirmUnsignedUpdate
|
||||
ConfirmUnsignedUpdate,
|
||||
PreviewUpdateTransaction,
|
||||
ApplyUpdateTransaction,
|
||||
RollbackUpdateGeneration,
|
||||
GetUpdateHistory
|
||||
};
|
||||
|
||||
struct RpcRequest {
|
||||
|
||||
Reference in new issue
Block a user