Module openrelik_worker_common.data_types
OpenRelik data types
This file defines the OpenRelik data types that can be used for input and output files. The data types are defined as StrEnums which takes care of the interoperability between code and database through string comparison instead of forcing Enum object comparison. This also makes sure we can use both Enum based comparison and string based glob filtering.
Classes
class DataType (*args, **kwds)
-
Expand source code
class DataType(StrEnum): DISKIMAGE_QCOW = "diskimage:qcow" DISKIMAGE_RAW = "diskimage:raw" BINARY = "binary"
Enum where members are also (and must be) strings
Ancestors
- enum.StrEnum
- builtins.str
- enum.ReprEnum
- enum.Enum
Class variables
var BINARY
var DISKIMAGE_QCOW
var DISKIMAGE_RAW