[pve-devel] [PATCH access-control v2 0/2] Refactor API and add list and dump commands

Stoiko Ivanov s.ivanov at proxmox.com
Tue May 29 16:32:04 CEST 2018


* The patchset is based on the patch from Philip Abernethy (mailed and
  co-authored by Thomas (Lamprecht) on 04.05.2018 with subject
  pveum: introduce sub-commands)
* additionally it relies on a related patchset for pve-common (the print_table
  and print_entry subs were moved there for potential reuse by other CLIs).
  (subject of the cover-letter add print_text_table)
* 2 main changes:
  * refactoring of the API modules, to pull out common properties into a single
    place instead of copying it multiple times
  * addition of list commands for ACL, Group, Role and User)
  * addition of dump commands for Group, Role, User
* closes #1502

Stoiko Ivanov (2):
  refactor API by unifying duplicate properties
  pveum: add list and dump commands

 PVE/API2/ACL.pm      | 40 ++++++++++++----------
 PVE/API2/Group.pm    | 38 +++++++++-----------
 PVE/API2/Role.pm     | 54 ++++++++++++++---------------
 PVE/API2/User.pm     | 97 +++++++++++++++++++---------------------------------
 PVE/AccessControl.pm |  2 +-
 PVE/Auth/Plugin.pm   |  2 +-
 PVE/CLI/pveum.pm     | 23 +++++++++++++
 7 files changed, 126 insertions(+), 130 deletions(-)

-- 
2.11.0





More information about the pve-devel mailing list