Dietmar Maurer
9ce21e005d
src/rrd/cache.rs: display/log error when RRD load fails
2020-05-25 10:18:53 +02:00
Dietmar Maurer
207d0c7714
src/rrd/rrd.rs: store/verify magic number
2020-05-25 09:21:54 +02:00
Dietmar Maurer
bfc2f8b7a2
src/rrd/rrd.rs: implement DST_COUNTER
2020-05-25 08:14:30 +02:00
Dietmar Maurer
d261516f2d
src/rrd/rrd.rs: correctly compute derived values
...
use f64 for time.
2020-05-25 07:02:04 +02:00
Dietmar Maurer
f4561029ba
src/rrd/rrd.rs: implement DST_DERIVE
2020-05-24 19:02:35 +02:00
Dietmar Maurer
7acdec12e8
src/rrd/rrd.rs: restructure whole code
2020-05-24 16:51:28 +02:00
Dietmar Maurer
777f527603
src/rrd/rrd.rs: reduce size by using f64:NAN as UNKNOWN
2020-05-24 09:09:09 +02:00
Dietmar Maurer
fd2c16f704
src/rrd/rrd.rs: simplify an fix old value deletion
2020-05-24 06:44:06 +02:00
Dietmar Maurer
6357746f2e
rrd: fix display interval, try to avoid numeric errors
2020-05-23 16:03:43 +02:00
Dietmar Maurer
69da9baf59
rrd: simplify code
2020-05-23 15:37:17 +02:00
Dietmar Maurer
e073e5c107
rrd: pack multiple rrd values into th estat list
2020-05-23 14:03:44 +02:00
Dietmar Maurer
1c0117790f
add experimental rrd api to get cpu stats
2020-05-23 11:50:53 +02:00
Dietmar Maurer
5bc85d2d04
add simple rrd implementation
2020-05-23 10:42:48 +02:00
Dietmar Maurer
c5b2694a44
bump version to 0.1.34-1
2020-05-20 13:17:55 +02:00
Dominik Csapak
10012dcb17
add 'constnamemap' macro
...
to be able to define constant values but still have some mapping to
the name of it
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-20 13:16:17 +02:00
Dietmar Maurer
34d09a5d07
pumb version to 0.1.33-1
2020-05-20 06:26:35 +02:00
Dietmar Maurer
2f8a28f34c
proxmox/src/api/section_config.rs: simplify code
2020-05-20 06:25:07 +02:00
Dominik Csapak
b1fd556f3b
section_config: fixup fallback schema in parse
...
we also have to fallback to the id_schema of the section_config when
we parse it, not only on write
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-20 06:16:34 +02:00
Dietmar Maurer
456e6eaa0b
bump version to 0.1.32
2020-05-19 09:51:38 +02:00
Dominik Csapak
2f039380d2
proxmox: section_config: add convert_to_typed_array
...
converts a parsed section config to an Vector of typed items
this way we can simply get a list of users from the user config
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-19 09:09:47 +02:00
Dominik Csapak
e7a5768e04
proxmox: section_config: add id_property to SectionConfigPlugin
...
if set in the SectionConfigPlugin, we set the given
field to the section_id for each entry
this way we can have e.g. the userid in the Struct and ObjectSchema,
without having to write it twice to the config but we are still getting
it when parsing the config
when a plugin does not specify an id_property, then the id_schema of
the SectionConfig will be used as fallback
also adds a test for this with multiple plugins
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-19 09:08:49 +02:00
Dietmar Maurer
3f633844fa
depend on proxmox 0.1.31 - use Value to store result metadata
2020-05-18 09:57:35 +02:00
Dietmar Maurer
3283b4f25e
bump version to 0.1.31-1
2020-05-18 09:50:37 +02:00
Dietmar Maurer
bd4b4bdc15
proxmox/src/api/rpc_environment.rs: use Value to store metadata
...
And impl. Index and IndexMut to make it easy to access/set the metadata.
2020-05-18 09:38:00 +02:00
Fabian Grünbichler
b450a72ffa
update dependencies
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2020-05-18 09:33:52 +02:00
Wolfgang Bumiller
fa25b17cd0
api-macro: bump version to 0.1.9-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-05-18 09:17:35 +02:00
Dietmar Maurer
5fa994abb5
bump version to 0.1.30-1
2020-05-15 17:47:35 +02:00
Dietmar Maurer
3156e4c289
proxmox/src/tools/time.rs: binding for libc localtime/timelocal
2020-05-15 17:47:35 +02:00
Wolfgang Bumiller
7d6ecaa306
api-macro: remove more unnecessary parentheses
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-05-15 09:15:10 +02:00
Wolfgang Bumiller
b671b2fce2
api-macro: remove some unnecessary parentheses in output
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-05-14 15:39:40 +02:00
Dietmar Maurer
e375f2eb95
bump version to 0.1.29-1
2020-05-12 12:57:53 +02:00
Dietmar Maurer
faadd5bba5
proxmox/src/api/section_config.rs: make record_order public
...
It is sometimes usable to record the order.
2020-05-12 12:56:27 +02:00
Dietmar Maurer
3adcdacc22
bump version to 0.1.28-1
2020-05-12 09:15:47 +02:00
Dietmar Maurer
7d5a8fdda7
proxmox/src/api/section_config.rs: add support for systemd config files
2020-05-12 09:14:03 +02:00
Dietmar Maurer
414daabbcb
proxmox/src/api/section_config.rs: support array properties
2020-05-12 08:27:23 +02:00
Dietmar Maurer
e847487b29
bump version to 0.1.27-1
2020-05-08 08:08:17 +02:00
Dietmar Maurer
aaed6797a5
schema: split property string lists with comma, semicolon and white space.
2020-05-08 08:05:22 +02:00
Dietmar Maurer
813aacde7e
src/server/command_socket.rs: do not abort loop on client errors, allow backup gid
2020-05-07 09:27:33 +02:00
Dietmar Maurer
0cc97715e3
bump version to 0.1.26-1
2020-05-06 12:28:39 +02:00
Dietmar Maurer
d7c5af499b
run_cli_command: add additional rpcenv parameter
2020-05-06 12:22:56 +02:00
Dominik Csapak
d0815e5e71
change index to templates using handlebars
...
using a handlebars instance in ApiConfig, to cache the templates
as long as possible, this is currently ok, as the index template
can only change when the whole package changes
if we split this in the future, we have to trigger a reload of
the daemon on gui package upgrade (so that the template gets reloaded)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-29 17:05:53 +02:00
Wolfgang Bumiller
3133316a8a
bump version to 0.1.25-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-04-29 10:48:19 +02:00
Wolfgang Bumiller
c329cedb02
bump api macro to 0.1.8
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-04-29 10:48:19 +02:00
Wolfgang Bumiller
83d9d3e165
implement descriptions for enum variants
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-04-29 10:48:19 +02:00
Dietmar Maurer
693d8d39be
fix changelog entry for proxmox 0.1.23
2020-04-28 08:19:26 +02:00
Dietmar Maurer
51782f7b4f
bump proxmox version to 0.1.24
2020-04-28 08:16:46 +02:00
Dietmar Maurer
e93a36955d
proxmox/src/api/section_config.rs - convert_to_array: remove static lifetime
...
not required...
2020-04-28 08:13:44 +02:00
Dietmar Maurer
9e10d85538
src/api/cli/text_table.rs - format_object: skip optional properties without data
2020-04-27 06:23:26 +02:00
Dietmar Maurer
e229c3d582
bump proxmox version to 0.1.23
2020-04-25 17:04:47 +02:00
Dietmar Maurer
b6765d06c5
api/cli/command.rs: handle fixed_param
2020-04-25 16:17:39 +02:00