|
Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
|
Loads AppRuntime values from the finalized artifact-local app manifest and validates required runtime fields. More...
#include "native_runtime_load.h"#include "native_support.h"#include "native_json_config.h"#include <stdlib.h>#include <string.h>Go to the source code of this file.
Macros | |
| #define | pharos_runtime_load_strdup strdup |
Functions | |
| static void | free_loaded_app_runtime_fields (AppRuntime *app) |
| int | load_app_runtime_from_artifact_native (const char *artifact_dir, AppRuntime *app) |
| Loads runtime metadata for one app from an emitted artifact directory. | |
Loads AppRuntime values from the finalized artifact-local app manifest and validates required runtime fields.
Definition in file native_runtime_load.c.
| #define pharos_runtime_load_strdup strdup |
Definition at line 17 of file native_runtime_load.c.
Referenced by load_app_runtime_from_artifact_native().
|
static |
Definition at line 20 of file native_runtime_load.c.
References AppRuntime::app_id, AppRuntime::app_root, AppRuntime::artifact_dir, AppRuntime::base_path, AppRuntime::build_dir, AppRuntime::compiled_entrypoint, AppRuntime::debug, AppRuntime::error_report_path, AppRuntime::host_profile, AppRuntime::log_format, AppRuntime::log_path, AppRuntime::runtime_conf_path, and AppRuntime::state_path.
Referenced by load_app_runtime_from_artifact_native().
| int load_app_runtime_from_artifact_native | ( | const char * | artifact_dir, |
| AppRuntime * | app ) |
Loads runtime metadata for one app from an emitted artifact directory.
| artifact_dir | Artifact directory containing runtime metadata files. |
| app | Destination runtime record to populate. |
Definition at line 37 of file native_runtime_load.c.
References AppRuntime::app_id, AppRuntime::app_root, AppRuntime::artifact_dir, AppRuntime::base_path, AppRuntime::build_dir, AppRuntime::compiled_entrypoint, current_working_directory(), AppRuntime::debug, AppRuntime::error_report_path, free_loaded_app_runtime_fields(), AppRuntime::host_profile, json_find_string(), json_find_string_in_section(), AppRuntime::log_format, AppRuntime::log_path, path_dirname(), path_exists(), path_join(), pharos_runtime_load_strdup, read_file_text(), resolve_relative_to(), AppRuntime::state_path, and streq().
Referenced by add_runtime_app_native(), handle_native_runtime_app_command(), load_app_runtime_for_single_app(), and prepare_finalized_app_from_config().