Lines Matching defs:container

121      * container. As lxc_attach() calls fork() PyOS_AfterFork should be called
432 struct lxc_container *container;
438 lxc_container_put(self->container);
460 self->container = lxc_container_new(name, config_path);
461 if (!self->container) {
464 PyErr_Format(PyExc_RuntimeError, "%s:%s:%d: error during init for container '%s'.",
489 rv = self->container->config_file_name(self->container);
500 if (self->container->may_control(self->container)) {
510 if (self->container->is_defined(self->container)) {
520 return PyLong_FromLong(self->container->init_pid(self->container));
526 if (!self->container->name) {
530 return PyUnicode_FromString(self->container->name);
536 if (self->container->is_running(self->container)) {
548 rv = self->container->state(self->container);
582 if (self->container->attach_interface(self->container, src_name, dst_name)) {
609 if (self->container->detach_interface(self->container, ifname, NULL)) {
642 if (self->container->add_device_node(self->container, src_path,
674 ret = self->container->attach(self->container, lxc_attach_python_exec,
710 self->container->clear_config(self->container);
725 if (self->container->clear_config_item(self->container, key)) {
775 new_container = self->container->clone(self->container, newname,
808 if (self->container->console(self->container, ttynum,
824 if (self->container->console_getfd(self->container, &ttynum,
860 if (self->container->create(self->container, template_name, bdevtype, NULL,
882 if (self->container->destroy(self->container)) {
892 if (self->container->freeze(self->container)) {
912 len = self->container->get_cgroup_item(self->container, key, NULL, 0);
923 if (self->container->get_cgroup_item(self->container,
948 len = self->container->get_config_item(self->container, key, NULL, 0);
963 if (self->container->get_config_item(self->container,
980 rv = self->container->get_config_path(self->container);
1002 len = self->container->get_keys(self->container, key, NULL, 0);
1013 if (self->container->get_keys(self->container,
1034 interfaces = self->container->get_interfaces(self->container);
1094 ips = self->container->get_ips(self->container, interface, family, scope);
1149 value = self->container->get_running_config_item(self->container, key);
1176 if (self->container->load_config(self->container, path)) {
1188 if (self->container->reboot(self->container)) {
1205 if (self->container->rename(self->container, new_name)) {
1236 if (self->container->remove_device_node(self->container, src_path,
1264 if (self->container->save_config(self->container, path)) {
1284 if (self->container->set_cgroup_item(self->container, key, value)) {
1302 if (self->container->set_config_item(self->container, key, value)) {
1319 if (self->container->set_config_path(self->container, path)) {
1336 if (self->container->shutdown(self->container, timeout)) {
1362 retval = self->container->snapshot(self->container, comment_path);
1388 if (self->container->snapshot_destroy(self->container, name)) {
1403 snap_count = self->container->snapshot_list(self->container, &snap);
1444 if (self->container->snapshot_restore(self->container, name, newname)) {
1483 self->container->want_close_all_fds(self->container, true);
1486 self->container->want_close_all_fds(self->container, false);
1490 self->container->want_daemonize(self->container, true);
1493 self->container->want_daemonize(self->container, false);
1496 if (self->container->start(self->container, init_useinit, init_args))
1517 if (self->container->stop(self->container)) {
1527 if (self->container->unfreeze(self->container)) {
1545 if (self->container->wait(self->container, state, timeout)) {
1556 "Path to the container configuration",
1560 "Boolean indicating whether the container may be controlled",
1564 "Boolean indicating whether the container configuration exists",
1568 "PID of the container's init process in the host's PID namespace",
1576 "Boolean indicating whether the container is running or not",
1590 "Pass a new network device to the container."
1596 "detach a network device from the container."
1602 "Pass a new device to the container."
1608 "Attach to the container. Returns the pid of the attached process."
1614 "Attach to the container. Returns the exit code of the process."
1620 "Clear any container configuration."
1633 "Attach to container's console."
1639 "Attach to container's console."
1646 "Create a new container based on the current one."
1652 "Create a new rootfs for the container, using the given template "
1659 "Destroys the container."
1665 "Freezes the container and returns its return code."
1695 "Get a tuple of interfaces for the container."
1701 "Get a tuple of IPs for the container."
1713 "Read the container configuration from its default "
1720 "Ask the container to reboot."
1726 "Rename the container."
1732 "Remove a device from the container."
1738 "Save the container configuration to its default "
1763 "Sends SIGPWR to the container and wait for it to shutdown."
1770 "Snapshot the container and return the snapshot name "
1783 "List all snapshots for a container."
1789 "Restore a container snapshot. If newname is provided a new "
1790 "container will be created from the snapshot, otherwise an in-place "
1798 "Start the container, return True on success.\n"
1799 "When set useinit will make LXC use lxc-init to start the container.\n"
1800 "The container can be started in the foreground with daemonize=False.\n"
1807 "Stop the container and returns its return code."
1813 "Unfreezes the container and returns its return code."
1819 "Wait for the container to reach a given state or timeout."
1882 "Returns a list of container names or objects"},