Libosinfo.Image¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
CPU Architecture |
||
r/w |
Whether cloud-init customizations are supported or not |
||
r/w |
The image format |
||
r/w |
The URL to this image |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Libosinfo.Image(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(id, architecture, format)¶
- Parameters:
- Return type:
- get_architecture()¶
-
Retrieves the target hardware architecture of the OS self provides.
New in version 1.3.0.
- get_cloud_init()¶
-
Whether self supports cloud init customizations
New in version 1.3.0.
- get_format()¶
-
The format of the self
New in version 1.3.0.
- get_os_variants()¶
- Returns:
the operating system variants, or
None
- Return type:
Gets the varriants of the associated operating system
New in version 1.5.0.
- set_os(os)¶
- Parameters:
os (
Libosinfo.Os
) – anLibosinfo.Os
instance
Sets the
Libosinfo.Os
associated to theLibosinfo.Image
instance.New in version 1.5.0.
Property Details¶
- Libosinfo.Image.props.architecture¶
-
The target hardware architecture of this image.
- Libosinfo.Image.props.cloud_init¶
-
Whether the image supports cloud-init customizations or not.
- Libosinfo.Image.props.format¶
-
The image format.