Libosinfo.ProductFilter¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Libosinfo.ProductFilter(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a new filter
- Return type:
Construct a new filter that matches all operating systems
- add_product_constraint(relshp, product)¶
- Parameters:
relshp (
Libosinfo.ProductRelationship
) – the relationship to filter onproduct (
Libosinfo.Product
) – the target product to filter on
- Return type:
Adds a constraint that matches products which have a relationship relshp with product. Multiple constraints can be set for the same relshp or product, in which case all must match
- clear_product_constraint(relshp)¶
- Parameters:
relshp (
Libosinfo.ProductRelationship
) – the relationship to clear
Remove all constraints for the relationship relshp
- clear_product_constraints()¶
Remove all relationship constraints
- get_product_constraint_values(relshp)¶
- Parameters:
relshp (
Libosinfo.ProductRelationship
) – a relationship to query- Returns:
a list of operating systems
- Return type:
Retrieve a list of all operating systems that are the target of constraint for the relationship relshp.