Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arnaud Véron
slapos.core
Commits
c338b5bf
Commit
c338b5bf
authored
Jun 08, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the slap library interface.
parent
f1e9e2a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
0 deletions
+61
-0
slapos/slap/interface/slap.py
slapos/slap/interface/slap.py
+61
-0
No files found.
slapos/slap/interface/slap.py
View file @
c338b5bf
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment