Modulemd.Component¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
Whether the artifacts produced by this component are intended only for building this module. |
||
r/w |
The order this component should be built relative to others. |
||
r/w/co |
The name of the component. This is the real name of the component and may differ from the key used to associate this component with the ModuleStream. |
||
r/w |
A description of the reason this component is part of the module stream. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Modulemd.Component(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- add_buildafter(key)¶
- Parameters:
key (
str) – A key representing another component in theModulemd.ModuleStreamcomponents map.
Add a build dependency of this component.
New in version 2.2.
- clear_buildafter()¶
Remove all buildafter entries for this component.
New in version 2.5.
- copy(key)¶
- Parameters:
key (
strorNone) – An optional new key for the copied component which is used as the lookup key when this component is attached to aModulemd.ModuleStream.- Returns:
A newly-allocated copy of self.
- Return type:
New in version 2.0.
- equals(self_2)¶
- Parameters:
self_2 (
Modulemd.Component) – AModulemd.Componentobject.- Returns:
- Return type:
New in version 2.3.
- get_buildafter()¶
- Returns:
The set of component keys that this component depends upon.
- Return type:
[
str]
New in version 2.2.
- get_buildonly()¶
-
New in version 2.2.
- get_key()¶
- Returns:
The name of the key used to attach this component to a
Modulemd.ModuleStream.- Return type:
New in version 2.2.
- get_name()¶
- Returns:
The name of the component. Note that this may be different from the key used to save this component to a
Modulemd.ModuleStream. If you specifically need the key, useModulemd.Component.get_key() instead.- Return type:
New in version 2.0.
- set_buildonly(buildonly)¶
- Parameters:
buildonly (
bool) – Whether this component is used only for building this module. If set toTrue, the build system should add any artifacts produced by this component to the data.filters section of the output modulemd.
New in version 2.2.
- set_buildorder(buildorder)¶
- Parameters:
buildorder (
int) – The order this component should be built relative to others.
New in version 2.0.
- set_name(name)¶
- Parameters:
name (
strorNone) – The name of this component. Note that this is different from the key used to save this component to aModulemd.ModuleStream. If this value is set, it adds a “name:” attribute to this component. This is used in bootstrapping cases where the key is a different name used to differentiate multiple ordered builds of the same component name. This function is currently only implemented forModulemd.ComponentRpmand has no effect on otherModulemd.Componenttypes.
New in version 2.2.
- set_rationale(rationale)¶
-
New in version 2.0.
- validate()¶
- Raises:
- Returns:
Trueif theModulemd.Componentpassed validation.Falseand sets error appropriately if validation fails.- Return type:
Verifies that all stored values are internally consistent and that the component is sufficiently-complete for emitting. This function is called implicitly before attempting to emit the contents.
New in version 2.2.
- do_copy(key) virtual¶
- Parameters:
key (
strorNone) – An optional new key for the copied component which is used as the lookup key when this component is attached to aModulemd.ModuleStream.- Returns:
A newly-allocated copy of self.
- Return type:
New in version 2.0.
- do_equals(self_2) virtual¶
- Parameters:
self_2 (
Modulemd.Component) – AModulemd.Componentobject.- Returns:
- Return type:
New in version 2.3.
- do_get_name() virtual¶
- Returns:
The name of the component. Note that this may be different from the key used to save this component to a
Modulemd.ModuleStream. If you specifically need the key, useModulemd.Component.get_key() instead.- Return type:
New in version 2.0.
- do_set_name(name) virtual¶
- Parameters:
name (
strorNone) – The name of this component. Note that this is different from the key used to save this component to aModulemd.ModuleStream. If this value is set, it adds a “name:” attribute to this component. This is used in bootstrapping cases where the key is a different name used to differentiate multiple ordered builds of the same component name. This function is currently only implemented forModulemd.ComponentRpmand has no effect on otherModulemd.Componenttypes.
New in version 2.2.
- do_validate() virtual¶
- Returns:
Trueif theModulemd.Componentpassed validation.Falseand sets error appropriately if validation fails.- Return type:
Verifies that all stored values are internally consistent and that the component is sufficiently-complete for emitting. This function is called implicitly before attempting to emit the contents.
New in version 2.2.
Property Details¶
- Modulemd.Component.props.buildonly¶
-
Whether the artifacts produced by this component are intended only for building this module.
- Modulemd.Component.props.buildorder¶
-
The order this component should be built relative to others.
- Modulemd.Component.props.name¶
- Name:
name- Type:
- Default Value:
'__UNSET__'- Flags:
The name of the component. This is the real name of the component and may differ from the key used to associate this component with the ModuleStream.