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
22
Merge Requests
22
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.core
Commits
4eaf2efb
Commit
4eaf2efb
authored
Dec 11, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interface xxx ( all this interface is wrong )
parent
1fdcf446
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
slapos/slap/interface/slap.py
slapos/slap/interface/slap.py
+10
-7
No files found.
slapos/slap/interface/slap.py
View file @
4eaf2efb
...
...
@@ -576,20 +576,23 @@ class IStandaloneSlapOS(ISupply, IRequester):
"""
def
register
():
"""Creates configuration file, starts the SlapOS proxy.
"""Creates configuration file, starts the SlapOS proxy.
TODO ?
Error cases:
* `socket.SocketError` when failed to bind `server_ip` / `server_port`.
SlapOS proxy might already be running.
"""
def
format
(
partition_count
,
ipv4_url
,
ipv6_url
):
def
simple_format
(
partition_count
,
ipv4_address
,
ipv6_address
):
"""Creates `partition_count` partitions.
All partitions are created to listen on `ipv4_
url` and `ipv6_url
`.
All partitions are created to listen on `ipv4_
address` and `ipv6_address
`.
Stop and delete previously existing instances. XXX
.
Stop and delete previously existing instances. XXX
???
Error when already running.
This is a simplified version of format that uses current user and
same ips for all partitions.
"""
def
getInstallProcess
():
...
...
@@ -611,7 +614,7 @@ class IStandaloneSlapOS(ISupply, IRequester):
""" XXX do we need need getPartition?
"""
def
s
top
():
def
s
hutdown
():
"""Stop embedded SlapOS server and running instances.
"""
...
...
@@ -620,7 +623,7 @@ class IStandaloneSlapOS(ISupply, IRequester):
In most cases, this method is not recommended because it's
usually convenient to keep softwares installed.
XXX bad idea ?
XXX bad idea ?
this is just .shutdown() the shutil.rmtree ?
"""
...
...
@@ -628,7 +631,7 @@ class IStandaloneSlapOSProcess(Interface):
"""A background process. XXX more doc
"""
return_code
=
Attribute
(
"""Return code of the process.
None if process is still running or was killed.
None if process is still running or was killed.
( XXX why no return code if killed ?)
"""
)
output
=
Attribute
(
"""output of the program."""
)
...
...
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