mate_common.models.artifacts module¶
- class mate_common.models.artifacts.ArtifactInformation(*, artifact_id: str, kind: mate_common.models.artifacts.ArtifactKind, has_object: bool, attributes: Dict[str, Any], build_ids: List[str], compilation_ids: List[str])¶
Bases:
pydantic.main.BaseModel
- Parameters
artifact_id (str) –
has_object (bool) –
attributes (Dict[str, Any]) –
build_ids (List[str]) –
compilation_ids (List[str]) –
- Return type
None
- artifact_id: str¶
- attributes: Dict[str, Any]¶
- build_ids: List[str]¶
- compilation_ids: List[str]¶
- has_object: bool¶
- class mate_common.models.artifacts.ArtifactKind(value)¶
Bases:
str
,enum.Enum
An enumeration of valid artifact kinds.
- BlightJournal = 'blight:journal'¶
- BuildOutputCanonicalBitcode = 'build-output:canonical-bitcode'¶
- BuildOutputCpgJSONL = 'build-output:cpg-jsonl'¶
- BuildOutputDebugPointerAnalysis = 'build-output:debug-pointer-analysis'¶
- BuildOutputMateJSONL = 'build-output:mate-jsonl'¶
- BuildOutputMergedBitcode = 'build-output:merged-bitcode'¶
- BuildOutputQuotidianCanonicalBinary = 'build-output:quotidian-canonical-binary'¶
- BuildOutputQuotidianHeadacheLog = 'build-output:quotidian-headache-log'¶
- BuildOutputQuotidianJSONL = 'build-output:quotidian-jsonl'¶
- BuildOutputQuotidianWedlockLog = 'build-output:quotidian-wedlock-log'¶
- BuildOutputSignatures = 'build-output:signatures'¶
- BuildOutputTaskLog = 'build-output:task-log'¶
- CompileOutputBinary = 'compile-output:binary'¶
- CompileOutputBitcode = 'compile-output:bitcode'¶
- CompileOutputCompileLog = 'compile-output:compile-log'¶
- CompileOutputStaticLibrary = 'compile-output:static-library'¶
- CompileOutputStaticLibraryBitcode = 'compile-output:static-library:bitcode'¶
- CompileTargetBitcode = 'compile-target:bitcode'¶
- CompileTargetBrokeredChallenge = 'compile-target:brokered-challenge'¶
- CompileTargetSingle = 'compile-target:single'¶
- CompileTargetTarball = 'compile-target:tarball'¶
- MantiserveTaskLog = 'mantiserve-task:log'¶
- is_build_output() bool ¶
Returns whether the artifact is a build output.
- Return type
bool
- is_compile_target() bool ¶
Returns whether the artifact is a compile target.
- Return type
bool
- class mate_common.models.artifacts.ArtifactSpecification(*, kind: mate_common.models.artifacts.ArtifactKind, attributes: Dict[str, Any])¶
Bases:
pydantic.main.BaseModel
- Parameters
attributes (Dict[str, Any]) –
- Return type
None
- attributes: Dict[str, Any]¶