| Home | Trees | Indices | Help |
|
|---|
|
|
The central location of all Enomalism SQLObject abstractions.
|
|||
|
UUIDSearch UUIDSearch provides utility methods that are available to some Enomalism SQLObject classes. |
|||
|
PermSelect A query select utility class that will only return the objects with the specified permissions, as well as the specified filter if provided. |
|||
|
|||
| None |
|
||
| Function |
|
||
|
|||
| Boolean |
|
||
| Boolean |
|
||
| Boolean |
|
||
| enomalism2.machine.Machine |
|
||
| enomalism2.identity.EnomalismUser |
|
||
| enomalism2.identity.EnomalismGroup |
|
||
| enomalism2.machine.Machine |
|
||
| List |
|
||
| List |
|
||
| Integer |
|
||
| enomalism2.cluster.Cluster |
|
||
|
|||
| Tuple |
|
||
|
|||
Register a hypervisor type using the specified name-value pair. Example usage: >>> from enomalism2 import model >>> model.register_hvtype('qemu',qemu_hvm())
Status: Stable |
This hook re-wraps ANY method of any class to overload it. The hook is used rather than just a simple function replacement so that we can build function graphs and stuff later on. What we do is take a "decorator" function and replace the current call with one that replaces the original with a new one that passes the original function, and THEN the *arg,**kw parameters. This way, the new "decorator" can decide how to use the results from the previous call (whatever it might be). What is really neat is this gives us the ability to hook on the "pre" and "post" positions, to use the old enomalism vernacular. This means you can both post process, and pre-process the results from the original call! It also means you can fit any triggers into the same call as well. Example usage: >>> from enomalism2 import model >>> @model.hook(model.machine, model.machine.set_machine_name) >>> def hook_set_machine_name(fn,self,name): ... print 'hook_set_machine_name' ... return fn(self,name)
Status: Stable |
This function is deprecated. Status: Deprecated |
Check if the admin user exists while logging the actions taken if the log parameter is provided.
|
Check if the admin group exists while logging the actions taken if the log parameter is provided.
|
Check if the local machine exists while logging the actions taken if the log parameter is provided.
|
Return the local machine on which Enomalism is running.
|
Create the admin user while logging the actions taken if the log parameter is provided.
|
Create the admin group while logging the actions taken if the log parameter is provided.
|
Create the local machine and create the hypervisors while logging the actions taken if the log parameter is provided.
|
Return the a list of hypervisors that have the specified name.
|
Determine the vertulization capabilities of the host. This is done by calling enomalism2.utilities.find_libvirt_services. For each libvert service that is found, a new hypervisor instance is created while logging the actions taken if the log parameter is provided.
|
Return true if the default cluster exists.
|
Create the default cluster.
|
Guess the parent of the specified machine. First, we fetch the specified machine from the database. If the specified machine has a parent, we return a tuple containing the parent uuid and REST URL. If the machine has no parent, a tuple containing it's uuid and REST URL is returned. Example usage:
>>> enomalism2.REST.guess_parent(enomalism2.machine.machine())
Status: Stable |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Sep 26 13:59:29 2008 | http://epydoc.sourceforge.net |