This module provides classes for manipulating images.json files. images.json files provide details about images included in composes.
supported image types
supported image formats, they match with file suffix
Assign an Image object to variant and arch.
Parameters: |
|
---|
Dump data to a file.
Parameters: | f (file or str) – file-like object or path to file |
---|
Dump data to a string.
Return type: | str |
---|
Load data from a file.
Parameters: | f (file or str) – file-like object or path to file |
---|
Load data from a string.
Parameters: | s (str) – input data |
---|
Validate attributes by running all self._validate_*() methods.
Raises: |
|
---|
(str) – relative path to an image, for example: “Server/x86_64/iso/boot.iso”
(int) – image mtime
(int) – image size
(str) –
(str) –
(str) – Release name, for example: “Fedora”, “Red Hat Enterprise Linux”
(str) – image architecture, for example: “x86_64”, “src”
(int) – Release name, for example: “Fedora”, “Red Hat Enterprise Linux”
(int) – Release name, for example: “Fedora”, “Red Hat Enterprise Linux”
(str) – Release name, for example: “Fedora”, “Red Hat Enterprise Linux”
(str or None) – value of implanted md5
(bool=False) –
Dump data to a file.
Parameters: | f (file or str) – file-like object or path to file |
---|
Dump data to a string.
Return type: | str |
---|
Load data from a file.
Parameters: | f (file or str) – file-like object or path to file |
---|
Load data from a string.
Parameters: | s (str) – input data |
---|
Validate attributes by running all self._validate_*() methods.
Raises: |
|
---|