mirror of
https://github.com/quay/quay.git
synced 2025-04-19 21:42:17 +03:00
26 lines
507 B
Python
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.
|
|
"""
|