@backstage-community/plugin-ocm-common 3.6.1
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/CHANGELOG.md +136 -0
- package/README.md +5 -0
- package/dist/index.cjs.js +13 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.esm.js +7 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/permissions.cjs.js +25 -0
- package/dist/permissions.cjs.js.map +1 -0
- package/dist/permissions.esm.js +21 -0
- package/dist/permissions.esm.js.map +1 -0
- package/package.json +67 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
## @backstage-community/plugin-ocm-common [3.3.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@3.2.0...@backstage-community/plugin-ocm-common@3.3.0) (2024-07-26)
|
|
2
|
+
|
|
3
|
+
## 3.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 22a79d1: Migrated from [janus-idp/backstage-plugins](https://github.com/janus-idp/backstage-plugins).
|
|
8
|
+
|
|
9
|
+
## 3.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 8244f28: chore(deps): update to backstage 1.32
|
|
14
|
+
|
|
15
|
+
## 3.5.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- d9551ae: feat(deps): update to backstage 1.31
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- d9551ae: change deps to peer deps in common packages
|
|
24
|
+
- d9551ae: upgrade to yarn v3
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
- **deps:** update to backstage 1.29 ([#1900](https://github.com/janus-idp/backstage-plugins/issues/1900)) ([f53677f](https://github.com/janus-idp/backstage-plugins/commit/f53677fb02d6df43a9de98c43a9f101a6db76802))
|
|
29
|
+
|
|
30
|
+
## @backstage-community/plugin-ocm-common [3.2.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@3.1.0...@backstage-community/plugin-ocm-common@3.2.0) (2024-07-24)
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
- **deps:** update to backstage 1.28 ([#1891](https://github.com/janus-idp/backstage-plugins/issues/1891)) ([1ba1108](https://github.com/janus-idp/backstage-plugins/commit/1ba11088e0de60e90d138944267b83600dc446e5))
|
|
35
|
+
|
|
36
|
+
## @backstage-community/plugin-ocm-common [3.1.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@3.0.2...@backstage-community/plugin-ocm-common@3.1.0) (2024-06-13)
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
- **deps:** update to backstage 1.27 ([#1683](https://github.com/janus-idp/backstage-plugins/issues/1683)) ([a14869c](https://github.com/janus-idp/backstage-plugins/commit/a14869c3f4177049cb8d6552b36c3ffd17e7997d))
|
|
41
|
+
|
|
42
|
+
## @backstage-community/plugin-ocm-common [3.0.2](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@3.0.1...@backstage-community/plugin-ocm-common@3.0.2) (2024-06-04)
|
|
43
|
+
|
|
44
|
+
## @backstage-community/plugin-ocm-common [3.0.1](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@3.0.0...@backstage-community/plugin-ocm-common@3.0.1) (2024-05-09)
|
|
45
|
+
|
|
46
|
+
## @backstage-community/plugin-ocm-common [3.0.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@2.3.0...@backstage-community/plugin-ocm-common@3.0.0) (2024-05-04)
|
|
47
|
+
|
|
48
|
+
### ⚠ BREAKING CHANGES
|
|
49
|
+
|
|
50
|
+
- **ocm:** add basic permissions to ocm backend plugin (#1528)
|
|
51
|
+
|
|
52
|
+
### Features
|
|
53
|
+
|
|
54
|
+
- **ocm:** add basic permissions to ocm backend plugin ([#1528](https://github.com/janus-idp/backstage-plugins/issues/1528)) ([c28d564](https://github.com/janus-idp/backstage-plugins/commit/c28d5643034912228425930a42b60bbe4bc8a8ec))
|
|
55
|
+
|
|
56
|
+
## @backstage-community/plugin-ocm-common [2.3.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@2.2.4...@backstage-community/plugin-ocm-common@2.3.0) (2024-04-15)
|
|
57
|
+
|
|
58
|
+
### Features
|
|
59
|
+
|
|
60
|
+
- checkPluginVersion.sh bump plugins for 1.2.0 release ([#1511](https://github.com/janus-idp/backstage-plugins/issues/1511)) ([73c6588](https://github.com/janus-idp/backstage-plugins/commit/73c6588adb7e8c20907b06f2a8ef248cfd4332e4))
|
|
61
|
+
|
|
62
|
+
## @backstage-community/plugin-ocm-common [2.2.4](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@2.2.3...@backstage-community/plugin-ocm-common@2.2.4) (2024-04-05)
|
|
63
|
+
|
|
64
|
+
## @backstage-community/plugin-ocm-common [2.2.3](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@2.2.2...@backstage-community/plugin-ocm-common@2.2.3) (2024-03-29)
|
|
65
|
+
|
|
66
|
+
## @backstage-community/plugin-ocm-common [2.2.2](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@2.2.1...@backstage-community/plugin-ocm-common@2.2.2) (2024-02-21)
|
|
67
|
+
|
|
68
|
+
## @backstage-community/plugin-ocm-common [2.2.1](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@2.2.0...@backstage-community/plugin-ocm-common@2.2.1) (2023-10-19)
|
|
69
|
+
|
|
70
|
+
## @backstage-community/plugin-ocm-common [2.2.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@2.1.1...@backstage-community/plugin-ocm-common@2.2.0) (2023-08-14)
|
|
71
|
+
|
|
72
|
+
### Features
|
|
73
|
+
|
|
74
|
+
- **ts:** transpile each plugin separately ([#634](https://github.com/janus-idp/backstage-plugins/issues/634)) ([b94c4dc](https://github.com/janus-idp/backstage-plugins/commit/b94c4dc50ada328e5ce1bed5fb7c76f64607e1ee))
|
|
75
|
+
|
|
76
|
+
## @backstage-community/plugin-ocm-common [2.1.1](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@2.1.0...@backstage-community/plugin-ocm-common@2.1.1) (2023-07-25)
|
|
77
|
+
|
|
78
|
+
## @backstage-community/plugin-ocm-common [2.1.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@2.0.3...@backstage-community/plugin-ocm-common@2.1.0) (2023-05-30)
|
|
79
|
+
|
|
80
|
+
### Features
|
|
81
|
+
|
|
82
|
+
- **ocm-backend:** add additional information to status endpoint ([#352](https://github.com/janus-idp/backstage-plugins/issues/352)) ([887015d](https://github.com/janus-idp/backstage-plugins/commit/887015d18e665b1795e8c28e6fcc4f24aa7f3257))
|
|
83
|
+
|
|
84
|
+
## @backstage-community/plugin-ocm-common [2.0.3](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@2.0.2...@backstage-community/plugin-ocm-common@2.0.3) (2023-05-30)
|
|
85
|
+
|
|
86
|
+
## @backstage-community/plugin-ocm-common [2.0.2](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@2.0.1...@backstage-community/plugin-ocm-common@2.0.2) (2023-05-08)
|
|
87
|
+
|
|
88
|
+
### Documentation
|
|
89
|
+
|
|
90
|
+
- review for OCM plugin ([#291](https://github.com/janus-idp/backstage-plugins/issues/291)) ([9316baf](https://github.com/janus-idp/backstage-plugins/commit/9316bafd954f2c6986baa620ea13a74dcb558b29))
|
|
91
|
+
|
|
92
|
+
## @backstage-community/plugin-ocm-common [2.0.1](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@2.0.0...@backstage-community/plugin-ocm-common@2.0.1) (2023-05-04)
|
|
93
|
+
|
|
94
|
+
### Other changes
|
|
95
|
+
|
|
96
|
+
- **deps:** update all non-major dependencies ([#127](https://github.com/janus-idp/backstage-plugins/issues/127)) ([a9d359f](https://github.com/janus-idp/backstage-plugins/commit/a9d359f01448d1b9b4b4d3d9b087052fb6ff16b3))
|
|
97
|
+
|
|
98
|
+
## @backstage-community/plugin-ocm-common [2.0.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@1.2.1...@backstage-community/plugin-ocm-common@2.0.0) (2023-03-29)
|
|
99
|
+
|
|
100
|
+
### ⚠ BREAKING CHANGES
|
|
101
|
+
|
|
102
|
+
- **ocm:** Relocate OCM config and support multiple hubs (#145)
|
|
103
|
+
|
|
104
|
+
### Features
|
|
105
|
+
|
|
106
|
+
- **ocm:** Relocate OCM config and support multiple hubs ([#145](https://github.com/janus-idp/backstage-plugins/issues/145)) ([1518235](https://github.com/janus-idp/backstage-plugins/commit/1518235833d37b03cbcb75e9148e75e76908a53a))
|
|
107
|
+
|
|
108
|
+
## @backstage-community/plugin-ocm-common [1.2.1](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@1.2.0...@backstage-community/plugin-ocm-common@1.2.1) (2023-03-06)
|
|
109
|
+
|
|
110
|
+
### Bug Fixes
|
|
111
|
+
|
|
112
|
+
- **metadata:** adding default metadata to current plugins ([06776da](https://github.com/janus-idp/backstage-plugins/commit/06776dafdbab6d4fa85b92d5b676f65d97bbdb44)), closes [#155](https://github.com/janus-idp/backstage-plugins/issues/155) [#155](https://github.com/janus-idp/backstage-plugins/issues/155)
|
|
113
|
+
|
|
114
|
+
# @backstage-community/plugin-ocm-common [1.2.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@1.1.1...@backstage-community/plugin-ocm-common@1.2.0) (2023-02-22)
|
|
115
|
+
|
|
116
|
+
### Features
|
|
117
|
+
|
|
118
|
+
- Add cluster ID annotation ([0f99891](https://github.com/janus-idp/backstage-plugins/commit/0f9989108eef9a2370fd1c544306fe2c2e160a89))
|
|
119
|
+
|
|
120
|
+
## @backstage-community/plugin-ocm-common [1.1.1](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@1.1.0...@backstage-community/plugin-ocm-common@1.1.1) (2023-01-25)
|
|
121
|
+
|
|
122
|
+
### Bug Fixes
|
|
123
|
+
|
|
124
|
+
- **deps:** update all non-major dependencies ([d971f33](https://github.com/janus-idp/backstage-plugins/commit/d971f33c3f79ac4ec36dfb8b579f07d8dbcef8f1))
|
|
125
|
+
|
|
126
|
+
# @backstage-community/plugin-ocm-common [1.1.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-ocm-common@1.0.0...@backstage-community/plugin-ocm-common@1.1.0) (2023-01-17)
|
|
127
|
+
|
|
128
|
+
### Features
|
|
129
|
+
|
|
130
|
+
- **ocm:** Add cluster update information to the ocm status endpoint ([eb50fec](https://github.com/janus-idp/backstage-plugins/commit/eb50fec30ca2397931b986421055e46922810d21))
|
|
131
|
+
|
|
132
|
+
# @backstage-community/plugin-ocm-common 1.0.0 (2022-12-07)
|
|
133
|
+
|
|
134
|
+
### Features
|
|
135
|
+
|
|
136
|
+
- transfer Open Cluster Management plugins ([#5](https://github.com/janus-idp/backstage-plugins/issues/5)) ([1ccf8c3](https://github.com/janus-idp/backstage-plugins/commit/1ccf8c35f9ade6ff57f4897424d0202fed8ce7e8)), closes [#160](https://github.com/janus-idp/backstage-plugins/issues/160) [#161](https://github.com/janus-idp/backstage-plugins/issues/161) [#163](https://github.com/janus-idp/backstage-plugins/issues/163) [#165](https://github.com/janus-idp/backstage-plugins/issues/165) [#164](https://github.com/janus-idp/backstage-plugins/issues/164) [#156](https://github.com/janus-idp/backstage-plugins/issues/156) [#167](https://github.com/janus-idp/backstage-plugins/issues/167) [#168](https://github.com/janus-idp/backstage-plugins/issues/168) [#184](https://github.com/janus-idp/backstage-plugins/issues/184) [#188](https://github.com/janus-idp/backstage-plugins/issues/188) [#187](https://github.com/janus-idp/backstage-plugins/issues/187) [#192](https://github.com/janus-idp/backstage-plugins/issues/192) [#186](https://github.com/janus-idp/backstage-plugins/issues/186) [#162](https://github.com/janus-idp/backstage-plugins/issues/162)
|
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Open Cluster Management plugin for Backstage
|
|
2
|
+
|
|
3
|
+
The Open Cluster Management (OCM) plugin integrates your Backstage instance with OCM.
|
|
4
|
+
|
|
5
|
+
For more information about OCM plugin, see the [Open Cluster Management plugin documentation](https://github.com/backstage/community-plugins/tree/main/workspaces/ocm/plugins/ocm) on GitHub.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var permissions = require('./permissions.cjs.js');
|
|
4
|
+
|
|
5
|
+
const ANNOTATION_CLUSTER_ID = "janus-idp.io/ocm-cluster-id";
|
|
6
|
+
const ANNOTATION_PROVIDER_ID = "janus-idp.io/ocm-provider-id";
|
|
7
|
+
|
|
8
|
+
exports.ocmClusterReadPermission = permissions.ocmClusterReadPermission;
|
|
9
|
+
exports.ocmEntityPermissions = permissions.ocmEntityPermissions;
|
|
10
|
+
exports.ocmEntityReadPermission = permissions.ocmEntityReadPermission;
|
|
11
|
+
exports.ANNOTATION_CLUSTER_ID = ANNOTATION_CLUSTER_ID;
|
|
12
|
+
exports.ANNOTATION_PROVIDER_ID = ANNOTATION_PROVIDER_ID;
|
|
13
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './types';\nexport * from './permissions';\n\nexport const ANNOTATION_CLUSTER_ID = 'janus-idp.io/ocm-cluster-id';\nexport const ANNOTATION_PROVIDER_ID = 'janus-idp.io/ocm-provider-id';\n"],"names":[],"mappings":";;;;AAmBO,MAAM,qBAAwB,GAAA,8BAAA;AAC9B,MAAM,sBAAyB,GAAA;;;;;;;;"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as _backstage_plugin_permission_common from '@backstage/plugin-permission-common';
|
|
2
|
+
|
|
3
|
+
type ClusterStatus = {
|
|
4
|
+
available: boolean;
|
|
5
|
+
reason?: string;
|
|
6
|
+
};
|
|
7
|
+
type ClusterBase = {
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
type ClusterUpdate = {
|
|
11
|
+
available?: boolean;
|
|
12
|
+
version?: string;
|
|
13
|
+
url?: string;
|
|
14
|
+
};
|
|
15
|
+
type ClusterNodesStatus = {
|
|
16
|
+
status: string;
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
type ClusterDetails = {
|
|
20
|
+
consoleUrl?: string;
|
|
21
|
+
kubernetesVersion?: string;
|
|
22
|
+
oauthUrl?: string;
|
|
23
|
+
openshiftId?: string;
|
|
24
|
+
openshiftVersion?: string;
|
|
25
|
+
platform?: string;
|
|
26
|
+
region?: string;
|
|
27
|
+
allocatableResources?: {
|
|
28
|
+
cpuCores?: number;
|
|
29
|
+
memorySize?: string;
|
|
30
|
+
numberOfPods?: number;
|
|
31
|
+
};
|
|
32
|
+
availableResources?: {
|
|
33
|
+
cpuCores?: number;
|
|
34
|
+
memorySize?: string;
|
|
35
|
+
numberOfPods?: number;
|
|
36
|
+
};
|
|
37
|
+
update?: ClusterUpdate;
|
|
38
|
+
status: ClusterStatus;
|
|
39
|
+
};
|
|
40
|
+
type Cluster = ClusterBase & ClusterDetails;
|
|
41
|
+
type ClusterOverview = ClusterBase & {
|
|
42
|
+
status: ClusterStatus;
|
|
43
|
+
update: ClusterUpdate;
|
|
44
|
+
platform: string;
|
|
45
|
+
openshiftVersion: string;
|
|
46
|
+
nodes: Array<ClusterNodesStatus>;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
declare const ocmClusterReadPermission: _backstage_plugin_permission_common.BasicPermission;
|
|
50
|
+
declare const ocmEntityReadPermission: _backstage_plugin_permission_common.BasicPermission;
|
|
51
|
+
declare const ocmEntityPermissions: _backstage_plugin_permission_common.BasicPermission[];
|
|
52
|
+
|
|
53
|
+
declare const ANNOTATION_CLUSTER_ID = "janus-idp.io/ocm-cluster-id";
|
|
54
|
+
declare const ANNOTATION_PROVIDER_ID = "janus-idp.io/ocm-provider-id";
|
|
55
|
+
|
|
56
|
+
export { ANNOTATION_CLUSTER_ID, ANNOTATION_PROVIDER_ID, type Cluster, type ClusterBase, type ClusterDetails, type ClusterNodesStatus, type ClusterOverview, type ClusterStatus, type ClusterUpdate, ocmClusterReadPermission, ocmEntityPermissions, ocmEntityReadPermission };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { ocmClusterReadPermission, ocmEntityPermissions, ocmEntityReadPermission } from './permissions.esm.js';
|
|
2
|
+
|
|
3
|
+
const ANNOTATION_CLUSTER_ID = "janus-idp.io/ocm-cluster-id";
|
|
4
|
+
const ANNOTATION_PROVIDER_ID = "janus-idp.io/ocm-provider-id";
|
|
5
|
+
|
|
6
|
+
export { ANNOTATION_CLUSTER_ID, ANNOTATION_PROVIDER_ID };
|
|
7
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './types';\nexport * from './permissions';\n\nexport const ANNOTATION_CLUSTER_ID = 'janus-idp.io/ocm-cluster-id';\nexport const ANNOTATION_PROVIDER_ID = 'janus-idp.io/ocm-provider-id';\n"],"names":[],"mappings":";;AAmBO,MAAM,qBAAwB,GAAA,8BAAA;AAC9B,MAAM,sBAAyB,GAAA;;;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var pluginPermissionCommon = require('@backstage/plugin-permission-common');
|
|
4
|
+
|
|
5
|
+
const ocmClusterReadPermission = pluginPermissionCommon.createPermission({
|
|
6
|
+
name: "ocm.cluster.read",
|
|
7
|
+
attributes: {
|
|
8
|
+
action: "read"
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const ocmEntityReadPermission = pluginPermissionCommon.createPermission({
|
|
12
|
+
name: "ocm.entity.read",
|
|
13
|
+
attributes: {
|
|
14
|
+
action: "read"
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
const ocmEntityPermissions = [
|
|
18
|
+
ocmClusterReadPermission,
|
|
19
|
+
ocmEntityReadPermission
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
exports.ocmClusterReadPermission = ocmClusterReadPermission;
|
|
23
|
+
exports.ocmEntityPermissions = ocmEntityPermissions;
|
|
24
|
+
exports.ocmEntityReadPermission = ocmEntityReadPermission;
|
|
25
|
+
//# sourceMappingURL=permissions.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.cjs.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createPermission } from '@backstage/plugin-permission-common';\n\nexport const ocmClusterReadPermission = createPermission({\n name: 'ocm.cluster.read',\n attributes: {\n action: 'read',\n },\n});\n\nexport const ocmEntityReadPermission = createPermission({\n name: 'ocm.entity.read',\n attributes: {\n action: 'read',\n },\n});\n\nexport const ocmEntityPermissions = [\n ocmClusterReadPermission,\n ocmEntityReadPermission,\n];\n"],"names":["createPermission"],"mappings":";;;;AAiBO,MAAM,2BAA2BA,uCAAiB,CAAA;AAAA,EACvD,IAAM,EAAA,kBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,MAAQ,EAAA,MAAA;AAAA,GACV;AACF,CAAC,EAAA;AAEM,MAAM,0BAA0BA,uCAAiB,CAAA;AAAA,EACtD,IAAM,EAAA,iBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,MAAQ,EAAA,MAAA;AAAA,GACV;AACF,CAAC,EAAA;AAEM,MAAM,oBAAuB,GAAA;AAAA,EAClC,wBAAA;AAAA,EACA,uBAAA;AACF;;;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createPermission } from '@backstage/plugin-permission-common';
|
|
2
|
+
|
|
3
|
+
const ocmClusterReadPermission = createPermission({
|
|
4
|
+
name: "ocm.cluster.read",
|
|
5
|
+
attributes: {
|
|
6
|
+
action: "read"
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
const ocmEntityReadPermission = createPermission({
|
|
10
|
+
name: "ocm.entity.read",
|
|
11
|
+
attributes: {
|
|
12
|
+
action: "read"
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
const ocmEntityPermissions = [
|
|
16
|
+
ocmClusterReadPermission,
|
|
17
|
+
ocmEntityReadPermission
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
export { ocmClusterReadPermission, ocmEntityPermissions, ocmEntityReadPermission };
|
|
21
|
+
//# sourceMappingURL=permissions.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.esm.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createPermission } from '@backstage/plugin-permission-common';\n\nexport const ocmClusterReadPermission = createPermission({\n name: 'ocm.cluster.read',\n attributes: {\n action: 'read',\n },\n});\n\nexport const ocmEntityReadPermission = createPermission({\n name: 'ocm.entity.read',\n attributes: {\n action: 'read',\n },\n});\n\nexport const ocmEntityPermissions = [\n ocmClusterReadPermission,\n ocmEntityReadPermission,\n];\n"],"names":[],"mappings":";;AAiBO,MAAM,2BAA2B,gBAAiB,CAAA;AAAA,EACvD,IAAM,EAAA,kBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,MAAQ,EAAA,MAAA;AAAA,GACV;AACF,CAAC,EAAA;AAEM,MAAM,0BAA0B,gBAAiB,CAAA;AAAA,EACtD,IAAM,EAAA,iBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,MAAQ,EAAA,MAAA;AAAA,GACV;AACF,CAAC,EAAA;AAEM,MAAM,oBAAuB,GAAA;AAAA,EAClC,wBAAA;AAAA,EACA,uBAAA;AACF;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@backstage-community/plugin-ocm-common",
|
|
3
|
+
"description": "Common functionalities for the Open Cluster Management plugin",
|
|
4
|
+
"version": "3.6.1",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public",
|
|
10
|
+
"main": "dist/index.cjs.js",
|
|
11
|
+
"module": "dist/index.esm.js",
|
|
12
|
+
"types": "dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"backstage": {
|
|
15
|
+
"role": "common-library",
|
|
16
|
+
"supported-versions": "1.32.4",
|
|
17
|
+
"pluginId": "ocm",
|
|
18
|
+
"pluginPackages": [
|
|
19
|
+
"@backstage-community/plugin-ocm",
|
|
20
|
+
"@backstage-community/plugin-ocm-backend",
|
|
21
|
+
"@backstage-community/plugin-ocm-common"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "backstage-cli package build",
|
|
27
|
+
"tsc": "tsc",
|
|
28
|
+
"prettier:check": "prettier --ignore-unknown --check .",
|
|
29
|
+
"prettier:fix": "prettier --ignore-unknown --write .",
|
|
30
|
+
"lint:check": "backstage-cli package lint",
|
|
31
|
+
"lint:fix": "backstage-cli package lint --fix",
|
|
32
|
+
"test": "backstage-cli package test --passWithNoTests --coverage",
|
|
33
|
+
"clean": "backstage-cli package clean",
|
|
34
|
+
"prepack": "backstage-cli package prepack",
|
|
35
|
+
"postpack": "backstage-cli package postpack"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@backstage/cli": "0.28.2",
|
|
39
|
+
"@backstage/plugin-permission-common": "^0.8.1",
|
|
40
|
+
"@spotify/prettier-config": "^15.0.0",
|
|
41
|
+
"prettier": "3.3.3"
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"dist"
|
|
45
|
+
],
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "https://github.com/backstage/community-plugins",
|
|
49
|
+
"directory": "workspaces/ocm/plugins/ocm-common"
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"support:production",
|
|
53
|
+
"lifecycle:active",
|
|
54
|
+
"backstage",
|
|
55
|
+
"plugin"
|
|
56
|
+
],
|
|
57
|
+
"homepage": "https://red.ht/rhdh",
|
|
58
|
+
"bugs": "https://github.com/backstage/community-plugins/issues",
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"@backstage/plugin-permission-common": "^0.8.1"
|
|
61
|
+
},
|
|
62
|
+
"maintainers": [
|
|
63
|
+
"@04kash"
|
|
64
|
+
],
|
|
65
|
+
"author": "Red Hat",
|
|
66
|
+
"module": "dist/index.esm.js"
|
|
67
|
+
}
|