Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
d7de719c
Commit
d7de719c
authored
Nov 27, 2013
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python3: Sort all method/property lists
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
Acked-by:
Serge E. Hallyn
<
serge.hallyn@ubuntu.com
>
parent
df9e22ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
30 deletions
+30
-30
lxc.c
src/python-lxc/lxc.c
+30
-30
No files found.
src/python-lxc/lxc.c
View file @
d7de719c
...
@@ -1102,12 +1102,37 @@ static PyGetSetDef Container_getseters[] = {
...
@@ -1102,12 +1102,37 @@ static PyGetSetDef Container_getseters[] = {
};
};
static
PyMethodDef
Container_methods
[]
=
{
static
PyMethodDef
Container_methods
[]
=
{
{
"attach"
,
(
PyCFunction
)
Container_attach
,
METH_VARARGS
|
METH_KEYWORDS
,
"attach(run, payload) -> int
\n
"
"
\n
"
"Attach to the container. Returns the pid of the attached process."
},
{
"attach_wait"
,
(
PyCFunction
)
Container_attach_wait
,
METH_VARARGS
|
METH_KEYWORDS
,
"attach(run, payload) -> int
\n
"
"
\n
"
"Attach to the container. Returns the exit code of the process."
},
{
"clear_config_item"
,
(
PyCFunction
)
Container_clear_config_item
,
{
"clear_config_item"
,
(
PyCFunction
)
Container_clear_config_item
,
METH_VARARGS
|
METH_KEYWORDS
,
METH_VARARGS
|
METH_KEYWORDS
,
"clear_config_item(key) -> boolean
\n
"
"clear_config_item(key) -> boolean
\n
"
"
\n
"
"
\n
"
"Clear the current value of a config key."
"Clear the current value of a config key."
},
},
{
"console"
,
(
PyCFunction
)
Container_console
,
METH_VARARGS
|
METH_KEYWORDS
,
"console(ttynum = -1, stdinfd = 0, stdoutfd = 1, stderrfd = 2, "
"escape = 0) -> boolean
\n
"
"
\n
"
"Attach to container's console."
},
{
"console_getfd"
,
(
PyCFunction
)
Container_console_getfd
,
METH_VARARGS
|
METH_KEYWORDS
,
"console(ttynum = -1) -> boolean
\n
"
"
\n
"
"Attach to container's console."
},
{
"create"
,
(
PyCFunction
)
Container_create
,
{
"create"
,
(
PyCFunction
)
Container_create
,
METH_VARARGS
|
METH_KEYWORDS
,
METH_VARARGS
|
METH_KEYWORDS
,
"create(template, args = (,)) -> boolean
\n
"
"create(template, args = (,)) -> boolean
\n
"
...
@@ -1228,31 +1253,6 @@ static PyMethodDef Container_methods[] = {
...
@@ -1228,31 +1253,6 @@ static PyMethodDef Container_methods[] = {
"
\n
"
"
\n
"
"Wait for the container to reach a given state or timeout."
"Wait for the container to reach a given state or timeout."
},
},
{
"console"
,
(
PyCFunction
)
Container_console
,
METH_VARARGS
|
METH_KEYWORDS
,
"console(ttynum = -1, stdinfd = 0, stdoutfd = 1, stderrfd = 2, "
"escape = 0) -> boolean
\n
"
"
\n
"
"Attach to container's console."
},
{
"console_getfd"
,
(
PyCFunction
)
Container_console_getfd
,
METH_VARARGS
|
METH_KEYWORDS
,
"console(ttynum = -1) -> boolean
\n
"
"
\n
"
"Attach to container's console."
},
{
"attach"
,
(
PyCFunction
)
Container_attach
,
METH_VARARGS
|
METH_KEYWORDS
,
"attach(run, payload) -> int
\n
"
"
\n
"
"Attach to the container. Returns the pid of the attached process."
},
{
"attach_wait"
,
(
PyCFunction
)
Container_attach_wait
,
METH_VARARGS
|
METH_KEYWORDS
,
"attach(run, payload) -> int
\n
"
"
\n
"
"Attach to the container. Returns the exit code of the process."
},
{
NULL
,
NULL
,
0
,
NULL
}
{
NULL
,
NULL
,
0
,
NULL
}
};
};
...
@@ -1299,14 +1299,14 @@ PyVarObject_HEAD_INIT(NULL, 0)
...
@@ -1299,14 +1299,14 @@ PyVarObject_HEAD_INIT(NULL, 0)
};
};
static
PyMethodDef
LXC_methods
[]
=
{
static
PyMethodDef
LXC_methods
[]
=
{
{
"attach_run_shell"
,
(
PyCFunction
)
LXC_attach_run_shell
,
METH_O
,
{
"arch_to_personality"
,
(
PyCFunction
)
LXC_arch_to_personality
,
METH_O
,
"Starts up a shell when attaching, to use as the run parameter for "
"Returns the process personality of the corresponding architecture"
},
"attach or attach_wait"
},
{
"attach_run_command"
,
(
PyCFunction
)
LXC_attach_run_command
,
METH_O
,
{
"attach_run_command"
,
(
PyCFunction
)
LXC_attach_run_command
,
METH_O
,
"Runs a command when attaching, to use as the run parameter for attach "
"Runs a command when attaching, to use as the run parameter for attach "
"or attach_wait"
},
"or attach_wait"
},
{
"arch_to_personality"
,
(
PyCFunction
)
LXC_arch_to_personality
,
METH_O
,
{
"attach_run_shell"
,
(
PyCFunction
)
LXC_attach_run_shell
,
METH_O
,
"Returns the process personality of the corresponding architecture"
},
"Starts up a shell when attaching, to use as the run parameter for "
"attach or attach_wait"
},
{
"get_default_config_path"
,
(
PyCFunction
)
LXC_get_default_config_path
,
{
"get_default_config_path"
,
(
PyCFunction
)
LXC_get_default_config_path
,
METH_NOARGS
,
METH_NOARGS
,
"Returns the current LXC config path"
},
"Returns the current LXC config path"
},
...
...
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