pmcf 6.30.0 → 6.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/services/bind.mjs +30 -2
package/package.json
CHANGED
package/src/services/bind.mjs
CHANGED
|
@@ -21,7 +21,8 @@ import {
|
|
|
21
21
|
boolean_attribute_writable_true,
|
|
22
22
|
boolean_attribute_writable_false,
|
|
23
23
|
integer_attribute_writable,
|
|
24
|
-
integer_attribute
|
|
24
|
+
integer_attribute,
|
|
25
|
+
secret_attribute_writable
|
|
25
26
|
} from "pacc";
|
|
26
27
|
import {
|
|
27
28
|
Base,
|
|
@@ -191,7 +192,7 @@ class bind_zone_config extends Base {
|
|
|
191
192
|
.map(e => e.networkAddress.address);
|
|
192
193
|
|
|
193
194
|
content.push(
|
|
194
|
-
...addressesStatement("
|
|
195
|
+
...addressesStatement(" primaries", primaries, false, " ")
|
|
195
196
|
);
|
|
196
197
|
break;
|
|
197
198
|
}
|
|
@@ -219,6 +220,26 @@ class bind_zone_config extends Base {
|
|
|
219
220
|
}
|
|
220
221
|
}
|
|
221
222
|
|
|
223
|
+
export class bind_key extends Base {
|
|
224
|
+
static priority = 1;
|
|
225
|
+
static attributes = {
|
|
226
|
+
algorithm: {
|
|
227
|
+
...string_attribute_writable,
|
|
228
|
+
name: "algorithm",
|
|
229
|
+
default: "hmac-sha256"
|
|
230
|
+
},
|
|
231
|
+
secret: secret_attribute_writable
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
static {
|
|
235
|
+
addType(this);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
get service() {
|
|
239
|
+
return this.owner;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
222
243
|
class bind_object extends Base {
|
|
223
244
|
static priority = 1;
|
|
224
245
|
static attributes = {
|
|
@@ -652,6 +673,12 @@ export class bind extends CoreService {
|
|
|
652
673
|
type: networkAddressType,
|
|
653
674
|
deferredExpression: true
|
|
654
675
|
},
|
|
676
|
+
keys: {
|
|
677
|
+
...default_collection_attribute_writable,
|
|
678
|
+
name: "keys",
|
|
679
|
+
type: bind_key,
|
|
680
|
+
backpointer: owner_attribute
|
|
681
|
+
},
|
|
655
682
|
acls: {
|
|
656
683
|
...default_collection_attribute_writable,
|
|
657
684
|
name: "acls",
|
|
@@ -709,6 +736,7 @@ export class bind extends CoreService {
|
|
|
709
736
|
addType(this);
|
|
710
737
|
}
|
|
711
738
|
|
|
739
|
+
keys = new Map();
|
|
712
740
|
acls = new Map();
|
|
713
741
|
groups = new Map();
|
|
714
742
|
|