Package ganeti :: Package rapi :: Module connector
[hide private]
[frames] | no frames]

Module connector

source code

Remote API connection map.

Classes [hide private]
  Mapper
Map resource to method.
  R_root
/ resource.
  R_2
/2 resource, the root of the version 2 API.
Functions [hide private]
 
_getResources(id_)
Return a list of resources underneath given id.
source code
 
GetHandlers(node_name_pattern, instance_name_pattern, job_id_pattern)
Returns all supported resources and their handlers.
source code
Variables [hide private]
  _NAME_PATTERN = r"[\w\._-]+"
  CONNECTOR = {}

Imports: cgi, re, constants, http, baserlib, rlib2


Function Details [hide private]

_getResources(id_)

source code 

Return a list of resources underneath given id.

This is to generalize querying of version resources lists.

Returns:
a list of resources names.