Lines Matching full:metadata
29 #include "model/metadata.hpp"
65 /// This exists so that the getters in metadata can return references instead
297 /// \return A metadata tree. This object is statically allocated so it is
328 throw model::error(F("Unknown metadata property %s") % key); in lookup_rw()
330 throw model::error(F("Invalid value for metadata property %s: %s") % in lookup_rw()
352 throw model::error(F("Unknown metadata property %s") % key); in set()
354 throw model::error(F("Invalid value for metadata property %s: %s") % in set()
363 /// Internal implementation of the metadata class.
364 struct model::metadata::impl : utils::noncopyable {
365 /// Metadata properties.
370 /// \param props_ Metadata properties of the test.
392 /// \param props Metadata properties of the test.
393 model::metadata::metadata(const utils::config::tree& props) : in metadata() function in model::metadata
400 model::metadata::~metadata(void) in ~metadata()
405 /// Applies a set of overrides to this metadata object.
410 /// \return A new metadata object with the combination.
411 model::metadata
412 model::metadata::apply_overrides(const metadata& overrides) const in apply_overrides()
414 return metadata(_pimpl->props.combine(overrides._pimpl->props)); in apply_overrides()
422 model::metadata::allowed_architectures(void) const in allowed_architectures()
438 model::metadata::allowed_platforms(void) const in allowed_platforms()
450 /// Returns all the user-defined metadata properties.
454 model::metadata::custom(void) const in custom()
464 model::metadata::description(void) const in description()
478 model::metadata::execenv(void) const in execenv()
492 model::metadata::execenv_jail_params(void) const in execenv_jail_params()
508 model::metadata::has_cleanup(void) const in has_cleanup()
522 model::metadata::has_execenv(void) const in has_execenv()
534 model::metadata::is_exclusive(void) const in is_exclusive()
548 model::metadata::required_configs(void) const in required_configs()
564 model::metadata::required_disk_space(void) const in required_disk_space()
578 model::metadata::required_files(void) const in required_files()
592 model::metadata::required_memory(void) const in required_memory()
606 model::metadata::required_kmods(void) const in required_kmods()
622 model::metadata::required_programs(void) const in required_programs()
636 model::metadata::required_user(void) const in required_user()
651 model::metadata::timeout(void) const in timeout()
661 /// Externalizes the metadata to a set of key/value textual pairs.
663 /// \return A key/value representation of the metadata.
665 model::metadata::to_properties(void) const in to_properties()
678 model::metadata::operator==(const metadata& other) const in operator ==()
690 model::metadata::operator!=(const metadata& other) const in operator !=()
703 model::operator<<(std::ostream& output, const metadata& object) in operator <<()
705 output << "metadata{"; in operator <<()
728 /// Whether we have created a metadata object or not.
741 impl(const model::metadata& base) : in impl()
757 model::metadata_builder::metadata_builder(const model::metadata& base) : in metadata_builder()
1107 /// Sets a metadata property by name from its textual representation.
1122 throw model::format_error(F("Unknown metadata property %s") % key); in set_string()
1125 F("Invalid value for metadata property %s: %s") % key % e.what()); in set_string()
1146 /// Creates a new metadata object.
1151 /// same builder to construct different metadata objects, and this could have
1154 /// \return The constructed metadata object.
1155 model::metadata
1161 return metadata(_pimpl->props); in build()