mini_buildd.events module¶
-
class
mini_buildd.events.
Type
(value)¶ Bases:
enum.Enum
An enumeration.
-
REJECTED
= 1¶
-
BUILT
= 2¶
-
INSTALLED
= 3¶
-
FAILED
= 4¶
-
MIGRATED
= 5¶
-
REMOVED
= 6¶
-
-
class
mini_buildd.events.
Event
(type_, distribution, source, version, extra)¶ Bases:
object
-
extra_info
()¶ Human-readable informational string from extra data.
-
match
(types=None, distribution=None, source=None, version=None, minimal_version=None)¶
-
to_json
()¶
-
classmethod
from_json
(data)¶
-
classmethod
from_changes
(typ, changes, extra=None)¶
-
log_path
(create=False)¶
-
save
(file_path=None)¶
-
classmethod
load
(file_path)¶
-
-
class
mini_buildd.events.
Events
(*args, **kwargs)¶ Bases:
collections.deque
-
MAX_CLIENTS
= 100¶
-
log
(event)¶
-
logchanges
(typ, changes, extra=None)¶
-
attach
(obj, since=None)¶
-
shutdown
()¶ Hint shutdown to all client (queues). Essentially makes blocking get() in httpd.py continue so httpd can shutdown.
-
get_last_sources
()¶
-
get_last_versions
(source)¶
-
to_json
()¶
-
classmethod
from_json
(events, maxlen)¶
-
-
mini_buildd.events.
filter_iter
(events_iter, types=None, distribution=None, source=None, version=None, minimal_version=None, exit_on=None, fail_on=None)¶