Package backend :: Module frontend :: Class FrontendClient
[hide private]
[frames] | no frames]

Class FrontendClient

source code


Object to send data back to fronted

Instance Methods [hide private]
 
__init__(self, opts, events)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_post_to_frontend(self, data, url_path)
Make a request to the frontend
source code
 
_post_to_frontend_repeatedly(self, data, url_path, max_repeats=10)
Make a request max_repeats-time to the frontend
source code
 
update(self, data)
Send data to be updated in the frontend
source code
 
starting_build(self, build_id, chroot_name)
Announce to the frontend that a build is starting.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, opts, events)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

starting_build(self, build_id, chroot_name)

source code 

Announce to the frontend that a build is starting.
Return: True if the build can start
        False if the build can not start (can be cancelled or deleted)