Top | ![]() |
![]() |
![]() |
![]() |
Modulemd.ModuleStreamV3Modulemd.ModuleStreamV3 — The data to represent a stream of a module as described by a modulemd YAML document of version 3. |
ModulemdModuleStreamV3 * modulemd_module_stream_v3_new (const gchar *module_name
,const gchar *module_stream
);
module_name |
The name of this module. |
[in][nullable] |
module_stream |
The name of this module stream. |
[in][nullable] |
A newly-allocated ModulemdModuleStreamV3 object, with the specified module and stream names, if provided.
[transfer full]
Since: 2.10
void modulemd_module_stream_v3_set_arch (ModulemdModuleStreamV3 *self
,const gchar *arch
);
Set the module artifact architecture.
self |
This ModulemdModuleStreamV3 object. |
[in] |
arch |
The module artifact architecture. |
[in] |
Since: 2.10
const gchar *
modulemd_module_stream_v3_get_arch (ModulemdModuleStreamV3 *self
);
Since: 2.10
void modulemd_module_stream_v3_set_buildopts (ModulemdModuleStreamV3 *self
,ModulemdBuildopts *buildopts
);
Set build options for this module's components.
self |
This ModulemdModuleStreamV3 object. |
[in] |
buildopts |
A ModulemdBuildopts object describing build options that apply globally to components in this module. |
[in][transfer none] |
Since: 2.10
ModulemdBuildopts *
modulemd_module_stream_v3_get_buildopts
(ModulemdModuleStreamV3 *self
);
Since: 2.10
void modulemd_module_stream_v3_set_community (ModulemdModuleStreamV3 *self
,const gchar *community
);
Set the module community website address.
self |
This ModulemdModuleStreamV3 object. |
[in] |
community |
The upstream community website for this module. |
[in] |
Since: 2.10
const gchar *
modulemd_module_stream_v3_get_community
(ModulemdModuleStreamV3 *self
);
Since: 2.10
void modulemd_module_stream_v3_set_description (ModulemdModuleStreamV3 *self
,const gchar *description
);
Set the module description.
self |
This ModulemdModuleStreamV3 object. |
[in] |
description |
The untranslated description of this module. |
[in][nullable] |
Since: 2.10
const gchar * modulemd_module_stream_v3_get_description (ModulemdModuleStreamV3 *self
,const gchar *locale
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
locale |
The name of the locale to use when translating
the string. If NULL, it will determine the locale with a system call to
|
[in][nullable] |
The module description, translated to the requested locale if available. Translation information is managed by the ModulemdTranslation and ModulemdTranslationEntry objects.
[transfer none]
Since: 2.10
void modulemd_module_stream_v3_set_documentation (ModulemdModuleStreamV3 *self
,const gchar *documentation
);
Set the module documentation website address.
self |
This ModulemdModuleStreamV3 object. |
[in] |
documentation |
The upstream documentation website for this module. |
[in] |
Since: 2.10
const gchar *
modulemd_module_stream_v3_get_documentation
(ModulemdModuleStreamV3 *self
);
Since: 2.10
void modulemd_module_stream_v3_set_summary (ModulemdModuleStreamV3 *self
,const gchar *summary
);
Set the module summary.
self |
This ModulemdModuleStreamV3 object. |
[in] |
summary |
The untranslated summary of this module. |
[in][nullable] |
Since: 2.10
const gchar * modulemd_module_stream_v3_get_summary (ModulemdModuleStreamV3 *self
,const gchar *locale
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
locale |
The name of the locale to use when translating
the string. If NULL, it will determine the locale with a system call to
|
[in][nullable] |
The module summary, translated to the requested locale if available. Translation information is managed by the ModulemdTranslation and ModulemdTranslationEntry objects.
[transfer none]
Since: 2.10
void modulemd_module_stream_v3_set_tracker (ModulemdModuleStreamV3 *self
,const gchar *tracker
);
Set the module bug tracker website address.
self |
This ModulemdModuleStreamV3 object. |
[in] |
tracker |
The upstream bug tracker website for this module. |
[in] |
Since: 2.10
const gchar *
modulemd_module_stream_v3_get_tracker (ModulemdModuleStreamV3 *self
);
Since: 2.10
void modulemd_module_stream_v3_set_platform (ModulemdModuleStreamV3 *self
,const gchar *platform
);
Set the The buildroot and runtime platform for this module.
self |
This ModulemdModuleStreamV3 object. |
[in] |
platform |
The buildroot and runtime platform for this module. |
[in] |
Since: 2.10
const gchar *
modulemd_module_stream_v3_get_platform
(ModulemdModuleStreamV3 *self
);
Since: 2.10
ModulemdObsoletes *
modulemd_module_stream_v3_get_obsoletes_resolved
(ModulemdModuleStreamV3 *self
);
The ModulemdObsoletes information associated with this object. If the associated obsoletes has reset attribute set, this function doesn't return it. From outside obsoletes with reset looks like there is no obsoletes set for this stream. Every obsoletes (even with reset) can be accessed from the streams module.
[transfer none]
Since: 2.10
void modulemd_module_stream_v3_add_component (ModulemdModuleStreamV3 *self
,ModulemdComponent *component
);
Add a component definition to the module.
self |
This ModulemdModuleStreamV3 object. |
[in] |
component |
A ModulemdComponent to be added to this module stream. |
[in][transfer none] |
Since: 2.10
void modulemd_module_stream_v3_remove_module_component (ModulemdModuleStreamV3 *self
,const gchar *component_name
);
Remove a component from this module stream.
self |
This ModulemdModuleStreamV3 object. |
[in] |
component_name |
The name of the component to remove from the module stream. |
[in] |
Since: 2.10
void
modulemd_module_stream_v3_clear_module_components
(ModulemdModuleStreamV3 *self
);
Remove all module components from this module stream.
void modulemd_module_stream_v3_remove_rpm_component (ModulemdModuleStreamV3 *self
,const gchar *component_name
);
Remove a component from this module stream.
self |
This ModulemdModuleStreamV3 object. |
[in] |
component_name |
The name of the component to remove from the module stream. |
[in] |
Since: 2.10
void
modulemd_module_stream_v3_clear_rpm_components
(ModulemdModuleStreamV3 *self
);
Remove all RPM components from this module stream.
GStrv
modulemd_module_stream_v3_get_module_component_names_as_strv
(ModulemdModuleStreamV3 *self
);
[rename-to modulemd_module_stream_v3_get_module_component_names]
Since: 2.10
GStrv
modulemd_module_stream_v3_get_rpm_component_names_as_strv
(ModulemdModuleStreamV3 *self
);
[rename-to modulemd_module_stream_v3_get_rpm_component_names]
Since: 2.10
ModulemdComponentModule * modulemd_module_stream_v3_get_module_component (ModulemdModuleStreamV3 *self
,const gchar *component_name
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
component_name |
The name of the component to retrieve. |
[in] |
Since: 2.10
ModulemdComponentRpm * modulemd_module_stream_v3_get_rpm_component (ModulemdModuleStreamV3 *self
,const gchar *component_name
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
component_name |
The name of the component to retrieve. |
[in] |
Since: 2.10
void modulemd_module_stream_v3_add_content_license (ModulemdModuleStreamV3 *self
,const gchar *license
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
license |
A license under which one or more of the components of this module stream are distributed. |
[in] |
Since: 2.10
void modulemd_module_stream_v3_add_module_license (ModulemdModuleStreamV3 *self
,const gchar *license
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
license |
A license under which this module stream is distributed. |
[in] |
Since: 2.10
void modulemd_module_stream_v3_remove_content_license (ModulemdModuleStreamV3 *self
,const gchar *license
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
license |
A license to remove from the list. Has no effect if the license is not present. |
[in] |
Since: 2.10
void modulemd_module_stream_v3_remove_module_license (ModulemdModuleStreamV3 *self
,const gchar *license
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
license |
A license to remove from the list. Has no effect if the license is not present. |
[in] |
Since: 2.10
void
modulemd_module_stream_v3_clear_content_licenses
(ModulemdModuleStreamV3 *self
);
Remove all content licenses.
Since: 2.10
void
modulemd_module_stream_v3_clear_module_licenses
(ModulemdModuleStreamV3 *self
);
Remove all module licenses.
Since: 2.10
GStrv
modulemd_module_stream_v3_get_content_licenses_as_strv
(ModulemdModuleStreamV3 *self
);
[rename-to modulemd_module_stream_v3_get_content_licenses]
An ordered GStrv list of licenses under which one or more components of this module stream are released.
[transfer full]
Since: 2.10
GStrv
modulemd_module_stream_v3_get_module_licenses_as_strv
(ModulemdModuleStreamV3 *self
);
[rename-to modulemd_module_stream_v3_get_module_licenses]
An ordered GStrv list of licenses under which this module stream is released.
[transfer full]
Since: 2.10
void modulemd_module_stream_v3_add_profile (ModulemdModuleStreamV3 *self
,ModulemdProfile *profile
);
Adds a profile definition to this module stream.
self |
This ModulemdModuleStreamV3 object. |
[in] |
profile |
A ModulemdProfile for this module stream. |
[in][transfer none] |
Since: 2.10
void
modulemd_module_stream_v3_clear_profiles
(ModulemdModuleStreamV3 *self
);
Remove all profiles from this module stream.
Since: 2.10
GStrv
modulemd_module_stream_v3_get_profile_names_as_strv
(ModulemdModuleStreamV3 *self
);
[rename-to modulemd_module_stream_v3_get_profile_names]
Since: 2.10
ModulemdProfile * modulemd_module_stream_v3_get_profile (ModulemdModuleStreamV3 *self
,const gchar *profile_name
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
profile_name |
The name of a profile to retrieve. |
[in] |
The requested profile definition if present in the module stream. NULL otherwise.
[transfer none]
Since: 2.10
GPtrArray * modulemd_module_stream_v3_search_profiles (ModulemdModuleStreamV3 *self
,const gchar *profile_pattern
);
self |
This ModulemdModuleStreamV3 object. |
|
profile_pattern |
A globbing pattern to locate one or more profiles in this ModulemdModuleStreamV3 object. The names will be compared using fnmatch(3). |
[nullable] |
The list of
ModulemdProfile objects whose name matched profile_pattern
. This function
cannot fail, but it may return a zero-length list if no matches were found.
The returned profiles will be sorted alphabetically by profile name.
[transfer container][element-type ModulemdProfile]
void modulemd_module_stream_v3_add_rpm_api (ModulemdModuleStreamV3 *self
,const gchar *rpm
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
rpm |
The name of a binary RPM present in this module that is considered stable public API. |
[in] |
Since: 2.10
void modulemd_module_stream_v3_remove_rpm_api (ModulemdModuleStreamV3 *self
,const gchar *rpm
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
rpm |
A binary RPM name to remove from the list of stable public API. |
[in] |
Since: 2.10
void
modulemd_module_stream_v3_clear_rpm_api
(ModulemdModuleStreamV3 *self
);
Remove all RPMs from the list of stable public API.
Since: 2.10
GStrv
modulemd_module_stream_v3_get_rpm_api_as_strv
(ModulemdModuleStreamV3 *self
);
[rename-to modulemd_module_stream_v3_get_rpm_api]
An ordered GStrv list of binary RPM names that form the public API of this module stream.
[transfer full]
Since: 2.10
void modulemd_module_stream_v3_add_rpm_artifact (ModulemdModuleStreamV3 *self
,const gchar *nevr
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
nevr |
The NEVR of a binary RPM present in this module stream. |
[in] |
Since: 2.10
void modulemd_module_stream_v3_remove_rpm_artifact (ModulemdModuleStreamV3 *self
,const gchar *nevr
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
nevr |
An RPM NEVR to remove from the list of artifacts. |
[in] |
Since: 2.10
void
modulemd_module_stream_v3_clear_rpm_artifacts
(ModulemdModuleStreamV3 *self
);
Remove all NPM NEVRs from the list of artifacts.
Since: 2.10
GStrv
modulemd_module_stream_v3_get_rpm_artifacts_as_strv
(ModulemdModuleStreamV3 *self
);
[rename-to modulemd_module_stream_v3_get_rpm_artifacts]
Since: 2.10
void modulemd_module_stream_v3_set_rpm_artifact_map_entry (ModulemdModuleStreamV3 *self
,ModulemdRpmMapEntry *entry
,const gchar *digest
,const gchar *checksum
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
entry |
The RPM map entry to save to the stream. |
[in] |
digest |
A string representing the digest algorithm used to generate
the |
[in] |
checksum |
An RPM artifact checksum. |
[in] |
Since: 2.10
ModulemdRpmMapEntry * modulemd_module_stream_v3_get_rpm_artifact_map_entry (ModulemdModuleStreamV3 *self
,const gchar *digest
,const gchar *checksum
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
digest |
A string representing the digest algorithm used to generate
the |
[in] |
checksum |
An RPM artifact checksum. |
[in] |
The ModulemdRpmMapEntry object associated with
the provided checksum
generated by the provided digest
.
[transfer none]
Since: 2.10
void modulemd_module_stream_v3_add_rpm_filter (ModulemdModuleStreamV3 *self
,const gchar *rpm
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
rpm |
The name of a binary RPM to filter out of this module stream. |
[in] |
Since: 2.10
void modulemd_module_stream_v3_remove_rpm_filter (ModulemdModuleStreamV3 *self
,const gchar *rpm
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
rpm |
A binary RPM name to remove from the filter list. |
[in] |
Since: 2.10
void
modulemd_module_stream_v3_clear_rpm_filters
(ModulemdModuleStreamV3 *self
);
Remove all RPMs from the filter list.
Since: 2.10
GStrv
modulemd_module_stream_v3_get_rpm_filters_as_strv
(ModulemdModuleStreamV3 *self
);
[rename-to modulemd_module_stream_v3_get_rpm_filters]
An ordered GStrv list of binary RPM names that are filtered out of this module stream.
[transfer full]
Since: 2.10
void modulemd_module_stream_v3_add_buildtime_requirement (ModulemdModuleStreamV3 *self
,const gchar *module_name
,const gchar *module_stream
);
Add a build-time dependency for this module.
self |
This ModulemdModuleStreamV3 object. |
[in] |
module_name |
The name of the module to depend on. |
[in] |
module_stream |
The name of the module stream to depend on. |
[in] |
Since: 2.10
void modulemd_module_stream_v3_add_runtime_requirement (ModulemdModuleStreamV3 *self
,const gchar *module_name
,const gchar *module_stream
);
Add a runtime dependency for this module.
self |
This ModulemdModuleStreamV3 object. |
[in] |
module_name |
The name of the module to depend on. |
[in] |
module_stream |
The name of the module stream to depend on. |
[in] |
Since: 2.10
void modulemd_module_stream_v3_remove_buildtime_requirement (ModulemdModuleStreamV3 *self
,const gchar *module_name
);
Remove a build-time dependency for this module.
self |
This ModulemdModuleStreamV3 object. |
[in] |
module_name |
The name of the module to be removed. |
[in] |
Since: 2.10
void modulemd_module_stream_v3_remove_runtime_requirement (ModulemdModuleStreamV3 *self
,const gchar *module_name
);
Remove a runtime dependency for this module.
self |
This ModulemdModuleStreamV3 object. |
[in] |
module_name |
The name of the module to be removed. |
[in] |
Since: 2.10
void
modulemd_module_stream_v3_clear_buildtime_requirements
(ModulemdModuleStreamV3 *self
);
Remove all buildtime dependencies for this module.
Since: 2.10
void
modulemd_module_stream_v3_clear_runtime_requirements
(ModulemdModuleStreamV3 *self
);
Remove all runtime dependencies for this module.
Since: 2.10
GStrv
modulemd_module_stream_v3_get_buildtime_modules_as_strv
(ModulemdModuleStreamV3 *self
);
[rename-to modulemd_module_stream_v3_get_buildtime_modules]
An ordered GStrv list of module names that this module depends on at build-time.
[transfer full]
Since: 2.10
GStrv
modulemd_module_stream_v3_get_runtime_modules_as_strv
(ModulemdModuleStreamV3 *self
);
[rename-to modulemd_module_stream_v3_get_runtime_modules]
An ordered GStrv list of module names that this module depends on at runtime.
[transfer full]
Since: 2.10
const gchar * modulemd_module_stream_v3_get_buildtime_requirement_stream (ModulemdModuleStreamV3 *self
,const gchar *module_name
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
module_name |
The name of the module this module depends on. |
[in] |
The name of the stream matching this module name in the build-time dependencies.
[transfer none]
Since: 2.10
const gchar * modulemd_module_stream_v3_get_runtime_requirement_stream (ModulemdModuleStreamV3 *self
,const gchar *module_name
);
self |
This ModulemdModuleStreamV3 object. |
[in] |
module_name |
The name of the module this module depends on. |
[in] |
The name of the stream matching this module name in the runtime dependencies.
[transfer none]
Since: 2.10
GStrv modulemd_module_stream_v3_get_buildtime_requirement_streams_as_strv (ModulemdModuleStreamV3 *self
,const gchar *module_name
);
[rename-to modulemd_module_stream_v3_get_buildtime_requirement_streams]
self |
This ModulemdModuleStreamV3 object. |
[in] |
module_name |
The name of the module this module depends on. |
[in] |
NULL if module_name
is not a build-time dependency
of self
, else a GStrv list containing a single element that is the name of
the stream matching this module name in the build-time dependencies.
[transfer full]
Since: 2.10
GStrv modulemd_module_stream_v3_get_runtime_requirement_streams_as_strv (ModulemdModuleStreamV3 *self
,const gchar *module_name
);
[rename-to modulemd_module_stream_v3_get_runtime_requirement_streams]
self |
This ModulemdModuleStreamV3 object. |
[in] |
module_name |
The name of the module this module depends on. |
[in] |
NULL if module_name
is not a run-time dependency
of self
, else a GStrv list containing a single element that is the name of
the stream matching this module name in the run-time dependencies.
[transfer full]
Since: 2.10
void modulemd_module_stream_v3_set_xmd (ModulemdModuleStreamV3 *self
,GVariant *xmd
);
Sets the eXtensible MetaData (XMD) for this module. XMD is arbitrary YAML data that will be set and returned as-is (with the exception that the ordering of mapping keys is not defined). Useful for carrying private data.
This function assumes ownership of the XMD GVariant and thus should not be freed by the caller.
self |
This ModulemdModuleStreamV3 object. |
[in] |
xmd |
A GVariant representing arbitrary YAML. |
[in][transfer none] |
Since: 2.10
GVariant *
modulemd_module_stream_v3_get_xmd (ModulemdModuleStreamV3 *self
);
#define MODULEMD_TYPE_MODULE_STREAM_V3 (modulemd_module_stream_v3_get_type ())
“arch”
property“arch” gchar *
The architecture of the produced artifacts.
Owner: ModulemdModuleStreamV3
Flags: Read / Write / Construct
Default value: NULL
“buildopts”
property“buildopts” ModulemdBuildopts *
Build options for module components.
Owner: ModulemdModuleStreamV3
Flags: Read / Write
“community”
property“community” gchar *
The website address of the upstream community for this module.
Owner: ModulemdModuleStreamV3
Flags: Read / Write / Construct
Default value: NULL
“documentation”
property“documentation” gchar *
The website address of the upstream documentation for this module.
Owner: ModulemdModuleStreamV3
Flags: Read / Write / Construct
Default value: NULL
“platform”
property“platform” gchar *
The buildroot and runtime platform for this module.
Owner: ModulemdModuleStreamV3
Flags: Read / Write / Construct
Default value: NULL
“tracker”
property“tracker” gchar *
The website address of the upstream bug tracker for this module.
Owner: ModulemdModuleStreamV3
Flags: Read / Write / Construct
Default value: NULL