1
0
mirror of https://github.com/quay/quay.git synced 2025-04-19 21:42:17 +03:00
quay/notifications/models_interface.py
2020-02-05 19:55:07 -08:00

26 lines
507 B
Python

from collections import namedtuple
class Repository(namedtuple("Repository", ["namespace_name", "name"])):
"""
Repository represents a repository.
"""
class Notification(
namedtuple(
"Notification",
[
"uuid",
"event_name",
"method_name",
"event_config_dict",
"method_config_dict",
"repository",
],
)
):
"""
Notification represents a registered notification of some kind.
"""