[pmg-devel] [PATCH pmg-api v4 09/11] pmgconfig: add dkim commands

Stoiko Ivanov s.ivanov at proxmox.com
Mon Oct 21 19:23:33 CEST 2019


Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 src/PMG/CLI/pmgconfig.pm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/PMG/CLI/pmgconfig.pm b/src/PMG/CLI/pmgconfig.pm
index 6aa27ed..49d5be2 100644
--- a/src/PMG/CLI/pmgconfig.pm
+++ b/src/PMG/CLI/pmgconfig.pm
@@ -18,6 +18,7 @@ use PMG::LDAPConfig;
 use PMG::LDAPSet;
 use PMG::Config;
 use PMG::Ticket;
+use PMG::API2::DKIMSign;
 
 use base qw(PVE::CLIHandler);
 
@@ -190,6 +191,12 @@ our $cmddef = {
     apicert => [ __PACKAGE__, 'apicert', []],
     tlscert => [ __PACKAGE__, 'tlscert', []],
     init => [ __PACKAGE__, 'init', []],
+    dkim_set => [ 'PMG::API2::DKIMSign', 'set_selector', []],
+    dkim_record => [ 'PMG::API2::DKIMSign', 'get_selector_info', [], undef,
+	sub {
+	    my ($res) = @_;
+	    print "$res->{record}\n";
+	}],
 };
 
 
-- 
2.20.1




More information about the pmg-devel mailing list