[pve-devel] [RFC PATCH common 0/2] CLIHandler file contents patch

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Apr 5 09:20:49 CEST 2016

This patch series introduces a new mechanism that allows
CLIHandler implementations to mark certain API string
parameters to be treated as file paths, with the file
content passed as the string parameter to the actual
API2 code.

CLI man pages and documentation also reflects this by
showing those parameters as 'filepath' parameters,
instead of 'string's.

This is in preparation of ssh-key setup for containers,
but generalized since it might be useful for other stuff
as well.

Fabian Grünbichler (2):
  Handle string parameter to file content replacement
  Replace 'string' with 'filepath' for mapped params

 src/PVE/CLIHandler.pm  | 40 ++++++++++++++++++++++++++--------------
 src/PVE/RESTHandler.pm | 36 +++++++++++++++++++++++++++++++-----
 2 files changed, 57 insertions(+), 19 deletions(-)


More information about the pve-devel mailing list