550e0d8870 
					 
					
						
						
							
							src/bin/proxmox-backup-manager.rs: add cli to generate proxy certificate  
						
						... 
						
						
						
						Without calling external openssl binary. 
						
						
					 
					
						2019-12-22 17:35:06 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5e62d19cfb 
					 
					
						
						
							
							fix create_datastore parameters:  
						
						... 
						
						
						
						comment was declared as optional but unwrap()ed, causing
panics when not using it
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-12-20 12:30:25 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						645995634a 
					 
					
						
						
							
							src/api2/config/datastore.rs - create: pass uid and gid instead of User  
						
						
						
						
					 
					
						2019-12-20 09:23:58 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e67770d496 
					 
					
						
						
							
							src/backup/chunk_store.rs - create: pass User instead of CreateOptions  
						
						
						
						
					 
					
						2019-12-20 09:11:40 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bca9093520 
					 
					
						
						
							
							api/ui: datastore: allow to set simple comment  
						
						... 
						
						
						
						for now forbid all control characters[0] in the comment value, the
section config writer cannot cope with newlines in the value, it
writes them out literally, allowing "injection" or breaking the whole
config.
In the webinterface use also a textfield, not a textarea.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-19 17:58:01 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						afdcfb5bc9 
					 
					
						
						
							
							let ChunkStore::create take CreateOptions  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-12-19 13:14:49 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2337df7b3d 
					 
					
						
						
							
							api2: add very basic 'status/usage' endpoint for nodes  
						
						... 
						
						
						
						For returning the nodes basic "usage status", for now one gets memory
and CPU utilization.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-18 17:24:32 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						feaa1ad35f 
					 
					
						
						
							
							replace file_set_contents with replace_file  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-12-18 11:16:04 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a66e7920dc 
					 
					
						
						
							
							src/api2/config/datastore.rs: set protected flags for create/delete API  
						
						
						
						
					 
					
						2019-12-18 10:52:45 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f0db500808 
					 
					
						
						
							
							src/api2/config/datastore.rs: fix api docu  
						
						
						
						
					 
					
						2019-12-18 10:48:19 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						81cc71c0d7 
					 
					
						
						
							
							use proxmox-mini-journalreader to display syslog  
						
						
						
						
					 
					
						2019-12-17 14:06:48 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						20197f7cf5 
					 
					
						
						
							
							src/api2/node/syslog.rs: use api macro  
						
						
						
						
					 
					
						2019-12-17 13:26:49 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bb084b9c91 
					 
					
						
						
							
							api2: update for latest proxmox-api changes  
						
						... 
						
						
						
						- rename ApiFuture into ApiResponseFuture
- impl. ApiHandler::Async 
						
						
					 
					
						2019-12-16 10:01:51 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						236a396aa1 
					 
					
						
						
							
							src/api2/admin/datastore.rs - prune: log retention options  
						
						
						
						
					 
					
						2019-12-14 16:32:16 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						503995c767 
					 
					
						
						
							
							src/api2/admin/datastore.rs: fix prune worker id  
						
						
						
						
					 
					
						2019-12-14 16:05:21 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						db0cb9ce0b 
					 
					
						
						
							
							update a chunk of stuff to the hyper release  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-12-13 11:24:41 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1ae5677de0 
					 
					
						
						
							
							src/api2/types.rs: use PROXMOX_SAFE_ID_FORMAT instead of FILENAME_FORMAT  
						
						
						
						
					 
					
						2019-12-12 14:15:40 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d0adf270fb 
					 
					
						
						
							
							src/api2/types.rs: introduce PROXMOX_SAFE_ID_REGEX, use it for DATASTORE_SCHEMA  
						
						
						
						
					 
					
						2019-12-12 12:37:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						66c49c21c3 
					 
					
						
						
							
							src/api2/types.rs: factor out DATASTORE_SCHEMA  
						
						
						
						
					 
					
						2019-12-11 13:45:23 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						567d3e00fb 
					 
					
						
						
							
							src/api2/node/tasks.rs: new filter "store" to filter tasks for one store  
						
						
						
						
					 
					
						2019-12-11 12:53:34 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6d04612955 
					 
					
						
						
							
							src/api2/node/tasks.rs: add "running" filter to list only running tasks  
						
						
						
						
					 
					
						2019-12-11 10:52:27 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8560fe3e5f 
					 
					
						
						
							
							src/api2/node/tasks.rs - extract_upid: avoid duplicate error message  
						
						
						
						
					 
					
						2019-12-10 13:45:56 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5830c20560 
					 
					
						
						
							
							src/bin/proxmox-backup-client.rs: add simple task management cli  
						
						
						
						
					 
					
						2019-12-10 13:43:53 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3b03abfe14 
					 
					
						
						
							
							src/api2/admin/datastore.rs: remove test_prune, add dry-run to normal prune  
						
						... 
						
						
						
						And use display_task_log on the client side. 
						
						
					 
					
						2019-12-08 10:59:47 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						163e9bbe91 
					 
					
						
						
							
							src/bin/proxmox-backup-client.rs: new display task log helper  
						
						... 
						
						
						
						New helper to display worker task logs. Use it for prune (experimental). 
						
						
					 
					
						2019-12-07 16:11:26 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6b508dd563 
					 
					
						
						
							
							src/server/formatter.rs: impl. new result attribute "active"  
						
						
						
						
					 
					
						2019-12-07 15:29:42 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						102d8d4136 
					 
					
						
						
							
							src/backup/prune.rs: implement --keep-hourly  
						
						
						
						
					 
					
						2019-12-07 11:23:33 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1f604f1a5a 
					 
					
						
						
							
							src/api2/admin/datastore.rs: add new api test_prune()  
						
						
						
						
					 
					
						2019-12-06 13:06:56 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0ab08ac980 
					 
					
						
						
							
							src/api2/admin/datastore.rs: cleanup - move schema defininition in front of rust method  
						
						
						
						
					 
					
						2019-12-06 12:36:41 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1a0678b601 
					 
					
						
						
							
							src/api2/admin/datastore.rs: remove prune parameters from status call  
						
						... 
						
						
						
						Not idea why they are added there. 
						
						
					 
					
						2019-12-06 12:32:53 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9e3f008804 
					 
					
						
						
							
							src/backup/prune.rs: add new helper keeps_something()  
						
						
						
						
					 
					
						2019-12-06 12:28:31 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9b78352188 
					 
					
						
						
							
							src/backup/prune.rs: define new struct PruneOptions  
						
						
						
						
					 
					
						2019-12-06 08:56:27 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						92acbd69f7 
					 
					
						
						
							
							src/backup/backup_info.rs: remove old prune code  
						
						
						
						
					 
					
						2019-12-06 08:29:27 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8f0b4c1f90 
					 
					
						
						
							
							src/api2/admin/datastore.rs - prune: log info about all snapshots  
						
						
						
						
					 
					
						2019-12-05 15:35:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9ce42759ec 
					 
					
						
						
							
							src/backup/backup_info.rs - compute_prune_list: remove unfinished backups  
						
						
						
						
					 
					
						2019-12-05 11:18:10 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						aeeac29bb1 
					 
					
						
						
							
							src/backup/backup_info.rs: new compute_prune_list helper  
						
						... 
						
						
						
						So that we can write regression tests for this. 
						
						
					 
					
						2019-12-04 15:49:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3d229a4a01 
					 
					
						
						
							
							Revert "test another api macro use"  
						
						... 
						
						
						
						This reverts commit a9aa52e6a8 
						
						
					 
					
						2019-12-04 14:18:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4f1e40a29e 
					 
					
						
						
							
							src/api2/admin/datastore.rs - read_backup_index: add manifest with size  
						
						... 
						
						
						
						So that the client can display the size of the index file. 
						
						
					 
					
						2019-12-04 10:03:52 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a9aa52e6a8 
					 
					
						
						
							
							test another api macro use  
						
						... 
						
						
						
						The api macro now supports hyphens in parameter names and
referencing externally defined `Schema`s, so here's an
example.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-12-03 13:41:40 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						41874331ed 
					 
					
						
						
							
							whitespace fixup  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-29 09:52:15 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2905f2b5e6 
					 
					
						
						
							
							update api macro example usage  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-29 09:51:27 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7b6c41078b 
					 
					
						
						
							
							update api macro invocation to new style  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-27 14:19:46 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6486cb853f 
					 
					
						
						
							
							first api macro usage test/example  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-27 10:05:37 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						329d40b50b 
					 
					
						
						
							
							rename ApiHandler::Async into ApiHandler::AsyncHttp  
						
						
						
						
					 
					
						2019-11-23 09:03:21 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ad51d02aa9 
					 
					
						
						
							
							src/server/rest.rs: cleanup async code  
						
						
						
						
					 
					
						2019-11-22 13:02:05 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cad540e969 
					 
					
						
						
							
							api/compat: remove remaining api_schema references  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-21 14:53:15 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a2479cfa1a 
					 
					
						
						
							
							api/compat: drop more compat imports from api_schema.rs  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-21 14:36:28 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2194824f77 
					 
					
						
						
							
							api: BoxFut -> ApiFuture  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-21 14:16:37 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3d482025b3 
					 
					
						
						
							
							move api schema into proxmox::api crate  
						
						... 
						
						
						
						And leave some compat imports in api_schema.rs to get it to
build with minimal changes.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-21 14:14:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						552c225948 
					 
					
						
						
							
							sort all property lookup tables  
						
						... 
						
						
						
						Required, because we use binary sreach to find items. 
						
						
					 
					
						2019-11-21 13:32:09 +01:00