Commit Graph

137 Commits

Author SHA1 Message Date
René Jochum
6bb4301665 Fix the WebSocket client to work with none PVE servers.
For debugging I tested the WebSocket client with my Protocol::WebSocket
server (i have hexdumps in it), this patch is required to make it work
with it. I'm pretty sure we need it for Proxies too.
2018-06-06 06:09:26 +02:00
Dietmar Maurer
aa5833d6e7 Remove the File::HomeDir requirement
Simply use $ENV{HOME} instead.
2018-06-05 12:07:09 +02:00
Dietmar Maurer
69aa81b396 use SectionConfig for PVE::APIClient::Config 2018-06-05 11:44:45 +02:00
Dietmar Maurer
aa9d64b341 help.pm: fix generate usage string (hide password option) 2018-06-05 10:37:41 +02:00
Dietmar Maurer
cff6d4f9a3 add PVE::Tools::extract_param helper 2018-06-05 09:33:43 +02:00
Dietmar Maurer
184877d47a register standard option inside PVE::APIClient::Config 2018-06-05 08:03:57 +02:00
Dietmar Maurer
eaf20c2f29 imported SectionConfig from pve-common 2018-06-05 07:51:00 +02:00
Dietmar Maurer
db278c3dd2 remove useless comments 2018-06-05 07:41:34 +02:00
René Jochum
f79acf69e7 Implement remote remove
Signed-off-by: René Jochum <r.jochum@proxmox.com>
2018-06-05 07:38:14 +02:00
René Jochum
e2ca543cee Add a basic implementation of remote list
Signed-off-by: René Jochum <r.jochum@proxmox.com>
2018-06-05 07:10:10 +02:00
René Jochum
2d0ebe218c Implement remote add
Signed-off-by: René Jochum <r.jochum@proxmox.com>
2018-06-05 07:03:28 +02:00
René Jochum
06039c7f9b Add config class.
Signed-off-by: René Jochum <r.jochum@proxmox.com>
2018-06-05 06:26:17 +02:00
Dietmar Maurer
63c02d8ce7 implement help 2018-06-04 13:01:49 +02:00
Dietmar Maurer
d950c2e69c include PVE/PTY.pm (copied from pve-common) 2018-06-04 08:29:26 +02:00
René Jochum
cf87ca4254 Add .gitignore
Signed-off-by: René Jochum <r.jochum@proxmox.com>
2018-06-04 06:40:49 +02:00
Dietmar Maurer
2779eec998 correctly use HTTP::Response 2018-05-30 11:28:18 +02:00
Dietmar Maurer
84d4c3e267 remove generic websocket code - not worth to share 2018-05-30 10:40:06 +02:00
Dietmar Maurer
1824383b71 implement basic websocket protocol 2018-05-30 10:35:27 +02:00
Dietmar Maurer
f211e13f7e install missing file PVE/APIClient/Config.pm 2018-05-29 11:45:10 +02:00
Dietmar Maurer
aa570b3853 move config related code to PVE/APIClient/Config.pm 2018-05-29 09:33:05 +02:00
Dietmar Maurer
3454a319f2 use new PVE::APIClient::Config class, register_standard_option 'pveclient-remote-name'
and implement command line completion for 'remote' names.
2018-05-29 09:20:25 +02:00
Dietmar Maurer
a31c7b279b PVE/APIClient/Config.pm: new class to handle configuration file 2018-05-29 09:18:26 +02:00
Dietmar Maurer
84ba32e5d4 lxc.pm: add test code to read config from ~/.pveclient 2018-05-29 08:36:03 +02:00
Dietmar Maurer
f5fcd82647 add code to print perl package dependencies
We want to minimize that list ...
2018-05-24 13:58:50 +02:00
Dietmar Maurer
a8aa5b6371 improve bash completion 2018-05-24 13:28:28 +02:00
Dietmar Maurer
a8d03417de add split_args helper 2018-05-24 11:06:15 +02:00
Dietmar Maurer
f507a398be use correct name for bash completion file 2018-05-24 10:55:35 +02:00
Dietmar Maurer
dce6ecbc50 add simple bash completion code 2018-05-24 10:27:01 +02:00
Dietmar Maurer
adf285bf0d add stub for lxc commands 2018-05-23 12:19:34 +02:00
Dietmar Maurer
c5111270eb improve usage text 2018-05-23 11:56:40 +02:00
Dietmar Maurer
a04fd959f6 use get_options from PVE::JSONSchema 2018-05-23 10:57:34 +02:00
Dietmar Maurer
565bbc73ca copy and use files from pve-common packages
We don't want to depend on pve-common, so we simply copy used files.
2018-05-23 10:53:55 +02:00
Dietmar Maurer
81ddc6f6ee comment out upload target
this is experimental code
2018-05-22 14:20:55 +02:00
Dietmar Maurer
c1629a4b5a add debian package files 2018-05-22 14:19:53 +02:00
Dietmar Maurer
e4f8892159 add Makefile 2018-05-22 14:14:56 +02:00
Dietmar Maurer
8ef77d2567 add API definition 2018-05-22 14:11:05 +02:00
Dietmar Maurer
29505e2cb1 add client skeleton 2018-05-22 14:03:28 +02:00