]> git.proxmox.com Git - proxmox-backup.git/log
proxmox-backup.git
5 years agocleanup parameter types
Dietmar Maurer [Wed, 12 Dec 2018 09:37:03 +0000 (10:37 +0100)]
cleanup parameter types

5 years agoimplement completion for enums
Dietmar Maurer [Wed, 12 Dec 2018 07:33:50 +0000 (08:33 +0100)]
implement completion for enums

5 years agoimprove completion
Dietmar Maurer [Wed, 12 Dec 2018 07:18:38 +0000 (08:18 +0100)]
improve completion

5 years agodo not use default completion
Dietmar Maurer [Wed, 12 Dec 2018 06:58:07 +0000 (07:58 +0100)]
do not use default completion

5 years agoimprove bash completion
Dietmar Maurer [Wed, 12 Dec 2018 06:51:43 +0000 (07:51 +0100)]
improve bash completion

5 years agoimpl bash completion: first try
Dietmar Maurer [Tue, 11 Dec 2018 13:21:05 +0000 (14:21 +0100)]
impl bash completion: first try

5 years agoinstall bash completion scripts
Dietmar Maurer [Tue, 11 Dec 2018 11:54:10 +0000 (12:54 +0100)]
install bash completion scripts

Completion itself is not implemented.

5 years agocli/command.rs: add new type CliCommandMap
Dietmar Maurer [Tue, 11 Dec 2018 10:31:36 +0000 (11:31 +0100)]
cli/command.rs: add new type CliCommandMap

5 years agoimplement builder pattern for CliCommand
Dietmar Maurer [Tue, 11 Dec 2018 10:12:13 +0000 (11:12 +0100)]
implement builder pattern for CliCommand

5 years agocli/command.rs: implement prefix match
Dietmar Maurer [Mon, 10 Dec 2018 17:13:55 +0000 (18:13 +0100)]
cli/command.rs: implement prefix match

5 years agoimpl From for CommandLineInterface
Dietmar Maurer [Mon, 10 Dec 2018 12:51:10 +0000 (13:51 +0100)]
impl From for CommandLineInterface

5 years agorename CmdDef to CommandLineInterface
Dietmar Maurer [Mon, 10 Dec 2018 12:40:10 +0000 (13:40 +0100)]
rename CmdDef to CommandLineInterface

5 years agosrc/cli/command.rs: move code into separate file
Dietmar Maurer [Mon, 10 Dec 2018 12:36:52 +0000 (13:36 +0100)]
src/cli/command.rs: move code into separate file

5 years agotry to support nested cli command definitions
Dietmar Maurer [Mon, 10 Dec 2018 12:28:38 +0000 (13:28 +0100)]
try to support nested cli command definitions

5 years agoapi3/config/datastore.rs: implement delete
Dietmar Maurer [Sun, 9 Dec 2018 15:52:32 +0000 (16:52 +0100)]
api3/config/datastore.rs: implement delete

5 years agofile_set_contents: correctly use perm parameter
Dietmar Maurer [Sun, 9 Dec 2018 15:41:54 +0000 (16:41 +0100)]
file_set_contents: correctly use perm parameter

5 years agoimplement tools::file_set_contents
Dietmar Maurer [Sun, 9 Dec 2018 15:37:48 +0000 (16:37 +0100)]
implement tools::file_set_contents

5 years agoapi3/config/datastore.rs: impl create
Dietmar Maurer [Sun, 9 Dec 2018 11:51:31 +0000 (12:51 +0100)]
api3/config/datastore.rs: impl create

5 years agobin/pbs-datastore.rs: start implementing cli commands
Dietmar Maurer [Sun, 9 Dec 2018 10:59:32 +0000 (11:59 +0100)]
bin/pbs-datastore.rs: start implementing cli commands

5 years agorename entry to item
Dietmar Maurer [Sun, 9 Dec 2018 09:25:56 +0000 (10:25 +0100)]
rename entry to item

5 years agoapi3/config/datastore.rs: return real data
Dietmar Maurer [Sun, 9 Dec 2018 09:23:19 +0000 (10:23 +0100)]
api3/config/datastore.rs: return real data

5 years agoconfig/datastore.rs - open file for reading
Dietmar Maurer [Sun, 9 Dec 2018 09:22:39 +0000 (10:22 +0100)]
config/datastore.rs - open file for reading

5 years agocreate config dir
Dietmar Maurer [Sun, 9 Dec 2018 09:21:54 +0000 (10:21 +0100)]
create config dir

5 years agosimplify code
Dietmar Maurer [Sun, 9 Dec 2018 08:42:17 +0000 (09:42 +0100)]
simplify code

5 years agoremove some compiler warnings
Dietmar Maurer [Sat, 8 Dec 2018 13:55:54 +0000 (14:55 +0100)]
remove some compiler warnings

5 years agorename data_store to datastore
Dietmar Maurer [Sat, 8 Dec 2018 13:51:08 +0000 (14:51 +0100)]
rename data_store to datastore

5 years agocleanup api3 structure
Dietmar Maurer [Sat, 8 Dec 2018 13:44:55 +0000 (14:44 +0100)]
cleanup api3 structure

5 years agoadd data_store configuration
Dietmar Maurer [Sat, 8 Dec 2018 12:58:45 +0000 (13:58 +0100)]
add data_store configuration

5 years agochunk_store.insert_chunk: return information about existing chunks
Dietmar Maurer [Sat, 8 Dec 2018 10:25:11 +0000 (11:25 +0100)]
chunk_store.insert_chunk: return information about existing chunks

5 years agocode cleanup
Dietmar Maurer [Sat, 8 Dec 2018 10:20:02 +0000 (11:20 +0100)]
code cleanup

5 years agolock with timeout
Dietmar Maurer [Sat, 8 Dec 2018 09:57:09 +0000 (10:57 +0100)]
lock with timeout

clumsy, but I have node idea how to make it better

5 years agoimprove error messages
Dietmar Maurer [Sat, 8 Dec 2018 07:38:42 +0000 (08:38 +0100)]
improve error messages

5 years agocode cleanup
Dietmar Maurer [Sat, 8 Dec 2018 07:21:20 +0000 (08:21 +0100)]
code cleanup

5 years agodepend on nix, use flock
Dietmar Maurer [Fri, 7 Dec 2018 17:14:07 +0000 (18:14 +0100)]
depend on nix, use flock

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
5 years agodepend on libc
Dietmar Maurer [Fri, 7 Dec 2018 15:40:35 +0000 (16:40 +0100)]
depend on libc

5 years agochunk_store: use mutex
Dietmar Maurer [Fri, 7 Dec 2018 15:12:45 +0000 (16:12 +0100)]
chunk_store: use mutex

5 years agoimpl insert_chunk
Dietmar Maurer [Fri, 7 Dec 2018 13:44:56 +0000 (14:44 +0100)]
impl insert_chunk

5 years agodepend on rust-crypto
Dietmar Maurer [Fri, 7 Dec 2018 10:00:34 +0000 (11:00 +0100)]
depend on rust-crypto

5 years agostart experiments with simple chunk store
Dietmar Maurer [Fri, 7 Dec 2018 09:51:53 +0000 (10:51 +0100)]
start experiments with simple chunk store

5 years agogetopts.rs: fix test
Dietmar Maurer [Fri, 7 Dec 2018 08:02:24 +0000 (09:02 +0100)]
getopts.rs: fix test

5 years agomore cleanups
Dietmar Maurer [Thu, 6 Dec 2018 09:41:57 +0000 (10:41 +0100)]
more cleanups

5 years agocode cleanup
Dietmar Maurer [Thu, 6 Dec 2018 09:23:45 +0000 (10:23 +0100)]
code cleanup

5 years agosimplify formatter code
Dietmar Maurer [Wed, 5 Dec 2018 17:22:56 +0000 (18:22 +0100)]
simplify formatter code

5 years agoextract version from environment
Dietmar Maurer [Wed, 5 Dec 2018 13:38:37 +0000 (14:38 +0100)]
extract version from environment

5 years agoapi: add /version
Dietmar Maurer [Wed, 5 Dec 2018 13:03:15 +0000 (14:03 +0100)]
api: add /version

5 years agoadd output formatter
Dietmar Maurer [Wed, 5 Dec 2018 11:42:25 +0000 (12:42 +0100)]
add output formatter

5 years agoUtils.js: add code to make api3 request
Dietmar Maurer [Wed, 5 Dec 2018 11:39:40 +0000 (12:39 +0100)]
Utils.js: add code to make api3 request

5 years agomove src/api/server.rs -> src/server/rest.rs
Dietmar Maurer [Wed, 5 Dec 2018 09:16:23 +0000 (10:16 +0100)]
move src/api/server.rs -> src/server/rest.rs

5 years agoadd VersionInfo.js
Dietmar Maurer [Tue, 4 Dec 2018 16:58:40 +0000 (17:58 +0100)]
add VersionInfo.js

5 years agostart the GUI
Dietmar Maurer [Tue, 4 Dec 2018 16:53:10 +0000 (17:53 +0100)]
start the GUI

5 years agoset content type for static file download
Dietmar Maurer [Sun, 2 Dec 2018 10:00:52 +0000 (11:00 +0100)]
set content type for static file download

5 years agofix file download, listen to 0.0.0.0
Dietmar Maurer [Sat, 1 Dec 2018 14:21:25 +0000 (15:21 +0100)]
fix file download, listen to 0.0.0.0

5 years agoimprove Makefile
Dietmar Maurer [Sat, 1 Dec 2018 12:44:13 +0000 (13:44 +0100)]
improve Makefile

5 years agoremove www/pbs-index.html.tt, hardcode into rust for now
Dietmar Maurer [Sat, 1 Dec 2018 12:37:49 +0000 (13:37 +0100)]
remove www/pbs-index.html.tt, hardcode into rust for now

5 years agoinstall GUI index file
Dietmar Maurer [Sat, 1 Dec 2018 10:19:46 +0000 (11:19 +0100)]
install GUI index file

5 years agorevert dependency to dh-systemd (outdated), depend on GUI packages
Dietmar Maurer [Sat, 1 Dec 2018 10:04:39 +0000 (11:04 +0100)]
revert dependency to dh-systemd (outdated), depend on GUI packages

5 years agodepend on dh-systemd
Dietmar Maurer [Sat, 1 Dec 2018 09:50:30 +0000 (10:50 +0100)]
depend on dh-systemd

5 years agoapi-test-server.service: restart on failure
Dietmar Maurer [Fri, 30 Nov 2018 16:41:15 +0000 (17:41 +0100)]
api-test-server.service: restart on failure

5 years agoadd systemd service file to start daemon
Dietmar Maurer [Fri, 30 Nov 2018 16:27:33 +0000 (17:27 +0100)]
add systemd service file to start daemon

5 years agocleanup Makefile, add missing copyright file
Dietmar Maurer [Fri, 30 Nov 2018 16:09:50 +0000 (17:09 +0100)]
cleanup Makefile, add missing copyright file

5 years agoadd Makefile to build debian package
Dietmar Maurer [Fri, 30 Nov 2018 12:39:40 +0000 (13:39 +0100)]
add Makefile to build debian package

5 years agorename bin to src/bin/api-test-server.rs
Dietmar Maurer [Fri, 30 Nov 2018 11:48:45 +0000 (12:48 +0100)]
rename bin to src/bin/api-test-server.rs

5 years agoimprove command line parser
Dietmar Maurer [Fri, 30 Nov 2018 11:10:26 +0000 (12:10 +0100)]
improve command line parser

5 years agoimprove error message
Dietmar Maurer [Fri, 30 Nov 2018 11:07:27 +0000 (12:07 +0100)]
improve error message

5 years agofix compiler warnings, add storage/config.rs
Dietmar Maurer [Fri, 30 Nov 2018 10:15:26 +0000 (11:15 +0100)]
fix compiler warnings, add storage/config.rs

5 years agoremove missleading comment
Dietmar Maurer [Fri, 30 Nov 2018 07:47:26 +0000 (08:47 +0100)]
remove missleading comment

5 years agouse VecDeque instead of LinkedList
Dietmar Maurer [Thu, 29 Nov 2018 16:28:28 +0000 (17:28 +0100)]
use VecDeque instead of LinkedList

5 years agoSectionConfig::write - return raw string
Dietmar Maurer [Thu, 29 Nov 2018 15:47:40 +0000 (16:47 +0100)]
SectionConfig::write -  return raw string

5 years agoSectionConfig::write - verify data
Dietmar Maurer [Thu, 29 Nov 2018 12:18:15 +0000 (13:18 +0100)]
SectionConfig::write - verify data

5 years agoschema: implement verify_json
Dietmar Maurer [Thu, 29 Nov 2018 12:06:43 +0000 (13:06 +0100)]
schema: implement verify_json

5 years agosimplify var names
Dietmar Maurer [Thu, 29 Nov 2018 08:33:27 +0000 (09:33 +0100)]
simplify var names

5 years agosection_config: add write - first try
Dietmar Maurer [Wed, 28 Nov 2018 13:09:35 +0000 (14:09 +0100)]
section_config: add write - first try

5 years agosection_config: add new struct SectionConfigData
Dietmar Maurer [Wed, 28 Nov 2018 07:25:26 +0000 (08:25 +0100)]
section_config: add new struct SectionConfigData

5 years agoavoid clone
Dietmar Maurer [Tue, 27 Nov 2018 13:10:16 +0000 (14:10 +0100)]
avoid clone

5 years agoSectionConfig::parse - return Value
Dietmar Maurer [Tue, 27 Nov 2018 11:54:40 +0000 (12:54 +0100)]
SectionConfig::parse - return Value

5 years agoSectionConfig: add schema for ID property
Dietmar Maurer [Tue, 27 Nov 2018 11:34:56 +0000 (12:34 +0100)]
SectionConfig: add schema for ID property

5 years agosection_config: improve parser
Dietmar Maurer [Tue, 27 Nov 2018 10:55:21 +0000 (11:55 +0100)]
section_config: improve parser

5 years agosection_config: parse section content
Dietmar Maurer [Tue, 27 Nov 2018 08:01:36 +0000 (09:01 +0100)]
section_config: parse section content

5 years agoSectionConfigPlugin: add schema
Dietmar Maurer [Tue, 27 Nov 2018 07:41:25 +0000 (08:41 +0100)]
SectionConfigPlugin: add schema

5 years agosection_config: further parser improvements
Dietmar Maurer [Mon, 26 Nov 2018 17:22:07 +0000 (18:22 +0100)]
section_config: further parser improvements

5 years agouse is_empty() to check for empty string
Dietmar Maurer [Mon, 26 Nov 2018 17:02:29 +0000 (18:02 +0100)]
use is_empty() to check for empty string

5 years agosection_config: improve parser
Dietmar Maurer [Mon, 26 Nov 2018 17:01:24 +0000 (18:01 +0100)]
section_config: improve parser

5 years agoadd some inline documentation
Dietmar Maurer [Sat, 24 Nov 2018 16:52:43 +0000 (17:52 +0100)]
add some inline documentation

5 years agoStringSchema: add method to check string length
Dietmar Maurer [Sat, 24 Nov 2018 11:37:05 +0000 (12:37 +0100)]
StringSchema: add method to check string length

5 years agoArraySchema: add method to check array length
Dietmar Maurer [Sat, 24 Nov 2018 11:33:44 +0000 (12:33 +0100)]
ArraySchema: add method to check array length

5 years agoparse_property_string: allow arrays
Dietmar Maurer [Sat, 24 Nov 2018 11:21:56 +0000 (12:21 +0100)]
parse_property_string: allow arrays

So that we can build simple lists like "1,2,3,4"

5 years agorename test case
Dietmar Maurer [Sat, 24 Nov 2018 10:21:01 +0000 (11:21 +0100)]
rename test case

5 years agoparse_property_string: first try
Dietmar Maurer [Sat, 24 Nov 2018 10:20:17 +0000 (11:20 +0100)]
parse_property_string: first try

5 years agoadd test for VerifyFn
Dietmar Maurer [Sat, 24 Nov 2018 07:30:23 +0000 (08:30 +0100)]
add test for VerifyFn

5 years agoremove outdated test code
Dietmar Maurer [Sat, 24 Nov 2018 07:15:08 +0000 (08:15 +0100)]
remove outdated test code

5 years agoArraySchema: Add min_length and max_length
Dietmar Maurer [Sat, 24 Nov 2018 07:12:23 +0000 (08:12 +0100)]
ArraySchema: Add min_length and max_length

5 years agoremove description from ApiMethod
Dietmar Maurer [Fri, 23 Nov 2018 16:02:50 +0000 (17:02 +0100)]
remove description from ApiMethod

We use the description from parameters ObjectSchema instead.

5 years agoimplement Into Arc<Schema>
Dietmar Maurer [Fri, 23 Nov 2018 12:18:41 +0000 (13:18 +0100)]
implement Into Arc<Schema>

5 years agoimplement ArraySchema
Dietmar Maurer [Fri, 23 Nov 2018 11:05:55 +0000 (12:05 +0100)]
implement ArraySchema

5 years agoremove parameter macro, implement ObjectSchema builder
Dietmar Maurer [Fri, 23 Nov 2018 10:34:15 +0000 (11:34 +0100)]
remove parameter macro, implement ObjectSchema builder

And store "optional" attribute inside properties hash.

5 years agostart using builder pattern instead of macros
Dietmar Maurer [Fri, 23 Nov 2018 08:33:41 +0000 (09:33 +0100)]
start using builder pattern instead of macros

5 years agoimplement schema registry
Dietmar Maurer [Thu, 22 Nov 2018 10:23:49 +0000 (11:23 +0100)]
implement schema registry

5 years agouse Arc pointer to properties
Dietmar Maurer [Tue, 20 Nov 2018 15:54:29 +0000 (16:54 +0100)]
use Arc pointer to properties

5 years agosection_config.rs: add some test code
Dietmar Maurer [Mon, 19 Nov 2018 07:07:22 +0000 (08:07 +0100)]
section_config.rs: add some test code

5 years agoadd section_config.rs
Dietmar Maurer [Mon, 19 Nov 2018 05:47:39 +0000 (06:47 +0100)]
add section_config.rs