Commit c338b5bf authored by Romain Courteaud's avatar Romain Courteaud

Update the slap library interface.

parent f1e9e2a2
......@@ -121,6 +121,20 @@ class ISoftwareRelease(IBuildoutController):
Returns a string representing the uri of the software release.
"""
def getState():
"""
Returns a string representing the expected state of the software
installation.
The result can be: available, destroyed
"""
def destroyed():
"""
Notify (to the slapgrid server) that the software installation has
been correctly destroyed.
"""
class IComputerPartition(IBuildoutController, IRequester):
"""
Computer Partition interface specification
......@@ -194,6 +208,46 @@ class IComputerPartition(IBuildoutController, IRequester):
log -- a text explaining why the method was called
"""
def getCertificate():
"""
Returns a dictionnary containing the authentification certificates
associated to the computer partition.
The dictionnary keys are:
key -- value is a SSL key
certificate -- value is a SSL certificate
Raise an INotFoundError if no software release is associated.
"""
def setConnectionDict(connection_dict, slave_reference=None):
"""
Store the connection parameters associated to a partition.
connection_dict -- dictionary of parameter used to fill the
connection dict of the partition.
slave_reference -- current reference of the slave instance to modify
"""
def getConnectionParameter(key):
"""
Return the connection parameter associate to the key.
Raise an INotFoundError if no key is defined.
key -- a string name of the parameter
"""
def rename(partition_reference, slave_reference=None):
"""
Change the partition reference of a partition
partition_reference -- new local reference of the instance used by the recipe
to identify the instances.
slave_reference -- current reference of the slave instance to modify
"""
class IComputer(Interface):
"""
Computer interface specification
......@@ -238,6 +292,13 @@ class IComputer(Interface):
log -- a text explaining why the method was called
"""
def updateConfiguration(configuration_xml):
"""
Report the current computer configuration.
configuration_xml -- computer XML description generated by slapformat
"""
class IOpenOrder(IRequester):
"""
Open Order interface specification
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment