model
Model implementation for MLTE evidence.
ArrayValueModel
Bases: BaseModel
The model implementation for MLTE array values.
Source code in mlte/evidence/model.py
112 113 114 115 116 117 118 119 | |
data
instance-attribute
The array to capture.
evidence_type = EvidenceType.ARRAY
class-attribute
instance-attribute
An identitifier for the evidence type.
EvidenceModel
Bases: BaseModel
The model implementation for MLTE evidence.
Source code in mlte/evidence/model.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | |
artifact_type = ArtifactType.EVIDENCE
class-attribute
instance-attribute
Union discriminator.
evidence_class
instance-attribute
Full path to class that implements this evidence.
metadata
instance-attribute
Evidence information (id and measurement it came from).
value = Field(..., discriminator='evidence_type')
class-attribute
instance-attribute
The body of the evidence.
EvidenceType
Bases: StrEnum
An ennumeration over supported evidence types.
Source code in mlte/evidence/model.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |
ARRAY = 'array'
class-attribute
instance-attribute
An array of values.
IMAGE = 'image'
class-attribute
instance-attribute
An image media type.
INTEGER = 'integer'
class-attribute
instance-attribute
An integral type.
OPAQUE = 'opaque'
class-attribute
instance-attribute
An opaque type.
REAL = 'real'
class-attribute
instance-attribute
A real type.
STRING = 'string'
class-attribute
instance-attribute
A string media type.
UNAVAILABLE = 'unavailable'
class-attribute
instance-attribute
Evidence that could not be obtained, with error details.
ImageValueModel
Bases: BaseModel
The model implementation for MLTE image values.
Source code in mlte/evidence/model.py
102 103 104 105 106 107 108 109 | |
data
instance-attribute
The image data as base64-encoded string.
evidence_type = EvidenceType.IMAGE
class-attribute
instance-attribute
An identitifier for the evidence type.
IntegerValueModel
Bases: BaseModel
The model implementation for MLTE integer values.
Source code in mlte/evidence/model.py
66 67 68 69 70 71 72 73 74 75 76 | |
evidence_type = EvidenceType.INTEGER
class-attribute
instance-attribute
An identitifier for the evidence type.
integer
instance-attribute
The encapsulated value.
unit = None
class-attribute
instance-attribute
The unit associated with this value, if any.
OpaqueValueModel
Bases: BaseModel
The model implementation for MLTE opaque values.
Source code in mlte/evidence/model.py
92 93 94 95 96 97 98 99 | |
data
instance-attribute
Encapsulated, opaque data.
evidence_type = EvidenceType.OPAQUE
class-attribute
instance-attribute
An identitifier for the evidence type.
RealValueModel
Bases: BaseModel
The model implementation for MLTE real values.
Source code in mlte/evidence/model.py
79 80 81 82 83 84 85 86 87 88 89 | |
evidence_type = EvidenceType.REAL
class-attribute
instance-attribute
An identitifier for the evidence type.
real
instance-attribute
The encapsulated value.
unit = None
class-attribute
instance-attribute
The unit associated with this value, if any.
StringValueModel
Bases: BaseModel
The model implementation for MLTE string values.
Source code in mlte/evidence/model.py
122 123 124 125 126 127 128 129 | |
evidence_type = EvidenceType.STRING
class-attribute
instance-attribute
An identitifier for the evidence type.
string
instance-attribute
The encapsulated string.
UnavailableValueModel
Bases: BaseModel
The model implementation for MLTE values that could not be obtained.
Source code in mlte/evidence/model.py
132 133 134 135 136 137 138 139 140 141 142 | |
details
instance-attribute
The details.
evidence_type = EvidenceType.UNAVAILABLE
class-attribute
instance-attribute
An identitifier for the evidence type.
traceback = None
class-attribute
instance-attribute
Additional traceback.