|
| std::string | replace_all (std::string text, const std::string &from, const std::string &to) |
| |
| std::string | first_word_basename (const std::string &command) |
| |
| bool | in_unit (const LaunchEntry &e, const LaunchUnit &unit) |
| |
| const Application * | application (const LaunchUnit &unit, const LaunchEntry &e) |
| |
| bool | requires_intervehicle (const Application &app) |
| |
| std::string | when_command (const std::string &when) |
| | A when: condition as a shell command: "A =~ REGEX", "A == B", "A != B", or a command whose exit status decides. Kept free of '[' and ']', which end goby_launch's [directives].
|
| |
| std::string | escape_double_quoted (const std::string &text) |
| |
| bool | is_gobyd (const LaunchEntry &e) |
| |
| std::vector< std::string > | expand_auto (const std::vector< std::string > &given, const std::vector< std::string > &derived) |
| |
| std::string | expand_variables (const std::string &text, const std::map< std::string, std::string > &defines, std::set< std::string > &unset) |
| | Replace ${NAME} and ${NAME:-default} from defines, then the environment.
|
| |
| bool | load_yaml_text (const std::string &text, const std::string &path, const std::string &code, const std::string &location, Issues &issues, YAML::Node &yaml) |
| |
| bool | load_yaml (const std::string &path, const std::string &code, const std::string &location, Issues &issues, YAML::Node &yaml) |
| |
| std::vector< std::string > | read_list (const YAML::Node &node) |
| |
| bool | layer_from_name (const std::string &name, Layer &layer) |
| |
| std::regex | glob_regex (const std::string &glob) |
| |
| bool | eval_numeric (const std::string &text, const std::vector< std::uint32_t > &instances, std::set< std::uint32_t > &values, std::string &error) |
| | Evaluate a bind's numeric: "5", "151-153", or arithmetic with ${instance}, once per instance given.
|
| |
| std::vector< std::shared_ptr< Bind > > | read_binds (const YAML::Node &node, const std::string &location, Issues &issues) |
| |
| Application::Binder | make_binder (std::vector< std::shared_ptr< Bind > > binds, std::vector< std::uint32_t > instances) |
| |
| bool | valid_kill (const std::string &kill) |
| |
| KeyValues | read_env (const YAML::Node &node, const std::string &location, Issues &issues) |
| |
| SystemdSettings | read_systemd_settings (const YAML::Node &node, const std::string &location, Issues &issues) |
| |
| bool | read_launch (const YAML::Node &entry, RunRef &ref, Issues &issues) |
| |
| LaunchSettings | read_launch_settings (const YAML::Node &node, const std::string &location, Issues &issues) |
| |
| std::string | with_instance (std::string text, const std::vector< std::uint32_t > &instances) |
| |
| LaunchSettings | for_instance (LaunchSettings settings, const std::vector< std::uint32_t > &instances) |
| |
| PlatformSystemd | read_platform_systemd (const YAML::Node &node, const std::string &location, Issues &issues) |
| |
| SystemdSettings | for_instance (SystemdSettings settings, const std::vector< std::uint32_t > &instances) |
| |
| LaunchEntry | for_instance (LaunchEntry entry, const std::vector< std::uint32_t > &instances) |
| |
| std::vector< RunRef > | read_run (const YAML::Node &node, bool legacy, const std::string &location, Issues &issues) |
| |
| bool | read_applications (const YAML::Node &node, const std::string &location, std::vector< RunRef > &refs, Issues &issues) |
| | Reads the application list of a platform or module: run: (by application name) or the older interfaces: (by file)
|
| |
| std::string | declared_application (const std::string &path) |
| | The application an interface file declares, or "" if it is not one (generated interface files start with "application: <name>")
|
| |
| void | apply_necessity_overrides (const YAML::Node &node, Deployment &deployment, Issues &issues) |
| | Apply a deployment's necessity: list, which sets the necessity of the subscriptions it selects whatever the code said.
|
| |
| std::vector< std::string > | search_dirs (const std::string &deployment_path, const LoadParams ¶ms) |
| |
| GroupKey | group_key (const PubSubEntry &e) |
| |
| std::string | d2_quoted (const std::string &s) |
| |
| std::string | d2_tooltip (const std::string &s) |
| |
| void | html_escape (std::string &s, bool do_break_before_lt=true, bool do_break_after_commas=true) |
| |
| std::string | html_escaped (std::string s, bool break_before_lt=true, bool break_after_commas=true) |
| |
| std::string | dot_id (const std::string &s) |
| |
| std::string | dot_quoted (const std::string &s) |
| |
| std::string | short_group (const std::string &group) |
| |
| std::string | unit_name (const std::string &name) |
| |
| std::optional< bool > | evaluate_when (const std::string &when) |
| | A when: condition decided now, from the values -D and the environment gave the deployment; nullopt when it cannot be (a value left for the shell, or a command)
|
| |
| SystemdSettings | merged (const SystemdSettings &defaults, const SystemdSettings &own) |
| |
| std::string | exec_start (const std::string &command) |
| |
| std::string | substitute (std::string text, const std::map< std::string, std::string > &vars) |
| |
| Issue::Subject | subject (const Unmatched &u) |
| |
| std::string | describe (const PubSubEntry &e) |
| |