mainframe.models.orm¶
Attributes¶
Classes¶
Mixin class to indicate when mapping this class, also convert it to be |
|
Package status. |
|
The scans. |
|
Download URLs |
|
YARA rules |
Module Contents¶
- class mainframe.models.orm.Base[source]¶
Bases:
sqlalchemy.orm.MappedAsDataclass
,sqlalchemy.orm.DeclarativeBase
Mixin class to indicate when mapping this class, also convert it to be a dataclass.
See also
orm_declarative_native_dataclasses - complete background on SQLAlchemy native dataclass mapping
Added in version 2.0.
- class mainframe.models.orm.Status(*args, **kwds)[source]¶
Bases:
enum.Enum
Package status.
QUEUED - Waiting to be sent to a worker PENDING - Waiting for a response from a worker FINISHED - Verdict received from worker FAILED - Something went wrong with the client when scanning this package
- class mainframe.models.orm.Scan[source]¶
Bases:
Base
The scans.
- download_urls: sqlalchemy.orm.Mapped[list[DownloadURL]][source]¶
- queued_at: sqlalchemy.orm.Mapped[datetime.datetime | None][source]¶
- pending_at: sqlalchemy.orm.Mapped[datetime.datetime | None][source]¶
- finished_at: sqlalchemy.orm.Mapped[datetime.datetime | None][source]¶
- reported_at: sqlalchemy.orm.Mapped[datetime.datetime | None][source]¶