Push items: VMI¶
- class pushsource.VMIPushItem[source]¶
A
PushItem
representing a generic VM image.This class is used as a parent class for different types of VM images.
Attributes:
build()
[inherited]build_info()
[inherited]dest()
[inherited]md5sum()
[inherited]name()
[inherited]origin()
[inherited]sha256sum()
[inherited]signing_key()
[inherited]src()
[inherited]state()
[inherited]
- release¶
Release metadata associated with this image.
- boot_mode¶
uefi, legacy, or hybrid (uefi + legacy).
- Type:
Boot mode supported by the image (if known)
- cloud_info¶
Cloud provider information, such as the provider’s short name and account alias.
- Type:
- marketplace_title_template¶
The template is of the form used by
str.format
, with available keywords being all of the documented fields onVMIRelease
andAMIRelease
classes.It’s used by the property marketplace_title to format it as the marketplace title.
- Type:
- class pushsource.VMIRelease[source]¶
Release metadata associated with a VM image.
Attributes:
- product¶
A short product name, for example “RHEL” if this is an image for Red Hat Enterprise Linux.
- Type:
- date¶
Date at which this image was generated.
- Type:
date
- respin¶
Respin count. 0 for original build of an image, incremented by one for each rebuild.
- Type:
- version¶
A <major>.<minor> version string for the image’s product version, for example “7.9” if this is an image for Red Hat Enterprise Linux 7.9.x.
- Type:
- base_product¶
For layered products, name of the base product for which the image should be used.
- Type:
- base_version¶
For layered products, version of the base product for which the image should be used.
- Type:
- variant¶
Variant of this image’s product (only for products which have variants). For example, “Server”, for Red Hat Enterprise Linux Server.
- Type:
- class pushsource.VMICloudInfo[source]¶
Information on the cloud provider associated with a given push item.
Cloud provider information is only available for VMIs which have previously been published to a cloud. It may be used to locate an existing VMI for manipulation, such as metadata updates or deletion.
This library doesn’t define any specific cloud provider names or aliases. Generally, a user of this library is expected to use the information here to look up cloud access details from a configuration file or other source.
Attributes:
- provider¶
“aws”.
- Type:
The cloud provider’s name, e.g.
- account¶
“aws-na”.
- Type:
The cloud provider’s account alias, e.g.