Top | ![]() |
![]() |
![]() |
![]() |
Modulemd.ModuleModulemd.Module — Collects all information about a module: all of its streams, defaults, etc. |
GStrv
modulemd_module_get_stream_names_as_strv
(ModulemdModule *self
);
[rename-to modulemd_module_get_stream_names]
Since: 2.6
gboolean modulemd_module_validate (ModulemdModule *self
,GError **error
);
self |
This ModulemdModule object. |
[in] |
error |
A GError containing the reason the object failed validation. NULL if the validation passed. |
[out] |
Since: 2.0
const gchar *
modulemd_module_get_module_name (ModulemdModule *self
);
Since: 2.0
GPtrArray *
modulemd_module_get_all_streams (ModulemdModule *self
);
A list of all available stream objects associated with this module. There may be multiple streams with the same name and different version and context. The order of items in this list is not guaranteed.
[transfer none][element-type ModulemdModuleStream]
Since: 2.0
GPtrArray * modulemd_module_get_streams_by_stream_name_as_list (ModulemdModule *self
,const gchar *stream_name
);
[rename-to modulemd_module_get_streams_by_stream_name]
A list of all available stream objects associated with a particular stream name, sorted highest to lowest by the version. The same version may have more than one associated context.
[transfer container][element-type ModulemdModuleStream]
Since: 2.0
ModulemdModuleStream * modulemd_module_get_stream_by_NSVC (ModulemdModule *self
,const gchar *stream_name
,guint64 version
,const gchar *context
);
modulemd_module_get_stream_by_NSVC
has been deprecated since version 2.2 and should not be used in newly-written code.
Use modulemd_module_get_stream_by_NSVCA()
instead.
self |
This ModulemdModule object. |
|
stream_name |
The name of the stream to retrieve. |
|
version |
The version of the stream to retrieve. |
|
context |
The context of the stream to retrieve. |
Since: 2.0
GPtrArray * modulemd_module_search_streams (ModulemdModule *self
,const gchar *stream_name
,guint64 version
,const gchar *context
,const gchar *arch
);
self |
This ModulemdModule object. |
|
stream_name |
The name of the stream to retrieve. |
|
version |
The version of the stream to retrieve. If set to zero, the version is not included in the search. |
|
context |
The context of the stream to retrieve. If NULL, the context is not included in the search. |
[nullable] |
arch |
The processor architecture of the stream to retrieve. If NULL, the architecture is not included in the search. |
[nullable] |
The list of stream objects matching the requested parameters. This function cannot fail, but it may return a zero-length list if no matches were found. The returned streams will be in a predictable order, sorted first by stream name, then by version (highest to lowest), then by context and finally by architecture.
[transfer container][element-type ModulemdModuleStream]
Since: 2.5
GPtrArray * modulemd_module_search_streams_by_glob (ModulemdModule *self
,const gchar *stream_name
,const gchar *version
,const gchar *context
,const gchar *arch
);
All arguments to this method will be compared using fnmatch(3).
self |
This ModulemdModule object. |
|
stream_name |
The name of the stream to retrieve. If NULL, will search all streams. |
[nullable] |
version |
The version of the stream to retrieve. If NULL, will search all versions. |
[nullable] |
context |
The context of the stream to retrieve. If NULL, will search all contexts. |
[nullable] |
arch |
The processor architecture of the stream to retrieve. If NULL, the architecture is not included in the search. |
[nullable] |
The list of stream objects matching all of the requested parameters. This function cannot fail, but it may return a zero-length list if no matches were found. The returned streams will be in a predictable order, sorted first by module name, then stream name, then by version (highest first), then by context and finally by architecture.
[transfer container][element-type ModulemdModuleStream]
Since: 2.9
GPtrArray * modulemd_module_search_streams_by_nsvca_glob (ModulemdModule *self
,const gchar *nsvca_pattern
);
self |
This ModulemdModule object. |
|
nsvca_pattern |
A glob pattern to match against the NSVCA strings of the ModulemdModuleStream objects in this module. If NULL, this will match all NSVCAs. |
[nullable] |
An array of ModulemdModuleStream objects whose NSVCA string matches the provided pattern. This function cannot fail, but may return an array of zero entries if the pattern did not match any streams. The returned streams will be in a predictable order, sorted first by module name, then stream name, then by version (highest first), then by context and finally by architecture.
[transfer container][element-type ModulemdModuleStream]
Since: 2.9
ModulemdModuleStream * modulemd_module_get_stream_by_NSVCA (ModulemdModule *self
,const gchar *stream_name
,guint64 version
,const gchar *context
,const gchar *arch
,GError **error
);
self |
This ModulemdModule object. |
|
stream_name |
The name of the stream to retrieve. |
|
version |
The version of the stream to retrieve. If set to zero, the version is not included in the search. |
|
context |
The context of the stream to retrieve. If NULL, the context is not included in the search. |
[nullable] |
arch |
The processor architecture of the stream to retrieve. If NULL, the architecture is not included in the search. |
[nullable] |
error |
A GError indicating the reason this function failed to retrieve exactly one ModulemdModuleStream. |
[out] |
The requested stream object. NULL and sets error
appropriately if the provided information is not sufficient to return
exactly one ModulemdModuleStream result.
[transfer none]
Since: 2.2
void modulemd_module_remove_streams_by_NSVCA (ModulemdModule *self
,const gchar *stream_name
,guint64 version
,const gchar *context
,const gchar *arch
);
Remove one or more ModulemdModuleStream objects from this ModulemdModule that match the provided parameters.
self |
This ModulemdModule object. |
|
stream_name |
The name of the stream to remove. |
[not nullable] |
version |
The version of the stream to remove. If set to zero, matches all versions. |
|
context |
The context of the stream to remove. If NULL, matches all stream contexts. |
[nullable] |
arch |
The processor architecture of the stream to remove. If NULL, matches all architectures. |
[nullable] |
Since: 2.3
#define modulemd_module_remove_streams_by_name(self, stream_name)
Remove one or more ModulemdModuleStream objects from this ModulemdModule that match the provided stream name.
self |
This ModulemdModule object. |
|
stream_name |
The name of the stream to remove. |
[not nullable] |
Since: 2.3
ModulemdDefaults *
modulemd_module_get_defaults (ModulemdModule *self
);
Since: 2.0
ModulemdTranslation * modulemd_module_get_translation (ModulemdModule *self
,const gchar *stream
);
Since: 2.8
GPtrArray *
modulemd_module_get_obsoletes (ModulemdModule *self
);
A list of all obsoletes attached to this module. These are pointers to the internal memory objects and must not be modified or freed.
[transfer none][element-type ModulemdObsoletes]
Since: 2.10
ModulemdObsoletes * modulemd_module_get_newest_active_obsoletes (ModulemdModule *self
,const gchar *stream
,const gchar *context
);
self |
This ModulemdModule object. |
[in] |
stream |
The stream to look up obsoletes for. |
[in] |
context |
The stream context to look up obsoletes for. |
[in][nullable] |
The newest active obsoletes attached to this module with specified stream and context (when eol_date is not set or it already occured the obsoletes is active). If no context is passed it matches obsoletes without context.
[transfer none]
Since: 2.10
void
modulemd_module_clear_xmds (ModulemdModule *self
);
Iterates through all ModulemdModuleStream entries in this ModulemdModule and removes any XMD sections that are present. This is generally done to trim down the metadata to only the portions that are useful to the package manager.
Since: 2.14