library lxd-client
The LXD Client for PHP.
xtlsoft/lxd-client
The LXD Client for PHP.
- Thursday, April 5, 2018
- by xtlsoft
- Repository
- 1 Watchers
- 1 Stars
- 1 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
LxdClient
Lxd Client For PHP., (*1)
License
MIT, (*2)
Author
Tianle Xu xtl@xtlsoft.top
Yes, it's me, not @idawnlight. The first commit is just a mistake (because we use the same server and I ran git commit
without editing config)., (*3)
Usage
Example:, (*4)
<?php
require_once "vendor/autoload.php";
$server = LxdClient\Factory::server("local");
$container = $server->create("testFromPHP")
->limitMemory("1GB")
->limitCpu(2, "90%")
->limitDisk("5GB")
->limitSwap(false)
->restart();
$storage = LxdClient\Factory::blockStorage("/data/blockstorage/");
$storage->create("testFromPHP", "20GB")
->mount()
->attach($container, "/data");
dev-master
9999999-dev
The LXD Client for PHP.
Sources
Download
MIT
The Requires