Fwupd.JcatItem¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Fwupd.JcatItem(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(id)[source]¶
- Parameters:
id (
str) – An item ID, typically a file basename- Returns:
- Return type:
Creates a new item.
New in version 2.1.3.
- add_alias_id(id)[source]¶
- Parameters:
id (
str) – An item ID alias, typically a file basename
Adds an item alias ID. Alias IDs are matched when using functions such as
Fwupd.JcatFile.get_item_by_id().New in version 2.1.3.
- add_blob(blob)[source]¶
- Parameters:
blob (
Fwupd.JcatBlob) –Fwupd.JcatBlob
Adds a new blob to the item.
New in version 2.1.3.
- get_alias_ids()[source]¶
- Returns:
array
- Return type:
[
str]
Gets the list of alias IDs.
New in version 2.1.3.
- get_blob_by_kind(kind)[source]¶
- Parameters:
kind (
Fwupd.JcatBlobKind) –Fwupd.JcatBlobKind, e.g.Fwupd.JcatBlobKind.SHA256- Raises:
- Returns:
a blob, or
None- Return type:
Gets the item blobs by a specific kind.
New in version 2.1.3.
- get_blobs()[source]¶
- Returns:
blobs
- Return type:
Gets all the blobs for this item.
New in version 2.1.3.
- get_blobs_by_kind(kind)[source]¶
- Parameters:
kind (
Fwupd.JcatBlobKind) –Fwupd.JcatBlobKind, e.g.Fwupd.JcatBlobKind.SHA256- Returns:
blobs
- Return type:
Gets the item blobs by a specific kind.
New in version 2.1.3.
- get_id_safe()[source]¶
- Raises:
- Returns:
string
- Return type:
Returns the item ID, if safe to use as a path.
New in version 2.1.3.