Advertisement
Guest User

lxc.h

a guest
Jun 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.00 KB | None | 0 0
  1. #include <sstream>  // sstream
  2. #include <string>   // string
  3. #include <fstream>  // fille >> <<
  4. #include <list>     // list
  5. using namespace std;
  6. class lxc
  7. {
  8. public:
  9.     lxc();
  10.     ~lxc();
  11.     void readFile(string fileName, string &str);
  12.     void split(string str, list<string> &list);
  13.     void run(string command, int i);
  14.     void run(string command);
  15.     void installPackage();
  16.     void create_container(string container, string dist, string relese, string arch);
  17.     void start_container(string container);
  18.     void ls_container();
  19.     void ls_container_list(list <string> &ls);
  20.     void info_container(string container);
  21.     void stop_container(string container);
  22.     void copy_container(string container,string copy_name);
  23.     void del_container(string container);
  24.     void freeze_container(string container);
  25.     void unfreeze_container(string container);
  26.     void memory_limit(string container, int M);
  27.     void transfer_to(string container,string patch, string file_patch);
  28.     void transfer_from(string container,string patch, string file_patch);
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement