a12b1be728 
					 
					
						
						
							
							move build.rs and friends to pbs-buildcfg  
						
						 
						
						... 
						
						
						
						with this the main crate won't be re-compiled every time a
*binary* is modified
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-07-19 14:59:18 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						4805edc4ec 
					 
					
						
						
							
							move more tools for the client into subcrates  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-07-19 10:07:12 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						9eb784076c 
					 
					
						
						
							
							move more helpers to pbs-tools  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-07-19 10:07:12 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						9517a5759a 
					 
					
						
						
							
							fix   #3526 : correctly filter tasks with 'since' and 'until'  
						
						 
						
						... 
						
						
						
						The previous assumption was that the Tasks returned by the Iterator are
sorted by the starttime, but that is not actually the case, and
could never have been, since we append the tasks into the log when
they are finished (not started) and running tasks are always iterated
first.
To correctly filter (and simplify the the api call) we forgo the
combinators, and use a for loop instead. This way we only have to do
the since/until checks only once per Task, but have to do the
start/limit counting ourselves.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-07-14 09:39:14 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						289738dc1a 
					 
					
						
						
							
							api: apt: add endpoints for adding/changing repositories  
						
						 
						
						... 
						
						
						
						Signed-off-by: Fabian Ebner <f.ebner@proxmox.com > 
						
						
					 
					
						2021-07-09 13:45:45 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						d830804f02 
					 
					
						
						
							
							api: apt: add repositories call  
						
						 
						
						... 
						
						
						
						Signed-off-by: Fabian Ebner <f.ebner@proxmox.com > 
						
						
					 
					
						2021-07-09 13:45:45 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						bbff317aa7 
					 
					
						
						
							
							api: disk list: sort by name  
						
						 
						
						... 
						
						
						
						So callers get more stable results. Most noticeable, the disk list in
the web UI doesn't jump around upon reloading, and while sorting could
be done directly there, like this other callers get the benefit too.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com > 
						
						
					 
					
						2021-07-09 13:02:30 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						95f9d67ce9 
					 
					
						
						
							
							move UPID to pbs-api-types, add UPIDExt  
						
						 
						
						... 
						
						
						
						pbs-server side related methods are added via the UPIDExt
trait
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-07-07 13:51:03 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						770a36e53a 
					 
					
						
						
							
							add pbs-tools subcrate  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-07-06 15:10:37 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						d420962fbc 
					 
					
						
						
							
							split out pbs-runtime module  
						
						 
						
						... 
						
						
						
						These are mostly tokio specific "hacks" or "workarounds" we
only really need/want in our binaries without pulling it in
via our library crates.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-07-06 14:52:25 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						85beb7d875 
					 
					
						
						
							
							tree-wide: switch to using mod.rs  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-07-06 12:04:52 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						af06decd1b 
					 
					
						
						
							
							split out pbs-buildcfg module  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-07-06 12:00:14 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						2de4dc3a81 
					 
					
						
						
							
							backup/chunk_store: optionally log progress on creation  
						
						 
						
						... 
						
						
						
						and enable it for the worker variants
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-06-04 09:32:09 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						b90036dadd 
					 
					
						
						
							
							cleanup: factor out config::datastore::lock_config()  
						
						 
						
						
						
						
					 
					
						2021-06-04 09:04:14 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						4708f4fc21 
					 
					
						
						
							
							api2/config/datastore: change create datastore api call to a worker  
						
						 
						
						... 
						
						
						
						so that longer running creates (e.g. a slow storage), does not
run in a timeout and we can follow its creation
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com > 
						
						
					 
					
						2021-06-04 09:02:05 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						c24cb13382 
					 
					
						
						
							
							api: node/journal: fix parameter extraction of /nodes/node/journal  
						
						 
						
						... 
						
						
						
						by extracting them via the api macro into the function signature
this fixes an issue, where giving 'since' and 'until' where not
used since we tried to extract them as 'str' while they were numbers.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2021-05-25 13:26:51 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						e9c2638f90 
					 
					
						
						
							
							apt: fix removal of non-existant http-proxy config  
						
						 
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2021-05-25 11:54:46 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						338c545f85 
					 
					
						
						
							
							tasks: fix typos in API description  
						
						 
						
						... 
						
						
						
						Signed-off-by: Oguz Bektas <o.bektas@proxmox.com > 
						
						
					 
					
						2021-05-25 07:54:57 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						1d781c5b20 
					 
					
						
						
							
							update proxmox-http dependency  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-05-17 11:29:24 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						578895336a 
					 
					
						
						
							
							SimpleHttp: factor out product-specific bits  
						
						 
						
						... 
						
						
						
						in preparation of moving the abstraction to proxmox_http
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-05-17 10:32:22 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						4229633d98 
					 
					
						
						
							
							move ProxyConfig to proxmox_http  
						
						 
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-05-17 10:31:27 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						440472cb32 
					 
					
						
						
							
							correctly set apt proxy configuration  
						
						 
						
						
						
						
					 
					
						2021-05-12 12:19:24 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						fca1cef29f 
					 
					
						
						
							
							hot-reload proxy certificate when updating via the API  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-05-11 16:28:08 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						a1b71c3c7d 
					 
					
						
						
							
							fix   #3296 : use proxy client to retrieve changelog  
						
						 
						
						... 
						
						
						
						Signed-off-by: Dylan Whyte <d.whyte@proxmox.com > 
						
						
					 
					
						2021-05-10 08:48:52 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						2732c47466 
					 
					
						
						
							
							cleanup src/api2/node/config.rs  
						
						 
						
						... 
						
						
						
						- add return type
- fix permissions
- fix descriptions 
						
						
					 
					
						2021-05-10 08:25:43 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						e5ef69ecf7 
					 
					
						
						
							
							cleanup: split SimpleHttp client into extra file  
						
						 
						
						
						
						
					 
					
						2021-05-06 10:22:24 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						39c5db7f0f 
					 
					
						
						
							
							move basic ACME types into src/api2/types/acme.rs  
						
						 
						
						... 
						
						
						
						And rename AccountName into AcmeAccountName. 
						
						
					 
					
						2021-05-04 11:32:18 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						09989d9963 
					 
					
						
						
							
							add node/{node}/config api path  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-05-04 09:32:42 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						4088d5bc62 
					 
					
						
						
							
							add node/{node}/certificates api call  
						
						 
						
						... 
						
						
						
						API like in PVE:
GET    .../info             => current cert information
POST   .../custom           => upload custom certificate
DELETE .../custom           => delete custom certificate
POST   .../acme/certificate => order acme certificate
PUT    .../acme/certificate => renew expiring acme cert
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-05-04 09:31:30 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						398636b61c 
					 
					
						
						
							
							api2/node/status: extend node status  
						
						 
						
						... 
						
						
						
						to be more on par with pve
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-04-23 10:30:30 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						eb70464839 
					 
					
						
						
							
							api2/nodes/status: use NodeStatus struct  
						
						 
						
						... 
						
						
						
						Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2021-04-23 10:30:30 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						9104152a83 
					 
					
						
						
							
							HttpsConnector: add proxy support  
						
						 
						
						
						
						
					 
					
						2021-04-21 15:29:17 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						26153589ba 
					 
					
						
						
							
							new http client implementation SimpleHttp (avoid static HTTP_CLIENT)  
						
						 
						
						... 
						
						
						
						This one will have proxy support. 
						
						
					 
					
						2021-04-21 15:29:17 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						a32bb86df9 
					 
					
						
						
							
							api subscription: drop old hack for api-macro issue  
						
						 
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2021-03-25 12:03:33 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						d1d74c4367 
					 
					
						
						
							
							typo fixes all over the place  
						
						 
						
						... 
						
						
						
						found and semi-manually replaced by using:
 codespell -L mut -L crate -i 3 -w
Mostly in comments, but also email notification and two occurrences
of misspelled  'reserved' struct member, which where not used and
cargo build did not complain about the change, soo ...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2021-03-10 16:39:57 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						367c0ff7c6 
					 
					
						
						
							
							clippy: allow api functions with many arguments  
						
						 
						
						... 
						
						
						
						some of those can be reduced/cleaned up when we have updater support in
the api macro.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-26 09:54:52 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						3e461dec1c 
					 
					
						
						
							
							apt: let api handle optional bool with default  
						
						 
						
						... 
						
						
						
						one less FIXME :)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com >
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 11:41:46 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						4d08e25913 
					 
					
						
						
							
							clippy: rewrite ifs with identical return values  
						
						 
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com >
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 11:41:43 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						81b2a87232 
					 
					
						
						
							
							clippy: fix Mutex with unused value  
						
						 
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com >
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-01-25 11:41:36 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						b92cad0938 
					 
					
						
						
							
							clippy: convert single match to if let  
						
						 
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-20 16:23:54 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						ea368a06cd 
					 
					
						
						
							
							clippy: misc. fixes  
						
						 
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-20 16:23:54 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						38556bf60d 
					 
					
						
						
							
							clippy: remove explicit returns  
						
						 
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-20 16:23:54 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						3984a5fd77 
					 
					
						
						
							
							clippy: is_some/none/ok/err/empty  
						
						 
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-20 16:23:54 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						397356096a 
					 
					
						
						
							
							clippy: remove needless bool literals  
						
						 
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-20 16:23:52 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						4428818412 
					 
					
						
						
							
							clippy: remove unnecessary clones  
						
						 
						
						... 
						
						
						
						and from::<T>(T)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-01-20 16:22:59 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						9b93c62044 
					 
					
						
						
							
							remove unused descriptions from api macros  
						
						 
						
						... 
						
						
						
						these are now a hard error in the api macro
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-12-09 10:55:18 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						8c62c15f56 
					 
					
						
						
							
							follouwp: whitespace cleanup  
						
						 
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2020-11-12 11:02:45 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						51ac17b56e 
					 
					
						
						
							
							api: apt/versions: fix running_kernel string for unknown package case  
						
						 
						
						... 
						
						
						
						Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com > 
						
						
					 
					
						2020-11-12 11:02:20 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						5e293f1315 
					 
					
						
						
							
							apt: use typed response for get_versions  
						
						 
						
						... 
						
						
						
						...and cleanup get_versions for manager CLI.
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com > 
						
						
					 
					
						2020-11-12 10:15:32 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						e754da3ac2 
					 
					
						
						
							
							api: versions: add version also in server package unknown case  
						
						 
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2020-11-11 18:30:33 +01:00