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
Return type

None

artifact_id: str
attributes: Dict[str, Any]
build_ids: List[str]
compilation_ids: List[str]
has_object: bool
kind: mate_common.models.artifacts.ArtifactKind
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'
CompileOutputSharedLibrary = 'compile-output:shared-library'
CompileOutputSharedLibraryBitcode = 'compile-output:shared-library:bitcode'
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
Return type

None

attributes: Dict[str, Any]
kind: mate_common.models.artifacts.ArtifactKind