Enums

Details

class Modulemd.CompressionTypeEnum(value)

Bases: GLib.Enum

New in version 2.8.

UNKNOWN_COMPRESSION = -1

Unknown compression

DETECTION_FAILED = -2

Autodetection failure

NO_COMPRESSION = 0

No compression

GZ_COMPRESSION = 1

gzip compression

BZ2_COMPRESSION = 2

bzip2 compression

XZ_COMPRESSION = 3

LZMA compression

ZCK_COMPRESSION = 4

zchunk compression

SENTINEL = 5

Enum list terminator

class Modulemd.DefaultsVersionEnum(value)

Bases: GLib.Enum

New in version 2.0.

ERROR = -1

Represents an error handling mdversion.

UNSET = 0

Represents an unset mdversion.

LATEST = 1

Represents the highest-supported version of the Modulemd.Defaults metadata format.

ONE = 1

Represents v1 of the Modulemd.Defaults metadata format.

class Modulemd.Error(value)

Bases: GLib.Enum

New in version 2.9.

UPGRADE = 0

Represents an error encountered while upgrading the metadata version of a module stream or module defaults.

VALIDATE = 1

Represents an error encountered while validating module metadata.

FILE_ACCESS = 2

Represents an error encountered when attempting to access a file.

NO_MATCHES = 3

Represents an error indicating that no streams matched when searching for a specific module stream.

TOO_MANY_MATCHES = 4

Represents an error indicating that multiple streams matched when searching for a specific module stream.

MAGIC = 5

Could not detect the mime type of a file for automatic detection of compression format.

NOT_IMPLEMENTED = 6

The requested function is not implemented on this platform, likely due to needing a newer version of a dependency library.

MISSING_REQUIRED = 7

The object is missing some data necessary for proper operation.

class Modulemd.ErrorEnum(value)

Bases: GLib.Enum

New in version 2.0.

Deprecated since version 2.9: Use Modulemd.Error instead.

UPGRADE = 0

Represents an error encountered while upgrading the metadata version of a module stream or module defaults.

VALIDATE = 1

Represents an error encountered while validating module metadata.

FILE_ACCESS = 2

Represents an error encountered when attempting to access a file.

NO_MATCHES = 3

Represents an error indicating that no streams matched when searching for a specific module stream.

New in version 2.2.

TOO_MANY_MATCHES = 4

Represents an error indicating that multiple streams matched when searching for a specific module stream.

New in version 2.2.

MAGIC = 5

Could not detect the mime type of a file for automatic detection of compression format.

New in version 2.8.

NOT_IMPLEMENTED = 6

The requested function is not implemented on this platform, likely due to needing a newer version of a dependency library.

New in version 2.8.

class Modulemd.ModuleStreamVersionEnum(value)

Bases: GLib.Enum

New in version 2.0.

ERROR = -1

Represents an error handling module stream version.

UNSET = 0

Represents an unset module stream version.

ONE = 1

Represents v1 of the Modulemd.ModuleStream metadata format.

LATEST = 2

Represents the highest-supported version of the Modulemd.ModuleStream metadata format.

TWO = 2

Represents v2 of the Modulemd.ModuleStream metadata format.

class Modulemd.ObsoletesVersionEnum(value)

Bases: GLib.Enum

New in version 2.10.

ERROR = -1

Represents an error handling mdversion.

UNSET = 0

Represents an unset mdversion.

LATEST = 1

Represents the highest-supported version of the Modulemd.Obsoletes metadata format.

ONE = 1

Represents v1 of the Modulemd.Obsoletes metadata format.

class Modulemd.PackagerVersionEnum(value)

Bases: GLib.Enum

New in version 2.11.

ERROR = -1

Represents an error handling module stream version.

UNSET = 0

Represents an unset module stream version.

TWO = 2

Represents v2 of the ModulePackager metadata format.

New in version 2.11.

LATEST = 3

Represents the highest-supported version of the ModulePackager metadata format.

THREE = 3

Represents v3 of the ModulePackager metadata format.

New in version 2.11.

class Modulemd.YamlError(value)

Bases: GLib.Enum

New in version 2.9.

OPEN = 0

Represents an error encountered while opening a YAML file.

PROGRAMMING = 1

Represents an internal programming error encountered while parsing a YAML document.

UNPARSEABLE = 2

Represents an error indicating that unexpected data or some other parsing error that violates the YAML spec was encountered while parsing a YAML document.

PARSE = 3

Represents an error indicating invalid data violating the modulemd YAML spec was encountered while parsing a YAML document.

EMIT = 4

Represents an error encountered while writing a YAML file.

MISSING_REQUIRED = 5

Represents an error indicating that required elements are missing while parsing a YAML document.

EVENT_INIT = 6

Represents an error indicating that a YAML output event could not be initialized.

INCONSISTENT = 7

Represents a data inconsistency error encountered while parsing a YAML document.

UNKNOWN_ATTR = 8
class Modulemd.YamlErrorEnum(value)

Bases: GLib.Enum

New in version 2.0.

Deprecated since version 2.9: Use Modulemd.YamlError instead.

OPEN = 0

Represents an error encountered while opening a YAML file.

PROGRAMMING = 1

Represents an internal programming error encountered while parsing a YAML document.

UNPARSEABLE = 2

Represents an error indicating that unexpected data or some other parsing error was encountered while parsing a YAML document.

PARSE = 3

Represents an error indicating invalid data was encountered while parsing a YAML document.

EMIT = 4

Represents an error encountered while writing a YAML file.

MISSING_REQUIRED = 5

Represents an error indicating that required elements are missing while parsing a YAML document.

EVENT_INIT = 6

Represents an error indicating that a YAML output event could not be initialized.

INCONSISTENT = 7

Represents a data inconsistency error encountered while parsing a YAML document.