Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
Loading...
Searching...
No Matches
native_backup_restore.h
Go to the documentation of this file.
1/**
2 * @file
3 * @brief Declares native backup and restore report builders.
4 */
5
6#ifndef PHAROS_NATIVE_BACKUP_RESTORE_H
7#define PHAROS_NATIVE_BACKUP_RESTORE_H
8
10
11/** @name Backup and restore report helpers
12 * @{
13 */
14/**
15 * @brief Builds a JSON report describing a native app backup operation.
16 * @param config Active serve configuration.
17 * @param app Finalized app runtime to back up.
18 * @param backend_override Optional backend override.
19 * @param output_dir_override Optional output directory override.
20 * @param error_out Optional destination for an allocated error message.
21 * @return Newly allocated JSON report text, or NULL on failure.
22 */
23char *build_native_backup_report_local_json(const ServeConfig *config, const AppRuntime *app, const char *backend_override, const char *output_dir_override, char **error_out);
24/**
25 * @brief Builds a JSON report describing a native app restore operation.
26 * @param config Active serve configuration.
27 * @param app Finalized app runtime to restore into.
28 * @param backend_override Optional backend override.
29 * @param input_dir Directory containing restore input artifacts.
30 * @param error_out Optional destination for an allocated error message.
31 * @return Newly allocated JSON report text, or NULL on failure.
32 */
33char *build_native_restore_report_local_json(const ServeConfig *config, const AppRuntime *app, const char *backend_override, const char *input_dir, char **error_out);
34
35
36/** @} */
37#endif
char * build_native_restore_report_local_json(const ServeConfig *config, const AppRuntime *app, const char *backend_override, const char *input_dir, char **error_out)
Builds a JSON report describing a native app restore operation.
char * build_native_backup_report_local_json(const ServeConfig *config, const AppRuntime *app, const char *backend_override, const char *output_dir_override, char **error_out)
Builds a JSON report describing a native app backup operation.
Defines shared native runtime data structures used across the Pharos C runtime.
Loaded runtime metadata for one Pharos app artifact.
Parsed native serve configuration used to bootstrap the runtime listener.