Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
Loading...
Searching...
No Matches
native_ops_bridge.h File Reference

Declares native bridge helpers for Pharos ops commands. More...

Go to the source code of this file.

Functions

Native ops bridge helpers
char * build_native_app_doctor_report_local_json (const char *repo_root, const ServeConfig *config, const char *artifact_dir, const AppRuntime *app, const char *host_target)
 Builds a JSON doctor report for one app using native ops bridges.
char * build_native_app_drift_report_local_json (const char *repo_root, const ServeConfig *config, const AppRuntime *app)
 Builds a JSON drift report for one app using native ops bridges.
char * build_native_app_deploy_check_report_local_json (const char *repo_root, const ServeConfig *config, const char *artifact_dir, const AppRuntime *app, const char *host_target)
 Builds a JSON deploy-check report for one app using native ops bridges.

Detailed Description

Declares native bridge helpers for Pharos ops commands.

Definition in file native_ops_bridge.h.

Function Documentation

◆ build_native_app_deploy_check_report_local_json()

char * build_native_app_deploy_check_report_local_json ( const char * repo_root,
const ServeConfig * config,
const char * artifact_dir,
const AppRuntime * app,
const char * host_target )

Builds a JSON deploy-check report for one app using native ops bridges.

Parameters
repo_rootRepository root used to locate supporting assets.
configActive serve configuration.
artifact_dirActive artifact directory for the app.
appFinalized app runtime being inspected.
host_targetHost target label to report.
Returns
Newly allocated JSON report text, or NULL on failure.

Definition at line 860 of file native_ops_bridge.c.

References AppRuntime::app_id, build_native_app_doctor_report_local_json(), json_string_dup_native(), native_cross_deb_packaging_available(), and native_ops_strdup.

Referenced by handle_native_deploy_check_ops_command().

◆ build_native_app_doctor_report_local_json()

char * build_native_app_doctor_report_local_json ( const char * repo_root,
const ServeConfig * config,
const char * artifact_dir,
const AppRuntime * app,
const char * host_target )

Builds a JSON doctor report for one app using native ops bridges.

Parameters
repo_rootRepository root used to locate supporting assets.
configActive serve configuration.
artifact_dirActive artifact directory for the app.
appFinalized app runtime being inspected.
host_targetHost target label to report.
Returns
Newly allocated JSON report text, or NULL on failure.

Definition at line 790 of file native_ops_bridge.c.

References AppRuntime::app_id, build_native_app_config_report_local_json(), build_native_app_runtime_report_json(), build_runtime_summary_json_from_app(), capture_migrate_verify_report_json(), json_string_dup_native(), native_default_backend(), native_ops_strdup, and streq().

Referenced by build_native_app_deploy_check_report_local_json(), and handle_native_runtime_app_command().

◆ build_native_app_drift_report_local_json()

char * build_native_app_drift_report_local_json ( const char * repo_root,
const ServeConfig * config,
const AppRuntime * app )

Builds a JSON drift report for one app using native ops bridges.

Parameters
repo_rootRepository root used to locate supporting assets.
configActive serve configuration.
appFinalized app runtime being inspected.
Returns
Newly allocated JSON report text, or NULL on failure.

Definition at line 833 of file native_ops_bridge.c.

References AppRuntime::app_id, capture_migrate_verify_report_json(), json_string_dup_native(), native_default_backend(), native_ops_strdup, and streq().

Referenced by handle_native_drift_check_ops_command().