|
| const char * | action_to_string (WarningAction a) |
| |
| AtomicWriteResult | atomic_create_directory (const std::string &path) |
| |
| AtomicWriteResult | atomic_update_symlink (const std::string &link_path, const std::string &target) |
| |
| AtomicWriteResult | atomic_write_file (const std::string &path, const std::string &content) |
| |
| AtomicWriteResult | atomic_write_file (const std::string &path, const std::vector< uint8_t > &content) |
| |
| const char * | binding_mode_to_string (BindingMode m) |
| |
| CollectResult | collect_directory_entries (const std::string &dir_path) |
| |
| CompositionResult | compose_contract (const CompositionInputs &inputs) |
| |
| HashResult | compute_sha256 (const std::string &file_path) |
| |
| HashResult | compute_sha256 (const std::vector< uint8_t > &data) |
| |
| bool | copy_file (const std::string &src, const std::string &dst) |
| |
| PackResult | create_deterministic_archive (const std::vector< TarEntry > &entries) |
| |
| bool | create_directories (const std::string &path) |
| |
| std::unordered_map< std::string, std::string > | create_warning_fields (const std::vector< WarningObject > &warnings) |
| |
| const char * | critical_error_to_string (CriticalError e) |
| |
| ManifestDecodeResult | decode_manifest_tlv (const std::vector< uint8_t > &data, std::optional< size_t > expected_total_size=std::nullopt) |
| |
| std::vector< Capability > | derive_capabilities_from_permissions (const std::vector< std::string > &permissions) |
| |
| std::optional< Capability > | derive_capability (const std::string &operation, const std::string &resource) |
| |
| Capability | derive_capability (const std::string &permission, WarningCollector &warnings) |
| |
| std::optional< std::string > | derive_enforcement (const std::string &capability_key, const HostProfile &profile) |
| |
| EnforcementResult | derive_enforcement (const std::vector< std::string > &filesystem_permissions, const std::vector< std::string > &network_permissions, const HostProfile &profile, WarningCollector &warnings) |
| |
| void | expand_environment_map (std::unordered_map< std::string, std::string > &environment, WarningCollector &warnings) |
| |
| ExpansionResult | expand_placeholders (const std::string &input, const std::unordered_map< std::string, std::string > &environment, const std::string &source_path, WarningCollector &warnings) |
| |
| std::string | expand_placeholders (const std::string &input, const std::unordered_map< std::string, std::string > &environment, std::vector< std::string > &missing_vars) |
| |
| ExpansionWithLimitsResult | expand_placeholders_with_limits (const std::string &input, const std::unordered_map< std::string, std::string > &environment, std::vector< std::string > &missing_vars, size_t max_size, size_t max_placeholders) |
| |
| std::vector< std::string > | expand_string_vector (const std::vector< std::string > &input, const std::unordered_map< std::string, std::string > &environment, const std::string &source_path_prefix, WarningCollector &warnings) |
| |
| std::vector< std::string > | expand_vector (const std::vector< std::string > &input, const std::unordered_map< std::string, std::string > &environment, std::vector< std::string > &missing_vars) |
| |
| UnpackResult | extract_archive_safe (const std::string &archive_path, const std::string &staging_dir) |
| |
| UnpackResult | extract_archive_safe (const std::vector< uint8_t > &archive_data, const std::string &staging_dir) |
| |
| FetchResult | fetch_https (const std::string &url) |
| |
| std::string | generate_uuid () |
| |
| std::unordered_map< std::string, std::string > | get_all_env () |
| |
| HostProfile | get_builtin_empty_profile () |
| |
| Platform | get_current_platform () |
| |
| std::string | get_current_timestamp () |
| |
| std::optional< std::string > | get_env (const std::string &name) |
| |
| std::string | get_filename (const std::string &path) |
| |
| std::string | get_library_path_env_key () |
| |
| std::string | get_parent_directory (const std::string &path) |
| |
| char | get_path_separator () |
| |
| WarningAction | get_warning_action (const HostProfile &profile, const std::string &warning_key) |
| |
| WarningAction | get_warning_action (const HostProfile &profile, Warning warning) |
| |
| NakPackInfo | inspect_nak_pack (const std::string &pack_path) |
| |
| NakPackInfo | inspect_nak_pack (const std::vector< uint8_t > &archive_data) |
| |
| NapPackageInfo | inspect_nap_package (const std::string &package_path) |
| |
| NapPackageInfo | inspect_nap_package (const std::vector< uint8_t > &archive_data) |
| |
| AppInstallResult | install_app (const std::string &source, const AppInstallOptions &options) |
| |
| NakInstallResult | install_nak (const std::string &source, const NakInstallOptions &options) |
| |
| NakInstallResult | install_nak_pack (const std::string &pack_path, const NakInstallOptions &options) |
| |
| AppInstallResult | install_nap_package (const std::string &package_path, const AppInstallOptions &options) |
| |
| bool | is_directory (const std::string &path) |
| |
| bool | is_override_permitted (const std::string &target, const HostProfile &profile) |
| |
| bool | is_regular_file (const std::string &path) |
| |
| bool | is_symlink (const std::string &path) |
| |
| std::string | join_path (const std::string &base, const std::string &rel) |
| |
| std::vector< std::string > | list_directory (const std::string &path) |
| |
| PinnedNakLoadResult | load_pinned_nak (const NakPin &pin, const Manifest &manifest, const HostProfile &profile, const std::string &nah_root, WarningCollector &warnings) |
| |
| ManifestBuilder | manifest () |
| |
| PathResult | normalize_under_root (const std::string &root, const std::string &relative_path, bool allow_absolute=false) |
| |
| const char * | override_mode_to_string (OverrideMode m) |
| |
| PackResult | pack_directory (const std::string &dir_path) |
| |
| PackResult | pack_nak (const std::string &dir_path) |
| |
| PackResult | pack_nap (const std::string &dir_path) |
| |
| InstallRecordValidation | parse_app_install_record (const std::string &toml, AppInstallRecord &out) |
| |
| AppInstallRecordParseResult | parse_app_install_record_full (const std::string &toml_str, const std::string &source_path="") |
| |
| ParsedReference | parse_artifact_reference (const std::string &reference) |
| |
| std::optional< AssetExportParts > | parse_asset_export (const std::string &value) |
| |
| std::optional< BindingMode > | parse_binding_mode (const std::string &s) |
| |
| HostProfileValidation | parse_host_profile (const std::string &toml, HostProfileRecord &out) |
| |
| HostProfileParseResult | parse_host_profile_full (const std::string &toml_str, const std::string &source_path="") |
| |
| ManifestFieldsResult | parse_manifest (const std::vector< uint8_t > &blob) |
| |
| ManifestParseResult | parse_manifest_blob (const std::vector< uint8_t > &blob) |
| |
| NakInstallValidation | parse_nak_install_record (const std::string &toml, NakInstallRecord &out) |
| |
| NakInstallRecordParseResult | parse_nak_install_record_full (const std::string &toml_str, const std::string &source_path="") |
| |
| NakPackManifestParseResult | parse_nak_pack_manifest (const std::string &toml_str) |
| |
| std::optional< OverrideMode > | parse_override_mode (const std::string &s) |
| |
| OverridesParseResult | parse_overrides_file (const std::string &content, const std::string &path) |
| |
| std::optional< ParsedPermission > | parse_permission_string (const std::string &permission) |
| |
| std::optional< VersionRange > | parse_range (const std::string &str) |
| | Parse a version range string.
|
| |
| std::optional< TrustState > | parse_trust_state (const std::string &s) |
| |
| std::optional< Version > | parse_version (const std::string &str) |
| | Parse a SemVer 2.0.0 version string.
|
| |
| std::optional< WarningAction > | parse_warning_action (const std::string &s) |
| |
| std::optional< Warning > | parse_warning_key (const std::string &key) |
| |
| bool | path_exists (const std::string &path) |
| |
| SectionReadResult | read_manifest_section (const std::string &binary_path) |
| |
| SectionReadResult | read_manifest_section (const std::vector< uint8_t > &binary_data) |
| |
| std::optional< std::string > | read_symlink (const std::string &path) |
| |
| bool | remove_directory (const std::string &path) |
| |
| bool | remove_file (const std::string &path) |
| |
| bool | satisfies (const Version &version, const ComparatorSet &set) |
| | Check if a version satisfies a comparator set (all constraints)
|
| |
| bool | satisfies (const Version &version, const Constraint &constraint) |
| | Check if a version satisfies a single constraint.
|
| |
| bool | satisfies (const Version &version, const VersionRange &range) |
| | Check if a version satisfies a version range (any set)
|
| |
| std::vector< NakRegistryEntry > | scan_nak_registry (const std::string &nah_root) |
| |
| NakSelectionResult | select_nak_for_install (const Manifest &manifest, const HostProfile &profile, const std::vector< NakRegistryEntry > ®istry, WarningCollector &warnings) |
| |
| std::string | serialize_contract_json (const ContractEnvelope &envelope, bool include_trace=false, std::optional< CriticalError > critical_error=std::nullopt) |
| |
| std::string | to_portable_path (const std::string &path) |
| |
| const char * | trust_state_to_string (TrustState s) |
| |
| UninstallResult | uninstall_app (const std::string &nah_root, const std::string &app_id, const std::string &version="") |
| |
| UninstallResult | uninstall_nak (const std::string &nah_root, const std::string &nak_id, const std::string &version) |
| |
| bool | validate_app_install_record (const AppInstallRecord &record, std::string &error) |
| |
| PathValidation | validate_extraction_path (const std::string &entry_path, const std::string &extraction_root) |
| |
| bool | validate_nak_install_record (const NakInstallRecord &record, std::string &error) |
| |
| VerifyResult | verify_app (const std::string &nah_root, const std::string &app_id, const std::string &version="") |
| |
| Sha256VerifyResult | verify_sha256 (const std::vector< uint8_t > &data, const std::string &expected_hex) |
| |
| bool | version_allowed_by_profile (const std::string &version, const HostProfile &profile) |
| |
| bool | version_matches_pattern (const std::string &version, const std::string &pattern) |
| |
| const char * | warning_to_string (Warning w) |
| |