lockss-turtles 0.5.0.dev4__py3-none-any.whl → 0.6.0__py3-none-any.whl
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.
- lockss/turtles/__init__.py +10 -30
- lockss/turtles/__main__.py +7 -3
- lockss/turtles/app.py +520 -109
- lockss/turtles/cli.py +540 -333
- lockss/turtles/plugin.py +207 -50
- lockss/turtles/plugin_registry.py +617 -189
- lockss/turtles/plugin_set.py +534 -187
- lockss/turtles/plugin_signing_credentials.py +84 -0
- lockss/turtles/util.py +70 -21
- {lockss_turtles-0.5.0.dev4.dist-info → lockss_turtles-0.6.0.dist-info}/LICENSE +1 -1
- lockss_turtles-0.6.0.dist-info/METADATA +64 -0
- lockss_turtles-0.6.0.dist-info/RECORD +18 -0
- {lockss_turtles-0.5.0.dev4.dist-info → lockss_turtles-0.6.0.dist-info}/WHEEL +1 -1
- unittest/lockss/turtles/__init__.py +106 -0
- unittest/lockss/turtles/test_plugin_registry.py +417 -0
- unittest/lockss/turtles/test_plugin_set.py +274 -0
- unittest/lockss/turtles/test_plugin_signing_credentials.py +102 -0
- CHANGELOG.rst +0 -113
- lockss/turtles/resources/__init__.py +0 -29
- lockss/turtles/resources/plugin-registry-catalog-schema.json +0 -27
- lockss/turtles/resources/plugin-registry-schema.json +0 -115
- lockss/turtles/resources/plugin-set-catalog-schema.json +0 -27
- lockss/turtles/resources/plugin-set-schema.json +0 -92
- lockss/turtles/resources/plugin-signing-credentials-schema.json +0 -27
- lockss_turtles-0.5.0.dev4.dist-info/METADATA +0 -1041
- lockss_turtles-0.5.0.dev4.dist-info/RECORD +0 -20
- {lockss_turtles-0.5.0.dev4.dist-info → lockss_turtles-0.6.0.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2000-2025, Board of Trustees of Leland Stanford Jr. University
|
|
4
|
+
#
|
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
|
6
|
+
# modification, are permitted provided that the following conditions are met:
|
|
7
|
+
#
|
|
8
|
+
# 1. Redistributions of source code must retain the above copyright notice,
|
|
9
|
+
# this list of conditions and the following disclaimer.
|
|
10
|
+
#
|
|
11
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
# this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
# and/or other materials provided with the distribution.
|
|
14
|
+
#
|
|
15
|
+
# 3. Neither the name of the copyright holder nor the names of its contributors
|
|
16
|
+
# may be used to endorse or promote products derived from this software without
|
|
17
|
+
# specific prior written permission.
|
|
18
|
+
#
|
|
19
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
22
|
+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
23
|
+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
24
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
25
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
26
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
27
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
28
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
29
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
+
|
|
31
|
+
# Remove in Python 3.14
|
|
32
|
+
# See https://stackoverflow.com/questions/33533148/how-do-i-type-hint-a-method-with-the-type-of-the-enclosing-class/33533514#33533514
|
|
33
|
+
from __future__ import annotations
|
|
34
|
+
|
|
35
|
+
from abc import ABC, abstractmethod
|
|
36
|
+
from pathlib import Path
|
|
37
|
+
|
|
38
|
+
from . import PydanticTestCase, ROOT
|
|
39
|
+
from lockss.turtles.plugin_signing_credentials import PluginSigningCredentials
|
|
40
|
+
|
|
41
|
+
class TestPluginSigningCredentials(PydanticTestCase):
|
|
42
|
+
|
|
43
|
+
def setUp(self) -> None:
|
|
44
|
+
super().setUp()
|
|
45
|
+
self.valid_absolute = PluginSigningCredentials(**{'kind': 'PluginSigningCredentials',
|
|
46
|
+
'plugin-signing-keystore': '/tmp/keystore.txt',
|
|
47
|
+
'plugin-signing-alias': 'myalias'}).initialize(ROOT)
|
|
48
|
+
self.valid_relative = PluginSigningCredentials(**{'kind': 'PluginSigningCredentials',
|
|
49
|
+
'plugin-signing-keystore': 'keystore.txt',
|
|
50
|
+
'plugin-signing-alias': 'myalias'}).initialize(ROOT)
|
|
51
|
+
self.valid = [self.valid_absolute, self.valid_relative]
|
|
52
|
+
|
|
53
|
+
def test_missing_kind(self) -> None:
|
|
54
|
+
self.assertPydanticMissing(lambda: PluginSigningCredentials(),
|
|
55
|
+
'kind')
|
|
56
|
+
|
|
57
|
+
def test_null_kind(self) -> None:
|
|
58
|
+
self.assertPydanticLiteralError(lambda: PluginSigningCredentials(kind=None),
|
|
59
|
+
'kind',
|
|
60
|
+
'PluginSigningCredentials')
|
|
61
|
+
|
|
62
|
+
def test_wrong_kind(self) -> None:
|
|
63
|
+
self.assertPydanticLiteralError(lambda: PluginSigningCredentials(kind='WrongKind'),
|
|
64
|
+
'kind',
|
|
65
|
+
'PluginSigningCredentials')
|
|
66
|
+
|
|
67
|
+
def test_missing_plugin_signing_alias(self) -> None:
|
|
68
|
+
self.assertPydanticMissing(lambda: PluginSigningCredentials(),
|
|
69
|
+
'plugin-signing-alias')
|
|
70
|
+
|
|
71
|
+
def test_null_plugin_signing_alias(self) -> None:
|
|
72
|
+
self.assertPydanticStringType(lambda: PluginSigningCredentials(**{'plugin-signing-alias': None}),
|
|
73
|
+
'plugin-signing-alias')
|
|
74
|
+
|
|
75
|
+
def test_missing_plugin_signing_keystore(self) -> None:
|
|
76
|
+
self.assertPydanticMissing(lambda: PluginSigningCredentials(),
|
|
77
|
+
'plugin-signing-keystore')
|
|
78
|
+
|
|
79
|
+
def test_null_plugin_signing_keystore(self) -> None:
|
|
80
|
+
self.assertPydanticStringType(lambda: PluginSigningCredentials(**{'plugin-signing-keystore': None}),
|
|
81
|
+
'plugin-signing-keystore')
|
|
82
|
+
|
|
83
|
+
def test_uninitialized(self) -> None:
|
|
84
|
+
psc = PluginSigningCredentials(**{'kind': 'PluginSigningCredentials',
|
|
85
|
+
'plugin-signing-keystore': '/tmp/keystore.txt',
|
|
86
|
+
'plugin-signing-alias': 'myalias'})
|
|
87
|
+
self.assertRaises(ValueError, lambda: psc.get_root())
|
|
88
|
+
self.assertRaises(ValueError, lambda: psc.get_plugin_signing_keystore())
|
|
89
|
+
|
|
90
|
+
def test_kind(self) -> None:
|
|
91
|
+
for valid in self.valid:
|
|
92
|
+
self.assertEqual(valid.kind, 'PluginSigningCredentials')
|
|
93
|
+
|
|
94
|
+
def test_get_plugin_signing_alias(self) -> None:
|
|
95
|
+
for valid in self.valid:
|
|
96
|
+
self.assertEqual(valid.get_plugin_signing_alias(), 'myalias')
|
|
97
|
+
|
|
98
|
+
def test_get_plugin_signing_keystore(self) -> None:
|
|
99
|
+
self.assertEqual(self.valid_absolute.get_plugin_signing_keystore(),
|
|
100
|
+
Path('/tmp/keystore.txt'))
|
|
101
|
+
self.assertEqual(self.valid_relative.get_plugin_signing_keystore(),
|
|
102
|
+
ROOT.joinpath('keystore.txt'))
|
CHANGELOG.rst
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
=============
|
|
2
|
-
Release Notes
|
|
3
|
-
=============
|
|
4
|
-
|
|
5
|
-
-----
|
|
6
|
-
0.5.0
|
|
7
|
-
-----
|
|
8
|
-
|
|
9
|
-
Released: ?
|
|
10
|
-
|
|
11
|
-
* **Features**
|
|
12
|
-
|
|
13
|
-
-----
|
|
14
|
-
0.4.0
|
|
15
|
-
-----
|
|
16
|
-
|
|
17
|
-
Released: 2023-05-17
|
|
18
|
-
|
|
19
|
-
* **Features**
|
|
20
|
-
|
|
21
|
-
* ``directory`` plugin registry layout now has the same file naming convention option as ``rcs``.
|
|
22
|
-
|
|
23
|
-
* New ``directory``/``rcs`` file naming convention ``underscore``: replace ``.`` in the plugin identifier by ``_`` and add ``.jar``.
|
|
24
|
-
|
|
25
|
-
* CLI improvements.
|
|
26
|
-
|
|
27
|
-
* **Changes**
|
|
28
|
-
|
|
29
|
-
* The ``--output-format`` option is now only available in the context of commands where it makes sense.
|
|
30
|
-
|
|
31
|
-
-----
|
|
32
|
-
0.3.1
|
|
33
|
-
-----
|
|
34
|
-
|
|
35
|
-
Released: 2023-03-07
|
|
36
|
-
|
|
37
|
-
* **Bug Fixes**
|
|
38
|
-
|
|
39
|
-
* Fixed use of the ``importlib.resources`` library.
|
|
40
|
-
|
|
41
|
-
-----
|
|
42
|
-
0.3.0
|
|
43
|
-
-----
|
|
44
|
-
|
|
45
|
-
Released: 2023-03-07
|
|
46
|
-
|
|
47
|
-
* **Features**
|
|
48
|
-
|
|
49
|
-
* Completely refactored to be in the package ``lockss.turtles``.
|
|
50
|
-
|
|
51
|
-
* Using Poetry to make uploadable to and installable from PyPI as `lockss-turtles <https://pypi.org/project/lockss-turtles>`_. Removed the requirements file.
|
|
52
|
-
|
|
53
|
-
* Validate the various YAML objects (like a ``PluginSet``) against a `JSON Schema <https://json-schema.org/>`_.
|
|
54
|
-
|
|
55
|
-
* **Changes**
|
|
56
|
-
|
|
57
|
-
* Temporarily disabled the ``analyze-registry`` command.
|
|
58
|
-
|
|
59
|
-
* ``$XDG_CONFIG_HOME/turtles`` (by default ``$HOME/.config/turtles``) is now ``$XDG_CONFIG_HOME/lockss.turtles`` (by default ``$HOME/.config/lockss.turtles``) or ``/etc/lockss.turtles`` (formerly ``turtles``).
|
|
60
|
-
|
|
61
|
-
* ``settings.yaml`` is now ``plugin-signing.yaml`` and its ``kind`` is now ``PluginSigning``. The corresponding command line option ``--settings`` is now ``--plugin-signing``.
|
|
62
|
-
|
|
63
|
-
* ``plugin-sets.yaml``, its kind ``PluginSets``, its key ``plugin-sets``, and the command line option ``--plugin-sets`` are now ``plugin-set-catalog.yaml``, ``PluginSetCatalog``, ``plugin-set-files`` and ``--plugin-set-catalog``, respectively. The builder ``options`` key is deprecated.
|
|
64
|
-
|
|
65
|
-
* ``plugin-registries.yaml``, its kind ``PluginRegistries``, its key ``plugin-registries``, and the command line option ``--plugin-registries`` are now ``plugin-registry-catalog.yaml``, ``PluginRegistryCatalog``, ``plugin-registry-files`` and ``--plugin-registry-catalog``, respectively. The ``file-naming-convention`` key is now directly under ``layout`` and the value ``full`` is now ``identifier``. The layout ``options`` key is deprecated.
|
|
66
|
-
|
|
67
|
-
-----
|
|
68
|
-
0.2.0
|
|
69
|
-
-----
|
|
70
|
-
|
|
71
|
-
Released: 2022-10-26
|
|
72
|
-
|
|
73
|
-
* **Features**
|
|
74
|
-
|
|
75
|
-
* ``MavenPluginSet``, for Maven projects inheriting from ``org.lockss:lockss-plugins-parent-pom``.
|
|
76
|
-
|
|
77
|
-
* ``RcsPluginRegistry``: file naming convention layout option.
|
|
78
|
-
|
|
79
|
-
* Tabular output now includes the plugin version.
|
|
80
|
-
|
|
81
|
-
* **Bug Fixes**
|
|
82
|
-
|
|
83
|
-
* ``AntPluginSet``: run ``ant load-plugins`` before building plugins.
|
|
84
|
-
|
|
85
|
-
-----
|
|
86
|
-
0.1.1
|
|
87
|
-
-----
|
|
88
|
-
|
|
89
|
-
Released: 2022-10-23
|
|
90
|
-
|
|
91
|
-
* **Bug Fixes**
|
|
92
|
-
|
|
93
|
-
* ``RcsPluginRegistry``: Better handle incompletely managed RCS areas.
|
|
94
|
-
|
|
95
|
-
* ``DirectoryPluginRegistry``: Better file handling with ``cp``.
|
|
96
|
-
|
|
97
|
-
-----
|
|
98
|
-
0.1.0
|
|
99
|
-
-----
|
|
100
|
-
|
|
101
|
-
Released: 2022-10-10
|
|
102
|
-
|
|
103
|
-
* **Features**
|
|
104
|
-
|
|
105
|
-
* Initial release.
|
|
106
|
-
|
|
107
|
-
* ``AntPluginSet``, based on the classic ``lockss-daemon`` Ant builder.
|
|
108
|
-
|
|
109
|
-
* ``DirectoryPluginRegistry``, for a simple layout.
|
|
110
|
-
|
|
111
|
-
* ``RcsPluginRegistry``, based on the classic RCS layout.
|
|
112
|
-
|
|
113
|
-
* Tabular output by `tabulate <https://pypi.org/project/tabulate/>`_.
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
|
|
3
|
-
# Copyright (c) 2000-2023, Board of Trustees of Leland Stanford Jr. University
|
|
4
|
-
#
|
|
5
|
-
# Redistribution and use in source and binary forms, with or without
|
|
6
|
-
# modification, are permitted provided that the following conditions are met:
|
|
7
|
-
#
|
|
8
|
-
# 1. Redistributions of source code must retain the above copyright notice,
|
|
9
|
-
# this list of conditions and the following disclaimer.
|
|
10
|
-
#
|
|
11
|
-
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
-
# this list of conditions and the following disclaimer in the documentation
|
|
13
|
-
# and/or other materials provided with the distribution.
|
|
14
|
-
#
|
|
15
|
-
# 3. Neither the name of the copyright holder nor the names of its contributors
|
|
16
|
-
# may be used to endorse or promote products derived from this software without
|
|
17
|
-
# specific prior written permission.
|
|
18
|
-
#
|
|
19
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
22
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
23
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
24
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
25
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
26
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
27
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
28
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
29
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://assets.lockss.org/schemas/json/plugin-registry-catalog-schema.json",
|
|
4
|
-
"title": "Plugin Registry Catalog",
|
|
5
|
-
"description": "LOCKSS plugin registry catalog",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"required": [
|
|
8
|
-
"kind",
|
|
9
|
-
"plugin-registry-files"
|
|
10
|
-
],
|
|
11
|
-
"properties": {
|
|
12
|
-
"kind": {
|
|
13
|
-
"description": "This object's kind",
|
|
14
|
-
"type": "string",
|
|
15
|
-
"const": "PluginRegistryCatalog"
|
|
16
|
-
},
|
|
17
|
-
"plugin-registry-files": {
|
|
18
|
-
"description": "A list of plugin registry files",
|
|
19
|
-
"type": "array",
|
|
20
|
-
"minItems": 1,
|
|
21
|
-
"uniqueItems": true,
|
|
22
|
-
"items": {
|
|
23
|
-
"type": "string"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://assets.lockss.org/schemas/json/plugin-registry-schema.json",
|
|
4
|
-
"title": "Plugin Registry",
|
|
5
|
-
"description": "LOCKSS plugin registry",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"required": [
|
|
8
|
-
"kind",
|
|
9
|
-
"id",
|
|
10
|
-
"name",
|
|
11
|
-
"layout",
|
|
12
|
-
"layers",
|
|
13
|
-
"plugin-identifiers"
|
|
14
|
-
],
|
|
15
|
-
"properties": {
|
|
16
|
-
"kind": {
|
|
17
|
-
"description": "This object's kind",
|
|
18
|
-
"type": "string",
|
|
19
|
-
"const": "PluginRegistry"
|
|
20
|
-
},
|
|
21
|
-
"id": {
|
|
22
|
-
"description": "An identifier for the plugin registry",
|
|
23
|
-
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
"name": {
|
|
26
|
-
"description": "A name for the plugin registry",
|
|
27
|
-
"type": "string"
|
|
28
|
-
},
|
|
29
|
-
"layout": {
|
|
30
|
-
"description": "A plugin registry layout",
|
|
31
|
-
"type": "object",
|
|
32
|
-
"required": [
|
|
33
|
-
"type"
|
|
34
|
-
],
|
|
35
|
-
"properties": {
|
|
36
|
-
"type": {
|
|
37
|
-
"description": "A plugin registry layout type",
|
|
38
|
-
"enum": [
|
|
39
|
-
"directory",
|
|
40
|
-
"rcs"
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"allOf": [
|
|
45
|
-
{
|
|
46
|
-
"if": {
|
|
47
|
-
"properties": {
|
|
48
|
-
"type": {
|
|
49
|
-
"enum": [
|
|
50
|
-
"directory",
|
|
51
|
-
"rcs"
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"then": {
|
|
57
|
-
"properties": {
|
|
58
|
-
"file-naming-convention": {
|
|
59
|
-
"description": "The plugin registry file naming convention",
|
|
60
|
-
"enum": [
|
|
61
|
-
"abbreviated",
|
|
62
|
-
"identifier",
|
|
63
|
-
"underscore"
|
|
64
|
-
],
|
|
65
|
-
"default": "identifier"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
},
|
|
72
|
-
"layers": {
|
|
73
|
-
"description": "A list of plugin registry layers",
|
|
74
|
-
"type": "array",
|
|
75
|
-
"minItems": 1,
|
|
76
|
-
"items": {
|
|
77
|
-
"type": "object",
|
|
78
|
-
"required": [
|
|
79
|
-
"id",
|
|
80
|
-
"name",
|
|
81
|
-
"path"
|
|
82
|
-
],
|
|
83
|
-
"properties": {
|
|
84
|
-
"id": {
|
|
85
|
-
"description": "An identifier for the plugin registry layer",
|
|
86
|
-
"type": "string"
|
|
87
|
-
},
|
|
88
|
-
"name": {
|
|
89
|
-
"description": "A name for the plugin registry layer",
|
|
90
|
-
"type": "string"
|
|
91
|
-
},
|
|
92
|
-
"path": {
|
|
93
|
-
"description": "A root path for the plugin registry layer",
|
|
94
|
-
"type": "string"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
"plugin-identifiers": {
|
|
100
|
-
"description": "A list of plugin identifiers in the plugin registry",
|
|
101
|
-
"type": "array",
|
|
102
|
-
"minItems": 1,
|
|
103
|
-
"items": {
|
|
104
|
-
"type":"string"
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
"suppressed-plugin-identifiers": {
|
|
108
|
-
"description": "A list of plugin identifiers excluded from the plugin registry",
|
|
109
|
-
"type": "array",
|
|
110
|
-
"items": {
|
|
111
|
-
"type":"string"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://assets.lockss.org/schemas/json/plugin-set-catalog-schema.json",
|
|
4
|
-
"title": "Plugin Set Catalog",
|
|
5
|
-
"description": "LOCKSS plugin set catalog",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"required": [
|
|
8
|
-
"kind",
|
|
9
|
-
"plugin-set-files"
|
|
10
|
-
],
|
|
11
|
-
"properties": {
|
|
12
|
-
"kind": {
|
|
13
|
-
"description": "This object's kind",
|
|
14
|
-
"type": "string",
|
|
15
|
-
"const": "PluginSetCatalog"
|
|
16
|
-
},
|
|
17
|
-
"plugin-set-files": {
|
|
18
|
-
"description": "A list of plugin set files",
|
|
19
|
-
"type": "array",
|
|
20
|
-
"minItems": 1,
|
|
21
|
-
"uniqueItems": true,
|
|
22
|
-
"items": {
|
|
23
|
-
"type": "string"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://assets.lockss.org/schemas/json/plugin-set-schema.json",
|
|
4
|
-
"title": "Plugin Set",
|
|
5
|
-
"description": "LOCKSS plugin set",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"required": [
|
|
8
|
-
"kind",
|
|
9
|
-
"id",
|
|
10
|
-
"name",
|
|
11
|
-
"builder"
|
|
12
|
-
],
|
|
13
|
-
"properties": {
|
|
14
|
-
"kind": {
|
|
15
|
-
"description": "This object's kind",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"const": "PluginSet"
|
|
18
|
-
},
|
|
19
|
-
"id": {
|
|
20
|
-
"description": "An identifier for the plugin set",
|
|
21
|
-
"type": "string"
|
|
22
|
-
},
|
|
23
|
-
"name": {
|
|
24
|
-
"description": "A name for the plugin set",
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
"builder": {
|
|
28
|
-
"description": "A plugin builder",
|
|
29
|
-
"type": "object",
|
|
30
|
-
"required": [
|
|
31
|
-
"type"
|
|
32
|
-
],
|
|
33
|
-
"properties": {
|
|
34
|
-
"type": {
|
|
35
|
-
"description": "A plugin builder type",
|
|
36
|
-
"enum": [
|
|
37
|
-
"ant",
|
|
38
|
-
"mvn"
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"allOf": [
|
|
43
|
-
{
|
|
44
|
-
"if": {
|
|
45
|
-
"properties": {
|
|
46
|
-
"type": {
|
|
47
|
-
"const": "ant"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"then": {
|
|
52
|
-
"properties": {
|
|
53
|
-
"main": {
|
|
54
|
-
"description": "The path (relative to the root of the project) to the plugins' source code",
|
|
55
|
-
"type": "string",
|
|
56
|
-
"default": "plugins/src"
|
|
57
|
-
},
|
|
58
|
-
"test": {
|
|
59
|
-
"description": "The path (relative to the root of the project) to the plugins' unit tests",
|
|
60
|
-
"type": "string",
|
|
61
|
-
"default": "plugins/test/src"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"if": {
|
|
68
|
-
"properties": {
|
|
69
|
-
"type": {
|
|
70
|
-
"const": "mvn"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"then": {
|
|
75
|
-
"properties": {
|
|
76
|
-
"main": {
|
|
77
|
-
"description": "The path (relative to the root of the project) to the plugins' source code",
|
|
78
|
-
"type": "string",
|
|
79
|
-
"default": "src/main/java"
|
|
80
|
-
},
|
|
81
|
-
"test": {
|
|
82
|
-
"description": "The path (relative to the root of the project) to the plugins' unit tests",
|
|
83
|
-
"type": "string",
|
|
84
|
-
"default": "src/test/java"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://assets.lockss.org/schemas/json/plugin-signing-credentials-schema.json",
|
|
4
|
-
"title": "Plugin Signing Credentials",
|
|
5
|
-
"description": "LOCKSS plugin signing credentials",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"kind": {
|
|
9
|
-
"description": "This object's kind",
|
|
10
|
-
"type": "string",
|
|
11
|
-
"const": "PluginSigningCredentials"
|
|
12
|
-
},
|
|
13
|
-
"plugin-signing-keystore": {
|
|
14
|
-
"description": "A path to the plugin signing keystore",
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
"plugin-signing-alias": {
|
|
18
|
-
"description": "The plugin signing alias to use",
|
|
19
|
-
"type": "string"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"required": [
|
|
23
|
-
"kind",
|
|
24
|
-
"plugin-signing-keystore",
|
|
25
|
-
"plugin-signing-alias"
|
|
26
|
-
]
|
|
27
|
-
}
|