avancement planning
This commit is contained in:
+11
@@ -22,6 +22,9 @@ exports.TOP_LEVEL_ROLE_NAMES = [
|
||||
* metadata, and which keys are accepted.
|
||||
*/
|
||||
class Role {
|
||||
keyIDs;
|
||||
threshold;
|
||||
unrecognizedFields;
|
||||
constructor(options) {
|
||||
const { keyIDs, threshold, unrecognizedFields } = options;
|
||||
if (hasDuplicates(keyIDs)) {
|
||||
@@ -80,6 +83,10 @@ function hasDuplicates(array) {
|
||||
* set, at least one of them must be set.
|
||||
*/
|
||||
class DelegatedRole extends Role {
|
||||
name;
|
||||
terminating;
|
||||
paths;
|
||||
pathHashPrefixes;
|
||||
constructor(opts) {
|
||||
super(opts);
|
||||
const { name, terminating, paths, pathHashPrefixes } = opts;
|
||||
@@ -187,6 +194,10 @@ function isTargetInPathPattern(target, pattern) {
|
||||
* For details: https://github.com/theupdateframework/taps/blob/master/tap15.md
|
||||
*/
|
||||
class SuccinctRoles extends Role {
|
||||
bitLength;
|
||||
namePrefix;
|
||||
numberOfBins;
|
||||
suffixLen;
|
||||
constructor(opts) {
|
||||
super(opts);
|
||||
const { bitLength, namePrefix } = opts;
|
||||
|
||||
Reference in New Issue
Block a user