]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
add ACME related data models
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 16 Mar 2021 10:24:18 +0000 (11:24 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 16 Mar 2021 11:25:58 +0000 (12:25 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/Makefile
src/data/model/ACME.js [new file with mode: 0644]
src/data/model/Certificates.js [new file with mode: 0644]

index 46b90ae025c7a42f76a0062ead03f1d55bd53865..3861bfc4ad088f54d5dc2fe86bd9c917fabf6822 100644 (file)
@@ -15,6 +15,8 @@ JSSRC=                                        \
        data/RRDStore.js                \
        data/TimezoneStore.js           \
        data/model/Realm.js             \
+       data/model/Certificates.js      \
+       data/model/ACME.js              \
        form/DisplayEdit.js             \
        form/ExpireDate.js              \
        form/IntegerField.js            \
diff --git a/src/data/model/ACME.js b/src/data/model/ACME.js
new file mode 100644 (file)
index 0000000..4a82355
--- /dev/null
@@ -0,0 +1,27 @@
+Ext.define('proxmox-acme-accounts', {
+    extend: 'Ext.data.Model',
+    fields: ['name'],
+    proxy: {
+       type: 'proxmox',
+    },
+    idProperty: 'name',
+});
+
+Ext.define('proxmox-acme-challenges', {
+    extend: 'Ext.data.Model',
+    fields: ['id', 'type', 'schema'],
+    proxy: {
+       type: 'proxmox',
+    },
+    idProperty: 'id',
+});
+
+
+Ext.define('proxmox-acme-plugins', {
+    extend: 'Ext.data.Model',
+    fields: ['type', 'plugin', 'api'],
+    proxy: {
+       type: 'proxmox',
+    },
+    idProperty: 'plugin',
+});
diff --git a/src/data/model/Certificates.js b/src/data/model/Certificates.js
new file mode 100644 (file)
index 0000000..f3e2a7f
--- /dev/null
@@ -0,0 +1,6 @@
+Ext.define('proxmox-certificate', {
+    extend: 'Ext.data.Model',
+
+    fields: ['filename', 'fingerprint', 'issuer', 'notafter', 'notbefore', 'subject', 'san', 'public-key-bits', 'public-key-type'],
+    idProperty: 'filename',
+});