module documentation

Ganeti Remote API master script.

Class FileEventHandler No class docstring; 0/3 instance variable, 2/2 methods documented
Class RapiUsers No class docstring; 0/1 instance variable, 3/3 methods documented
Class RemoteApiHandler REST Request Handler Class.
Class RemoteApiRequestContext Data structure for Remote API requests.
Function CheckRapi Initial checks whether to run or exit with a failure.
Function ExecRapi Main remote API function, executed with the PID file held.
Function Main Main function.
Function PrepRapi Prep remote API function, executed with the PID file held.
Function SetupFileWatcher Configures an inotify watcher for a file.
def CheckRapi(options, args):

Initial checks whether to run or exit with a failure.

def ExecRapi(options, args, prep_data):

Main remote API function, executed with the PID file held.

def Main():

Main function.

def PrepRapi(options, _):

Prep remote API function, executed with the PID file held.

def SetupFileWatcher(filename, cb):

Configures an inotify watcher for a file.

Parameters
filename:stringFile to watch
cb:callableFunction called on file change