@jfvilas/plugin-kwirth-common 0.12.2 → 0.12.3
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/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../src/index.ts"],"sourcesContent":["/*\r\nCopyright 2024 Julio Fernandez\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software\r\ndistributed under the License is distributed on an \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\nSee the License for the specific language governing permissions and\r\nlimitations under the License.\r\n*/\r\nimport { Entity } from '@backstage/catalog-model';\r\nexport * from './Resources';\r\n\r\n/**\r\n *
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/index.ts"],"sourcesContent":["/*\r\nCopyright 2024 Julio Fernandez\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software\r\ndistributed under the License is distributed on an \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\nSee the License for the specific language governing permissions and\r\nlimitations under the License.\r\n*/\r\nimport { Entity } from '@backstage/catalog-model';\r\nexport * from './Resources';\r\n\r\n/**\r\n * Kwirth annotation.\r\n */\r\nexport const ANNOTATION_KWIRTH_LOCATION = 'backstage.io/kubernetes-id';\r\n\r\n/**\r\n * Function to know if an entity has Kwirth.\r\n */\r\nexport const isKwirthAvailable = (entity: Entity) => {\r\n if (!entity.metadata.annotations) return false;\r\n return Boolean (entity.metadata.annotations[ANNOTATION_KWIRTH_LOCATION]);\r\n}\r\n"],"names":[],"mappings":";;AAqBO,MAAM,0BAA6B,GAAA;AAK7B,MAAA,iBAAA,GAAoB,CAAC,MAAmB,KAAA;AACnD,EAAA,IAAI,CAAC,MAAA,CAAO,QAAS,CAAA,WAAA,EAAoB,OAAA,KAAA;AACzC,EAAA,OAAO,OAAS,CAAA,MAAA,CAAO,QAAS,CAAA,WAAA,CAAY,0BAA0B,CAAC,CAAA;AACzE;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { InstanceConfigScopeEnum, AccessKey } from '@jfvilas/kwirth-common';
|
|
|
10
10
|
interface PodData {
|
|
11
11
|
name: string;
|
|
12
12
|
namespace: string;
|
|
13
|
+
containers: string[];
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* @interface ClusterValidPods contains data about a cluster and all the pods found in the cluster that match required access
|
|
@@ -27,11 +28,11 @@ interface ClusterValidPods {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
31
|
+
* Kwirth annotation.
|
|
31
32
|
*/
|
|
32
33
|
declare const ANNOTATION_KWIRTH_LOCATION = "backstage.io/kubernetes-id";
|
|
33
34
|
/**
|
|
34
|
-
* Function to know if an entity has
|
|
35
|
+
* Function to know if an entity has Kwirth.
|
|
35
36
|
*/
|
|
36
37
|
declare const isKwirthAvailable: (entity: Entity) => boolean;
|
|
37
38
|
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["/*\r\nCopyright 2024 Julio Fernandez\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software\r\ndistributed under the License is distributed on an \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\nSee the License for the specific language governing permissions and\r\nlimitations under the License.\r\n*/\r\nimport { Entity } from '@backstage/catalog-model';\r\nexport * from './Resources';\r\n\r\n/**\r\n *
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["/*\r\nCopyright 2024 Julio Fernandez\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software\r\ndistributed under the License is distributed on an \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\nSee the License for the specific language governing permissions and\r\nlimitations under the License.\r\n*/\r\nimport { Entity } from '@backstage/catalog-model';\r\nexport * from './Resources';\r\n\r\n/**\r\n * Kwirth annotation.\r\n */\r\nexport const ANNOTATION_KWIRTH_LOCATION = 'backstage.io/kubernetes-id';\r\n\r\n/**\r\n * Function to know if an entity has Kwirth.\r\n */\r\nexport const isKwirthAvailable = (entity: Entity) => {\r\n if (!entity.metadata.annotations) return false;\r\n return Boolean (entity.metadata.annotations[ANNOTATION_KWIRTH_LOCATION]);\r\n}\r\n"],"names":[],"mappings":"AAqBO,MAAM,0BAA6B,GAAA;AAK7B,MAAA,iBAAA,GAAoB,CAAC,MAAmB,KAAA;AACnD,EAAA,IAAI,CAAC,MAAA,CAAO,QAAS,CAAA,WAAA,EAAoB,OAAA,KAAA;AACzC,EAAA,OAAO,OAAS,CAAA,MAAA,CAAO,QAAS,CAAA,WAAA,CAAY,0BAA0B,CAAC,CAAA;AACzE;;;;"}
|