@alauda-fe/dynamic-plugin-shared 0.0.1-alpha.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/README.md +7 -0
- package/array-form-table/base-string-map-form.component.d.ts +22 -0
- package/array-form-table/form/component.d.ts +106 -0
- package/array-form-table/form/index.d.ts +2 -0
- package/array-form-table/index.d.ts +10 -0
- package/array-form-table/key-value-form/component.d.ts +38 -0
- package/array-form-table/key-value-table/component.d.ts +9 -0
- package/array-form-table/string-array-form/component.d.ts +41 -0
- package/assets/images/abnormal.svg +1 -0
- package/assets/images/dark/disconnected.svg +1 -0
- package/assets/images/dark/license-abnormal.svg +1 -0
- package/assets/images/dark/network-abnormal.svg +1 -0
- package/assets/images/dark/no-data.svg +1 -0
- package/assets/images/dark/no-message.svg +1 -0
- package/assets/images/dark/no-permission.svg +1 -0
- package/assets/images/dark/no_realtime_alarm.svg +1 -0
- package/assets/images/dark/not-deployed.svg +1 -0
- package/assets/images/dark/not-found.svg +1 -0
- package/assets/images/dark/not-supported.svg +1 -0
- package/assets/images/dark/system-abnormal.svg +1 -0
- package/assets/images/light/disconnected.svg +1 -0
- package/assets/images/light/license-abnormal.svg +1 -0
- package/assets/images/light/network-abnormal.svg +1 -0
- package/assets/images/light/no-data.svg +1 -0
- package/assets/images/light/no-message.svg +1 -0
- package/assets/images/light/no-permission.svg +1 -0
- package/assets/images/light/no_realtime_alarm.svg +1 -0
- package/assets/images/light/not-deployed.svg +1 -0
- package/assets/images/light/not-found.svg +1 -0
- package/assets/images/light/not-supported.svg +1 -0
- package/assets/images/light/system-abnormal.svg +1 -0
- package/assets/images/no-data.png +0 -0
- package/async-data/async-data-loader.d.ts +31 -0
- package/async-data/error-page/component.d.ts +30 -0
- package/async-data/index.d.ts +13 -0
- package/async-data/page-state/component.d.ts +21 -0
- package/async-data/types.d.ts +29 -0
- package/code-editor/code-display-dialog/component.d.ts +17 -0
- package/code-editor/code-editor-configs.d.ts +19 -0
- package/code-editor/index.d.ts +10 -0
- package/code-editor/k8s-yaml-display-dialog/component.d.ts +16 -0
- package/code-editor/resource-yaml-display/component.d.ts +21 -0
- package/components/card-section/card-section.component.d.ts +9 -0
- package/components/confirm-delete/confirm-delete.component.d.ts +57 -0
- package/components/confirm-delete/utils.d.ts +25 -0
- package/components/current-time/component.d.ts +14 -0
- package/components/custom-columns-setting/component.d.ts +16 -0
- package/components/custom-columns-setting/index.d.ts +1 -0
- package/components/date-range-picker/component.d.ts +55 -0
- package/components/date-range-picker/index.d.ts +3 -0
- package/components/date-range-picker/type.d.ts +36 -0
- package/components/date-range-picker/util.d.ts +11 -0
- package/components/disabled-container/disabled-container.component.d.ts +21 -0
- package/components/disabled-container/index.d.ts +7 -0
- package/components/field-set/column/component.d.ts +10 -0
- package/components/field-set/group/component.d.ts +6 -0
- package/components/field-set/index.d.ts +7 -0
- package/components/field-set/item/component.d.ts +13 -0
- package/components/foldable-block/component.d.ts +17 -0
- package/components/foldable-item-in-table/component.d.ts +21 -0
- package/components/help-document/component.d.ts +29 -0
- package/components/help-document/directive.d.ts +20 -0
- package/components/help-document/index.d.ts +8 -0
- package/components/help-document/service.d.ts +20 -0
- package/components/index.d.ts +31 -0
- package/components/loading-mask/loading-mask.component.d.ts +13 -0
- package/components/page-guard/component/component.d.ts +40 -0
- package/components/page-guard/component/helper-directives.d.ts +17 -0
- package/components/page-guard/component/page-guard.type.d.ts +86 -0
- package/components/page-guard/index.d.ts +12 -0
- package/components/password-input/component.d.ts +39 -0
- package/components/pod-status/component.d.ts +25 -0
- package/components/pod-status/index.d.ts +3 -0
- package/components/pod-status/status.d.ts +4 -0
- package/components/pod-status/typings.d.ts +16 -0
- package/components/relative-time/component.d.ts +15 -0
- package/components/resource-label/component.d.ts +25 -0
- package/components/resource-multi-select/component.d.ts +41 -0
- package/components/resource-multi-select/util.d.ts +10 -0
- package/components/search-panel/component.d.ts +16 -0
- package/components/search-panel/helper.directive.d.ts +5 -0
- package/components/search-panel/search-item/component.d.ts +7 -0
- package/components/select-prefix-label/directive.d.ts +17 -0
- package/components/status-icon/status-icon.component.d.ts +16 -0
- package/components/tags-label/component.d.ts +56 -0
- package/components/terminating-tag/component.d.ts +7 -0
- package/components/text-ellipsis/component.d.ts +9 -0
- package/components/text-tooltip/directive.d.ts +21 -0
- package/components/text-with-url/component.d.ts +12 -0
- package/components/upload-file/component.d.ts +32 -0
- package/components/zero-state/zero-state.component.d.ts +16 -0
- package/constants/common.d.ts +64 -0
- package/constants/index.d.ts +6 -0
- package/constants/k8s.d.ts +12 -0
- package/constants/patterns.d.ts +124 -0
- package/constants/resource-definitions.d.ts +414 -0
- package/constants/status-icons.d.ts +34 -0
- package/constants/timezones.d.ts +6 -0
- package/directives/aui-code-editor.directive.d.ts +13 -0
- package/directives/click-outside.directive.d.ts +12 -0
- package/directives/declare.directive.d.ts +8 -0
- package/directives/disabled.directive.d.ts +28 -0
- package/directives/effect-directive/coerce-number.directive.d.ts +8 -0
- package/directives/effect-directive/e2e-attribute-binding.directive.d.ts +10 -0
- package/directives/effect-directive/event.directive.d.ts +47 -0
- package/directives/effect-directive/index.d.ts +12 -0
- package/directives/effect-directive/min-max.directive.d.ts +30 -0
- package/directives/effect-directive/trim.directive.d.ts +7 -0
- package/directives/effect-directive/validators.directive.d.ts +12 -0
- package/directives/feature-gate.directive.d.ts +31 -0
- package/directives/index.d.ts +12 -0
- package/directives/last-form-item.directive.d.ts +8 -0
- package/directives/readonly-field.directive.d.ts +39 -0
- package/directives/resize.directive.d.ts +17 -0
- package/directives/scroll-border-observer.directive.d.ts +23 -0
- package/directives/scroll-to-first-invalid.directive.d.ts +24 -0
- package/directives/value-trace.directive.d.ts +27 -0
- package/esm2022/alauda-fe-dynamic-plugin-shared.mjs +5 -0
- package/esm2022/array-form-table/base-string-map-form.component.mjs +92 -0
- package/esm2022/array-form-table/form/component.mjs +266 -0
- package/esm2022/array-form-table/form/index.mjs +12 -0
- package/esm2022/array-form-table/index.mjs +11 -0
- package/esm2022/array-form-table/key-value-form/component.mjs +135 -0
- package/esm2022/array-form-table/key-value-table/component.mjs +24 -0
- package/esm2022/array-form-table/string-array-form/component.mjs +168 -0
- package/esm2022/async-data/async-data-loader.mjs +63 -0
- package/esm2022/async-data/error-page/component.mjs +54 -0
- package/esm2022/async-data/index.mjs +18 -0
- package/esm2022/async-data/page-state/component.mjs +62 -0
- package/esm2022/async-data/types.mjs +6 -0
- package/esm2022/code-editor/code-display-dialog/component.mjs +35 -0
- package/esm2022/code-editor/code-editor-configs.mjs +66 -0
- package/esm2022/code-editor/index.mjs +11 -0
- package/esm2022/code-editor/k8s-yaml-display-dialog/component.mjs +26 -0
- package/esm2022/code-editor/resource-yaml-display/component.mjs +67 -0
- package/esm2022/components/card-section/card-section.component.mjs +24 -0
- package/esm2022/components/confirm-delete/confirm-delete.component.mjs +192 -0
- package/esm2022/components/confirm-delete/utils.mjs +8 -0
- package/esm2022/components/current-time/component.mjs +39 -0
- package/esm2022/components/custom-columns-setting/component.mjs +75 -0
- package/esm2022/components/custom-columns-setting/index.mjs +2 -0
- package/esm2022/components/date-range-picker/component.mjs +215 -0
- package/esm2022/components/date-range-picker/index.mjs +4 -0
- package/esm2022/components/date-range-picker/type.mjs +2 -0
- package/esm2022/components/date-range-picker/util.mjs +57 -0
- package/esm2022/components/disabled-container/disabled-container.component.mjs +81 -0
- package/esm2022/components/disabled-container/index.mjs +8 -0
- package/esm2022/components/field-set/column/component.mjs +25 -0
- package/esm2022/components/field-set/group/component.mjs +16 -0
- package/esm2022/components/field-set/index.mjs +14 -0
- package/esm2022/components/field-set/item/component.mjs +41 -0
- package/esm2022/components/foldable-block/component.mjs +60 -0
- package/esm2022/components/foldable-item-in-table/component.mjs +56 -0
- package/esm2022/components/help-document/component.mjs +69 -0
- package/esm2022/components/help-document/directive.mjs +70 -0
- package/esm2022/components/help-document/index.mjs +9 -0
- package/esm2022/components/help-document/service.mjs +43 -0
- package/esm2022/components/index.mjs +32 -0
- package/esm2022/components/loading-mask/loading-mask.component.mjs +35 -0
- package/esm2022/components/page-guard/component/component.mjs +101 -0
- package/esm2022/components/page-guard/component/helper-directives.mjs +51 -0
- package/esm2022/components/page-guard/component/page-guard.type.mjs +82 -0
- package/esm2022/components/page-guard/index.mjs +19 -0
- package/esm2022/components/password-input/component.mjs +143 -0
- package/esm2022/components/pod-status/component.mjs +49 -0
- package/esm2022/components/pod-status/index.mjs +4 -0
- package/esm2022/components/pod-status/status.mjs +84 -0
- package/esm2022/components/pod-status/typings.mjs +19 -0
- package/esm2022/components/relative-time/component.mjs +58 -0
- package/esm2022/components/resource-label/component.mjs +100 -0
- package/esm2022/components/resource-multi-select/component.mjs +152 -0
- package/esm2022/components/resource-multi-select/util.mjs +24 -0
- package/esm2022/components/search-panel/component.mjs +51 -0
- package/esm2022/components/search-panel/helper.directive.mjs +14 -0
- package/esm2022/components/search-panel/search-item/component.mjs +15 -0
- package/esm2022/components/select-prefix-label/directive.mjs +89 -0
- package/esm2022/components/status-icon/status-icon.component.mjs +56 -0
- package/esm2022/components/tags-label/component.mjs +224 -0
- package/esm2022/components/terminating-tag/component.mjs +16 -0
- package/esm2022/components/text-ellipsis/component.mjs +28 -0
- package/esm2022/components/text-tooltip/directive.mjs +71 -0
- package/esm2022/components/text-with-url/component.mjs +40 -0
- package/esm2022/components/upload-file/component.mjs +95 -0
- package/esm2022/components/zero-state/zero-state.component.mjs +51 -0
- package/esm2022/constants/common.mjs +86 -0
- package/esm2022/constants/index.mjs +7 -0
- package/esm2022/constants/k8s.mjs +13 -0
- package/esm2022/constants/patterns.mjs +142 -0
- package/esm2022/constants/resource-definitions.mjs +424 -0
- package/esm2022/constants/status-icons.mjs +65 -0
- package/esm2022/constants/timezones.mjs +234 -0
- package/esm2022/directives/aui-code-editor.directive.mjs +30 -0
- package/esm2022/directives/click-outside.directive.mjs +49 -0
- package/esm2022/directives/declare.directive.mjs +27 -0
- package/esm2022/directives/disabled.directive.mjs +76 -0
- package/esm2022/directives/effect-directive/coerce-number.directive.mjs +54 -0
- package/esm2022/directives/effect-directive/e2e-attribute-binding.directive.mjs +57 -0
- package/esm2022/directives/effect-directive/event.directive.mjs +129 -0
- package/esm2022/directives/effect-directive/index.mjs +21 -0
- package/esm2022/directives/effect-directive/min-max.directive.mjs +107 -0
- package/esm2022/directives/effect-directive/trim.directive.mjs +40 -0
- package/esm2022/directives/effect-directive/validators.directive.mjs +43 -0
- package/esm2022/directives/feature-gate.directive.mjs +90 -0
- package/esm2022/directives/index.mjs +13 -0
- package/esm2022/directives/last-form-item.directive.mjs +18 -0
- package/esm2022/directives/readonly-field.directive.mjs +145 -0
- package/esm2022/directives/resize.directive.mjs +39 -0
- package/esm2022/directives/scroll-border-observer.directive.mjs +77 -0
- package/esm2022/directives/scroll-to-first-invalid.directive.mjs +126 -0
- package/esm2022/directives/value-trace.directive.mjs +61 -0
- package/esm2022/form/base-form-container.mjs +126 -0
- package/esm2022/form/base-nested-form-control.mjs +190 -0
- package/esm2022/form/errors-mapper/base-errors-mapper.mjs +41 -0
- package/esm2022/form/errors-mapper/default-errors-mapper.service.mjs +65 -0
- package/esm2022/form/errors-mapper/errors-mapper-component/component.mjs +53 -0
- package/esm2022/form/errors-mapper/errors-mapper.directive.mjs +109 -0
- package/esm2022/form/errors-mapper/index.mjs +10 -0
- package/esm2022/form/errors-mapper/types.mjs +2 -0
- package/esm2022/form/index.mjs +6 -0
- package/esm2022/form/utils.mjs +61 -0
- package/esm2022/form/validators/async-function-validator.directive.mjs +49 -0
- package/esm2022/form/validators/dns1123-subdomain.mjs +42 -0
- package/esm2022/form/validators/function-validator.directive.mjs +49 -0
- package/esm2022/form/validators/index.mjs +10 -0
- package/esm2022/form/validators/maxlength-minlength-validator.directive.mjs +71 -0
- package/esm2022/form/validators/not-be-validator.directive.mjs +56 -0
- package/esm2022/form/validators/one-of-validator.directive.mjs +57 -0
- package/esm2022/form/validators/resource-limit.mjs +79 -0
- package/esm2022/form/validators/strong-password/index.mjs +4 -0
- package/esm2022/form/validators/strong-password/strong-password-tooltip/component.mjs +15 -0
- package/esm2022/form/validators/strong-password/strong-password-validator.directive.mjs +171 -0
- package/esm2022/form/validators/strong-password/strong-password-validator.module.mjs +36 -0
- package/esm2022/form/validators/utils.mjs +155 -0
- package/esm2022/index.mjs +15 -0
- package/esm2022/k8s-resource-list/footer/component.mjs +156 -0
- package/esm2022/k8s-resource-list/index.mjs +18 -0
- package/esm2022/k8s-resource-list/k8s-resource-list.mjs +224 -0
- package/esm2022/k8s-resource-list/k8s-resource-paged-list.mjs +174 -0
- package/esm2022/k8s-resource-list/types.mjs +11 -0
- package/esm2022/k8s-resource-list/utils.mjs +84 -0
- package/esm2022/k8s-shared/constants.mjs +53 -0
- package/esm2022/k8s-shared/index.mjs +12 -0
- package/esm2022/k8s-shared/k8s-resource-translate-key.pipe.mjs +31 -0
- package/esm2022/k8s-shared/k8s-shared-util.service.mjs +152 -0
- package/esm2022/k8s-shared/resource-mark/component.mjs +54 -0
- package/esm2022/k8s-shared/resource-mark/util.mjs +137 -0
- package/esm2022/k8s-shared/update-description-dialog/component.mjs +66 -0
- package/esm2022/k8s-shared/update-display-name-dialog/component.mjs +59 -0
- package/esm2022/k8s-shared/update-key-value-dialog/component.mjs +76 -0
- package/esm2022/page-deactivate/deactivate.directive.mjs +50 -0
- package/esm2022/page-deactivate/deactivate.guard.mjs +41 -0
- package/esm2022/page-deactivate/deactivate.service.mjs +78 -0
- package/esm2022/page-deactivate/index.mjs +4 -0
- package/esm2022/pipes/calc.pipe.mjs +21 -0
- package/esm2022/pipes/cron-human-readable.pipe.mjs +30 -0
- package/esm2022/pipes/crontab-next.pipe.mjs +67 -0
- package/esm2022/pipes/duration.pipe.mjs +51 -0
- package/esm2022/pipes/field-not-available.pipe.mjs +25 -0
- package/esm2022/pipes/img-header.pipe.mjs +18 -0
- package/esm2022/pipes/img-theme.pipe.mjs +38 -0
- package/esm2022/pipes/index.mjs +19 -0
- package/esm2022/pipes/keyvalue.pipe.mjs +20 -0
- package/esm2022/pipes/marked.pipe.mjs +18 -0
- package/esm2022/pipes/minimum-format.pipe.mjs +25 -0
- package/esm2022/pipes/page-env.pipe.mjs +69 -0
- package/esm2022/pipes/parse-json-translate.pipe.mjs +28 -0
- package/esm2022/pipes/parse-json.pipe.mjs +22 -0
- package/esm2022/pipes/pure.pipe.mjs +26 -0
- package/esm2022/pipes/safe.pipe.mjs +49 -0
- package/esm2022/pipes/sanitize.pipe.mjs +31 -0
- package/esm2022/pipes/time.pipe.mjs +113 -0
- package/esm2022/pipes/timezone-display.pipe.mjs +21 -0
- package/esm2022/services/form-row-duplicate/form-row-duplicate.service.mjs +280 -0
- package/esm2022/services/index.mjs +4 -0
- package/esm2022/services/on-resize.service.mjs +52 -0
- package/esm2022/services/yaml-util.service.mjs +99 -0
- package/esm2022/types/common.mjs +6 -0
- package/esm2022/types/helpers.mjs +12 -0
- package/esm2022/types/index.mjs +9 -0
- package/esm2022/types/k8s/core.mjs +2 -0
- package/esm2022/types/k8s/crd.mjs +57 -0
- package/esm2022/types/k8s/index.mjs +4 -0
- package/esm2022/types/k8s/raw.mjs +77 -0
- package/esm2022/types/schema.mjs +2 -0
- package/esm2022/utils/browser.mjs +21 -0
- package/esm2022/utils/cache-store.mjs +83 -0
- package/esm2022/utils/color-helpers.mjs +6 -0
- package/esm2022/utils/common.mjs +315 -0
- package/esm2022/utils/cron-util.mjs +44 -0
- package/esm2022/utils/decorators.mjs +137 -0
- package/esm2022/utils/disabled-state.mjs +47 -0
- package/esm2022/utils/format-number.mjs +227 -0
- package/esm2022/utils/index.mjs +24 -0
- package/esm2022/utils/local-storage-constants.mjs +2 -0
- package/esm2022/utils/node.mjs +18 -0
- package/esm2022/utils/observable.mjs +32 -0
- package/esm2022/utils/operators.mjs +38 -0
- package/esm2022/utils/request-pool.mjs +37 -0
- package/esm2022/utils/resources.mjs +66 -0
- package/esm2022/utils/router.mjs +20 -0
- package/esm2022/utils/sort-fn.mjs +7 -0
- package/esm2022/utils/tree.mjs +79 -0
- package/esm2022/utils/unit.mjs +191 -0
- package/esm2022/utils/version.mjs +76 -0
- package/esm2022/utils/with-load-state.mjs +21 -0
- package/esm2022/utils/workload.mjs +183 -0
- package/esm2022/utils/workspace.mjs +59 -0
- package/esm2022/utils/yaml.mjs +54 -0
- package/fesm2022/alauda-fe-dynamic-plugin-shared.mjs +11151 -0
- package/fesm2022/alauda-fe-dynamic-plugin-shared.mjs.map +1 -0
- package/form/base-form-container.d.ts +41 -0
- package/form/base-nested-form-control.d.ts +58 -0
- package/form/errors-mapper/base-errors-mapper.d.ts +13 -0
- package/form/errors-mapper/default-errors-mapper.service.d.ts +10 -0
- package/form/errors-mapper/errors-mapper-component/component.d.ts +19 -0
- package/form/errors-mapper/errors-mapper.directive.d.ts +39 -0
- package/form/errors-mapper/index.d.ts +6 -0
- package/form/errors-mapper/types.d.ts +16 -0
- package/form/index.d.ts +5 -0
- package/form/utils.d.ts +40 -0
- package/form/validators/async-function-validator.directive.d.ts +11 -0
- package/form/validators/dns1123-subdomain.d.ts +28 -0
- package/form/validators/function-validator.directive.d.ts +11 -0
- package/form/validators/index.d.ts +9 -0
- package/form/validators/maxlength-minlength-validator.directive.d.ts +20 -0
- package/form/validators/not-be-validator.directive.d.ts +12 -0
- package/form/validators/one-of-validator.directive.d.ts +12 -0
- package/form/validators/resource-limit.d.ts +17 -0
- package/form/validators/strong-password/index.d.ts +3 -0
- package/form/validators/strong-password/strong-password-tooltip/component.d.ts +6 -0
- package/form/validators/strong-password/strong-password-validator.directive.d.ts +34 -0
- package/form/validators/strong-password/strong-password-validator.module.d.ts +12 -0
- package/form/validators/utils.d.ts +67 -0
- package/index.d.ts +14 -0
- package/k8s-resource-list/footer/component.d.ts +42 -0
- package/k8s-resource-list/index.d.ts +13 -0
- package/k8s-resource-list/k8s-resource-list.d.ts +42 -0
- package/k8s-resource-list/k8s-resource-paged-list.d.ts +61 -0
- package/k8s-resource-list/types.d.ts +70 -0
- package/k8s-resource-list/utils.d.ts +19 -0
- package/k8s-shared/constants.d.ts +7 -0
- package/k8s-shared/index.d.ts +11 -0
- package/k8s-shared/k8s-resource-translate-key.pipe.d.ts +9 -0
- package/k8s-shared/k8s-shared-util.service.d.ts +48 -0
- package/k8s-shared/resource-mark/component.d.ts +16 -0
- package/k8s-shared/resource-mark/util.d.ts +2 -0
- package/k8s-shared/update-description-dialog/component.d.ts +33 -0
- package/k8s-shared/update-display-name-dialog/component.d.ts +27 -0
- package/k8s-shared/update-key-value-dialog/component.d.ts +38 -0
- package/package.json +56 -0
- package/page-deactivate/deactivate.directive.d.ts +18 -0
- package/page-deactivate/deactivate.guard.d.ts +13 -0
- package/page-deactivate/deactivate.service.d.ts +28 -0
- package/page-deactivate/index.d.ts +3 -0
- package/pipes/calc.pipe.d.ts +11 -0
- package/pipes/cron-human-readable.pipe.d.ts +9 -0
- package/pipes/crontab-next.pipe.d.ts +18 -0
- package/pipes/duration.pipe.d.ts +10 -0
- package/pipes/field-not-available.pipe.d.ts +13 -0
- package/pipes/img-header.pipe.d.ts +7 -0
- package/pipes/img-theme.pipe.d.ts +13 -0
- package/pipes/index.d.ts +18 -0
- package/pipes/keyvalue.pipe.d.ts +9 -0
- package/pipes/marked.pipe.d.ts +8 -0
- package/pipes/minimum-format.pipe.d.ts +10 -0
- package/pipes/page-env.pipe.d.ts +34 -0
- package/pipes/parse-json-translate.pipe.d.ts +8 -0
- package/pipes/parse-json.pipe.d.ts +7 -0
- package/pipes/pure.pipe.d.ts +17 -0
- package/pipes/safe.pipe.d.ts +10 -0
- package/pipes/sanitize.pipe.d.ts +10 -0
- package/pipes/time.pipe.d.ts +40 -0
- package/pipes/timezone-display.pipe.d.ts +10 -0
- package/services/form-row-duplicate/form-row-duplicate.service.d.ts +45 -0
- package/services/index.d.ts +3 -0
- package/services/on-resize.service.d.ts +20 -0
- package/services/yaml-util.service.d.ts +20 -0
- package/styles/ansi-color.scss +131 -0
- package/styles/global.scss +904 -0
- package/styles/lib.scss +1 -0
- package/styles/markdown-body.scss +107 -0
- package/styles/mixins.scss +710 -0
- package/styles/var.scss +30 -0
- package/types/common.d.ts +42 -0
- package/types/helpers.d.ts +35 -0
- package/types/index.d.ts +8 -0
- package/types/k8s/core.d.ts +100 -0
- package/types/k8s/crd.d.ts +497 -0
- package/types/k8s/index.d.ts +3 -0
- package/types/k8s/raw.d.ts +860 -0
- package/types/schema.d.ts +14 -0
- package/utils/browser.d.ts +4 -0
- package/utils/cache-store.d.ts +35 -0
- package/utils/color-helpers.d.ts +4 -0
- package/utils/common.d.ts +64 -0
- package/utils/cron-util.d.ts +8 -0
- package/utils/decorators.d.ts +14 -0
- package/utils/disabled-state.d.ts +20 -0
- package/utils/format-number.d.ts +11 -0
- package/utils/index.d.ts +23 -0
- package/utils/local-storage-constants.d.ts +1 -0
- package/utils/node.d.ts +8 -0
- package/utils/observable.d.ts +5 -0
- package/utils/operators.d.ts +22 -0
- package/utils/request-pool.d.ts +12 -0
- package/utils/resources.d.ts +19 -0
- package/utils/router.d.ts +3 -0
- package/utils/sort-fn.d.ts +2 -0
- package/utils/tree.d.ts +16 -0
- package/utils/unit.d.ts +21 -0
- package/utils/version.d.ts +39 -0
- package/utils/with-load-state.d.ts +11 -0
- package/utils/workload.d.ts +66 -0
- package/utils/workspace.d.ts +28 -0
- package/utils/yaml.d.ts +11 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* @module types
|
|
4
|
+
*/
|
|
5
|
+
export type StringMap = Record<string, string>;
|
|
6
|
+
export interface Environments {
|
|
7
|
+
GLOBAL_NAMESPACE?: string;
|
|
8
|
+
LABEL_BASE_DOMAIN?: string;
|
|
9
|
+
LOGO_URL?: string;
|
|
10
|
+
INNER_PROJECT_NS_PREFIX?: string;
|
|
11
|
+
CPAAS_SESSION_SWITCH?: 'on' | 'off';
|
|
12
|
+
CLOSE_BROWSER_END_SESSION?: string;
|
|
13
|
+
CURRENT_STATE?: 'Active' | 'Standby';
|
|
14
|
+
}
|
|
15
|
+
export type KeyValue<V = string, T extends object = object> = T & {
|
|
16
|
+
key: string;
|
|
17
|
+
value: V;
|
|
18
|
+
};
|
|
19
|
+
export interface ResourceListParams extends StringMap {
|
|
20
|
+
limit?: string;
|
|
21
|
+
continue?: string;
|
|
22
|
+
labelSelector?: string;
|
|
23
|
+
fieldSelector?: string;
|
|
24
|
+
field?: string;
|
|
25
|
+
keyword?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface WorkspaceParams {
|
|
28
|
+
project?: string;
|
|
29
|
+
cluster?: string;
|
|
30
|
+
namespace?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface WorkspaceListParams extends WorkspaceParams, ResourceListParams {
|
|
33
|
+
}
|
|
34
|
+
export interface WorkspaceDetailParams extends WorkspaceListParams {
|
|
35
|
+
name?: string;
|
|
36
|
+
}
|
|
37
|
+
export type Pagination<T, O = {
|
|
38
|
+
[key: string]: unknown;
|
|
39
|
+
}> = {
|
|
40
|
+
total: number;
|
|
41
|
+
items: T[];
|
|
42
|
+
} & O;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* @module types
|
|
4
|
+
*/
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { Primitive } from 'ts-essentials';
|
|
7
|
+
export { DeepPartial, DeepReadonly, Dictionary, ValueOf as LooseValueOf, } from 'ts-essentials';
|
|
8
|
+
export type Readonlyable<T> = T | Readonly<T>;
|
|
9
|
+
export type AnyArray<T> = Readonlyable<T[]>;
|
|
10
|
+
export type Arrayable<T, R extends boolean = false> = [R] extends [never] ? T | T[] : R extends true ? Readonly<T> | readonly T[] : R extends false ? Readonlyable<T> | AnyArray<T> : never;
|
|
11
|
+
export type Nullable<T> = T | null | undefined;
|
|
12
|
+
export type Callback<T extends any[] = unknown[], R = unknown> = (...args: T) => R;
|
|
13
|
+
/** Dark magic helper */
|
|
14
|
+
export type IfEqual<X, Y, A = X, B = never> = (<T>() => T extends X ? true : false) extends <T>() => T extends Y ? true : false ? A : B;
|
|
15
|
+
export type Keys<T> = {
|
|
16
|
+
[Key in keyof T]: Key;
|
|
17
|
+
};
|
|
18
|
+
export type ObservableType<T> = T extends Observable<infer R> ? R : never;
|
|
19
|
+
export type UnaryObservableFunction<T, R> = (source: Observable<T>) => Observable<R>;
|
|
20
|
+
export type ValueOf<T> = T extends {
|
|
21
|
+
[key: string]: infer M;
|
|
22
|
+
} ? M : T extends {
|
|
23
|
+
[key: number]: infer N;
|
|
24
|
+
} ? N : never;
|
|
25
|
+
export declare function isErrorMessage<T extends {
|
|
26
|
+
message: string;
|
|
27
|
+
}>(error: any): error is T;
|
|
28
|
+
export type LiteralUnion<LiteralType, BaseType extends Primitive> = LiteralType | (BaseType & {
|
|
29
|
+
_?: never;
|
|
30
|
+
});
|
|
31
|
+
export declare const DataSource: {
|
|
32
|
+
readonly Platform: "Platform";
|
|
33
|
+
readonly Business: "Business";
|
|
34
|
+
};
|
|
35
|
+
export type DataSource = ValueOf<typeof DataSource>;
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { StringMap } from '../common';
|
|
2
|
+
/**
|
|
3
|
+
* 维护 k8s core 类型,比如 metaType,Condition,ownerRef 等等,
|
|
4
|
+
* 这里的类型基本是具体类型都依赖的基础类型。大大概率不会变化的
|
|
5
|
+
*/
|
|
6
|
+
export type LimitType = 'Container' | 'Pod' | 'PersistentVolumeClaim';
|
|
7
|
+
export interface LimitRangeSpec extends KubernetesResource {
|
|
8
|
+
limits: LimitRangeItem[];
|
|
9
|
+
}
|
|
10
|
+
export interface LimitRange extends KubernetesResource {
|
|
11
|
+
spec?: LimitRangeSpec;
|
|
12
|
+
}
|
|
13
|
+
export interface LimitRangeItem {
|
|
14
|
+
type: LimitType;
|
|
15
|
+
min?: StringMap;
|
|
16
|
+
max?: StringMap;
|
|
17
|
+
default?: StringMap;
|
|
18
|
+
defaultRequest?: StringMap;
|
|
19
|
+
maxLimitRequestRatio?: StringMap;
|
|
20
|
+
}
|
|
21
|
+
export interface ObjectReference {
|
|
22
|
+
kind?: string;
|
|
23
|
+
namespace?: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
uid?: string;
|
|
26
|
+
apiVersion?: string;
|
|
27
|
+
resourceVersion?: string;
|
|
28
|
+
fieldPath?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface LabelSelector {
|
|
31
|
+
matchLabels?: StringMap;
|
|
32
|
+
matchExpressions?: LabelSelectorRequirement[];
|
|
33
|
+
}
|
|
34
|
+
export interface LabelSelectorRequirement {
|
|
35
|
+
key: string;
|
|
36
|
+
operator?: '=' | '==' | '!=' | '!' | 'in' | 'notin' | 'exists' | 'doesnotexist' | 'In';
|
|
37
|
+
values?: string[];
|
|
38
|
+
}
|
|
39
|
+
export interface TypeMeta {
|
|
40
|
+
kind?: string;
|
|
41
|
+
apiVersion?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface OwnerReference {
|
|
44
|
+
apiVersion: string;
|
|
45
|
+
kind: string;
|
|
46
|
+
name: string;
|
|
47
|
+
uid: string;
|
|
48
|
+
controller?: boolean;
|
|
49
|
+
blockOwnerDeletion?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface ObjectMeta {
|
|
52
|
+
name?: string;
|
|
53
|
+
generateName?: string;
|
|
54
|
+
namespace?: string;
|
|
55
|
+
labels?: StringMap;
|
|
56
|
+
annotations?: StringMap;
|
|
57
|
+
finalizers?: string[];
|
|
58
|
+
selfLink?: string;
|
|
59
|
+
uid?: string;
|
|
60
|
+
creationTimestamp?: string;
|
|
61
|
+
deletionTimestamp?: string;
|
|
62
|
+
ownerReferences?: OwnerReference[];
|
|
63
|
+
resourceVersion?: string;
|
|
64
|
+
generation?: number;
|
|
65
|
+
continue?: string;
|
|
66
|
+
totalItems?: number;
|
|
67
|
+
managedFields?: unknown;
|
|
68
|
+
clusterName?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface KubernetesResource extends TypeMeta {
|
|
71
|
+
metadata?: ObjectMeta;
|
|
72
|
+
spec?: unknown;
|
|
73
|
+
status?: unknown;
|
|
74
|
+
}
|
|
75
|
+
export interface UntypedKubernetesResource extends TypeMeta {
|
|
76
|
+
metadata?: ObjectMeta;
|
|
77
|
+
spec?: any;
|
|
78
|
+
status?: any;
|
|
79
|
+
}
|
|
80
|
+
export interface KubernetesResourceList<T extends KubernetesResource = KubernetesResource> extends KubernetesResource {
|
|
81
|
+
items: T[];
|
|
82
|
+
}
|
|
83
|
+
export interface Condition {
|
|
84
|
+
lastProbeTime?: string;
|
|
85
|
+
lastTransitionTime?: string;
|
|
86
|
+
message?: string;
|
|
87
|
+
reason?: string;
|
|
88
|
+
status?: string;
|
|
89
|
+
type?: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Kubernetes Subject
|
|
93
|
+
* https://github.com/kubernetes/api/blob/9b64426eca51a74faa7cc9bd732a533d339c69c2/rbac/v1/types.go#L74
|
|
94
|
+
*/
|
|
95
|
+
export interface KubernetesSubject {
|
|
96
|
+
kind: string;
|
|
97
|
+
APIGroup?: string;
|
|
98
|
+
namespace?: string;
|
|
99
|
+
name: string;
|
|
100
|
+
}
|
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
import { ValueOf } from 'ts-essentials';
|
|
2
|
+
import { StringMap } from '../common';
|
|
3
|
+
import { Condition, KubernetesResource, KubernetesResourceList, ObjectMeta } from './core';
|
|
4
|
+
import { ConfigMapKeyRef, SecretKeyRef } from './raw';
|
|
5
|
+
export interface ClusterSpec {
|
|
6
|
+
authInfo?: {
|
|
7
|
+
controller: {
|
|
8
|
+
kind: string;
|
|
9
|
+
namespace: string;
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
kubernetesApiEndpoints?: {
|
|
14
|
+
caBundle?: string;
|
|
15
|
+
serverEndpoints: Array<{
|
|
16
|
+
clientCIDR: string;
|
|
17
|
+
serverAddress: string;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export type ClusterStatusReason = 'Timeout' | 'Forbidden' | 'Unauthorized' | 'SomeComponentsUnhealthy' | 'SomeNodesNotReady';
|
|
22
|
+
export interface ClusterStatusCondition extends Condition {
|
|
23
|
+
lastTransitionTime: string;
|
|
24
|
+
type: 'NotReachable' | 'NotAccessible' | 'ComponentNotHealthy' | 'NodeNotReady';
|
|
25
|
+
status: 'True' | 'False';
|
|
26
|
+
reason: ClusterStatusReason;
|
|
27
|
+
}
|
|
28
|
+
export interface ClusterStatus {
|
|
29
|
+
version: string;
|
|
30
|
+
conditions: ClusterStatusCondition[];
|
|
31
|
+
}
|
|
32
|
+
export interface Cluster extends KubernetesResource {
|
|
33
|
+
metadata?: ObjectMeta & {
|
|
34
|
+
finalizers?: string[];
|
|
35
|
+
};
|
|
36
|
+
spec?: ClusterSpec;
|
|
37
|
+
status?: ClusterStatus;
|
|
38
|
+
details?: {
|
|
39
|
+
group: string;
|
|
40
|
+
kind: string;
|
|
41
|
+
name: string;
|
|
42
|
+
uid: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export interface AlaudaProductStatus extends Condition {
|
|
46
|
+
deployStatus?: AlaudaDeployStatus;
|
|
47
|
+
runningStatus?: AlaudaRunningStatus;
|
|
48
|
+
message: string;
|
|
49
|
+
deployTime?: string;
|
|
50
|
+
}
|
|
51
|
+
export declare enum AlaudaRunningStatus {
|
|
52
|
+
NOT_RUNNING = "NotRunning",
|
|
53
|
+
HEALTHY = "Healthy",
|
|
54
|
+
ABNORMAL = "Abnormal"
|
|
55
|
+
}
|
|
56
|
+
export declare enum AlaudaDeployStatus {
|
|
57
|
+
NOT_DEPLOYED = "NotDeployed",
|
|
58
|
+
SUCCESS = "success",
|
|
59
|
+
ABNORMAL = "Abnormal",
|
|
60
|
+
DEPLOYING = "Deploying",
|
|
61
|
+
DEPLOY_FAILED = "DeployFailed",
|
|
62
|
+
UPGRADING = "Upgrading",
|
|
63
|
+
UPGRADE_FAILED = "UpgradeFailed",
|
|
64
|
+
COMPLETED = "Completed",
|
|
65
|
+
PENDING = "Pending"
|
|
66
|
+
}
|
|
67
|
+
export interface ProductBase extends KubernetesResource {
|
|
68
|
+
spec: ProductBaseSpec;
|
|
69
|
+
status?: ProductBaseStatus;
|
|
70
|
+
}
|
|
71
|
+
export interface ProductStatusCondition {
|
|
72
|
+
status?: 'True' | 'False' | 'Unknown';
|
|
73
|
+
reason?: string;
|
|
74
|
+
message?: string;
|
|
75
|
+
type: 'Ready' | 'Initialized' | 'Reclaimed' | 'Succeed';
|
|
76
|
+
lastTransitionTime?: string;
|
|
77
|
+
lastHeartbeatTime?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface ProductBaseStatus {
|
|
80
|
+
globalID: string;
|
|
81
|
+
cloud: {
|
|
82
|
+
phase: 'ONLine' | 'ConnectFailed' | 'Connecting' | 'OFFLine';
|
|
83
|
+
message: string;
|
|
84
|
+
connectURL: string;
|
|
85
|
+
};
|
|
86
|
+
version: string;
|
|
87
|
+
phase?: 'Pending' | 'Provisioning' | 'Provisioned' | 'Deleting' | 'Failed' | 'Running' | 'Installing' | 'Upgrading';
|
|
88
|
+
productEntrypoint?: string;
|
|
89
|
+
deletable?: boolean;
|
|
90
|
+
conditions?: ProductStatusCondition[];
|
|
91
|
+
prometheusAddress?: string;
|
|
92
|
+
elasticSearchAddress?: string;
|
|
93
|
+
kafkaAddress?: string;
|
|
94
|
+
containerPlatform?: AlaudaProductStatus;
|
|
95
|
+
devops?: AlaudaProductStatus;
|
|
96
|
+
serviceMesh?: AlaudaProductStatus;
|
|
97
|
+
dataServices?: AlaudaProductStatus;
|
|
98
|
+
base?: AlaudaProductStatus;
|
|
99
|
+
progress?: number;
|
|
100
|
+
replicas?: number;
|
|
101
|
+
}
|
|
102
|
+
export declare const ProductKey: {
|
|
103
|
+
readonly BASE: "base";
|
|
104
|
+
readonly CONTAINER_PLATFORM: "containerPlatform";
|
|
105
|
+
readonly DEVOPS: "devops";
|
|
106
|
+
readonly SERVICE_MESH: "serviceMesh";
|
|
107
|
+
readonly DATA_SERVICES: "dataServices";
|
|
108
|
+
};
|
|
109
|
+
export type ProductKey = ValueOf<typeof ProductKey>;
|
|
110
|
+
type GenProduct<T extends ProductKey> = Record<T, {
|
|
111
|
+
install: boolean;
|
|
112
|
+
}>;
|
|
113
|
+
export interface Tls {
|
|
114
|
+
secretRef: {
|
|
115
|
+
name: string;
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
export interface ProductBaseSpec extends GenProduct<ProductKey> {
|
|
119
|
+
alternativeURLs: string[];
|
|
120
|
+
chartMuseum: {
|
|
121
|
+
url: string;
|
|
122
|
+
};
|
|
123
|
+
packageEdition: string;
|
|
124
|
+
valuesOverride?: {
|
|
125
|
+
dex: StringMap;
|
|
126
|
+
};
|
|
127
|
+
chartVersions: [{
|
|
128
|
+
name: string;
|
|
129
|
+
version: string;
|
|
130
|
+
}];
|
|
131
|
+
defaultAdmin: {
|
|
132
|
+
account: string;
|
|
133
|
+
email: string;
|
|
134
|
+
password: string;
|
|
135
|
+
};
|
|
136
|
+
defaultRedirectPath: string;
|
|
137
|
+
deployType: string;
|
|
138
|
+
elasticsearch: {
|
|
139
|
+
install: boolean;
|
|
140
|
+
nodes: string[];
|
|
141
|
+
username: string;
|
|
142
|
+
};
|
|
143
|
+
http: {
|
|
144
|
+
forceRedirectHttps?: boolean;
|
|
145
|
+
httpPort?: number;
|
|
146
|
+
httpsPort?: number;
|
|
147
|
+
tls?: Tls;
|
|
148
|
+
};
|
|
149
|
+
ingress: {
|
|
150
|
+
controller: {
|
|
151
|
+
install: boolean;
|
|
152
|
+
nodes: string[];
|
|
153
|
+
};
|
|
154
|
+
host: string;
|
|
155
|
+
ingressClassName: string;
|
|
156
|
+
};
|
|
157
|
+
kafka: {
|
|
158
|
+
auth: boolean;
|
|
159
|
+
install: boolean;
|
|
160
|
+
nodes: string[];
|
|
161
|
+
username: string;
|
|
162
|
+
};
|
|
163
|
+
logAgent: {
|
|
164
|
+
enable: boolean;
|
|
165
|
+
};
|
|
166
|
+
logCenter: {
|
|
167
|
+
enable: boolean;
|
|
168
|
+
};
|
|
169
|
+
platformURL: string;
|
|
170
|
+
prometheus: {
|
|
171
|
+
install: boolean;
|
|
172
|
+
replicas: number;
|
|
173
|
+
storage: {
|
|
174
|
+
capacity: number;
|
|
175
|
+
nodes: string[];
|
|
176
|
+
path: string;
|
|
177
|
+
type: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
registry: {
|
|
181
|
+
external?: string;
|
|
182
|
+
address: string;
|
|
183
|
+
username: string;
|
|
184
|
+
secretRef?: string;
|
|
185
|
+
};
|
|
186
|
+
replicas: number;
|
|
187
|
+
version: string;
|
|
188
|
+
cloud: {
|
|
189
|
+
connect: boolean;
|
|
190
|
+
connectType: string;
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
export interface ProjectSpec {
|
|
194
|
+
clusters: ProjectCluster[];
|
|
195
|
+
status?: {
|
|
196
|
+
phase: string;
|
|
197
|
+
};
|
|
198
|
+
clusterDeletePolicy?: 'Delete' | 'Retain';
|
|
199
|
+
}
|
|
200
|
+
export interface ProjectCluster {
|
|
201
|
+
name: string;
|
|
202
|
+
quota: Record<string, string>;
|
|
203
|
+
type?: '' | 'FedMember';
|
|
204
|
+
}
|
|
205
|
+
export interface Project extends KubernetesResource {
|
|
206
|
+
spec: ProjectSpec;
|
|
207
|
+
status?: {
|
|
208
|
+
phase: string;
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
export type LocaleDisplay = Record<string, string>;
|
|
212
|
+
export interface ProductEntrySpec {
|
|
213
|
+
logo?: string;
|
|
214
|
+
displayName?: LocaleDisplay;
|
|
215
|
+
description?: LocaleDisplay;
|
|
216
|
+
catalog?: LocaleDisplay;
|
|
217
|
+
entrypoint?: string;
|
|
218
|
+
ssoEnabled?: boolean;
|
|
219
|
+
packType?: 'Integrated' | 'BuildIn' | 'AdminPage';
|
|
220
|
+
version?: string;
|
|
221
|
+
}
|
|
222
|
+
export interface ProductEntryStatus {
|
|
223
|
+
hiddenOnPortal?: boolean;
|
|
224
|
+
hiddenOnMenu?: boolean;
|
|
225
|
+
orderOnPortal?: number;
|
|
226
|
+
orderOnMenu?: number;
|
|
227
|
+
}
|
|
228
|
+
export interface ProductEntry extends KubernetesResource {
|
|
229
|
+
spec?: ProductEntrySpec;
|
|
230
|
+
status?: ProductEntryStatus;
|
|
231
|
+
}
|
|
232
|
+
export interface ProductStatus {
|
|
233
|
+
type: 'NotDeployed' | 'InDeployment' | 'Running' | 'DeploymentFailure' | 'RunningAbnormal' | 'Deleting' | 'DeleteFailure' | 'DeploymentSucceed' | 'SystemError' | 'Upgrading';
|
|
234
|
+
icon: string;
|
|
235
|
+
text: string;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* @link https://gitlab-ce.alauda.cn/container-platform/captain/-/blob/master/docs/crd.md
|
|
239
|
+
*/
|
|
240
|
+
export interface HelmRequest extends KubernetesResource {
|
|
241
|
+
spec?: HelmRequestSpec;
|
|
242
|
+
status?: {
|
|
243
|
+
phase: HelmRequestPhaseEnum;
|
|
244
|
+
notes?: string;
|
|
245
|
+
lastSpecHash?: string;
|
|
246
|
+
reason?: string;
|
|
247
|
+
conditions?: HelmRequestCondition[];
|
|
248
|
+
targetClusterSyncResults?: HelmRequestClusterSyncResults;
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
export interface HelmRequestCondition {
|
|
252
|
+
lastProbeTime?: string;
|
|
253
|
+
lastTransitionTime?: string;
|
|
254
|
+
message: string;
|
|
255
|
+
reason: string;
|
|
256
|
+
status: 'True' | 'False';
|
|
257
|
+
type: string;
|
|
258
|
+
}
|
|
259
|
+
export interface HelmRequestClusterSyncResults {
|
|
260
|
+
[cluster: string]: HelmRequestClusterSyncResult;
|
|
261
|
+
}
|
|
262
|
+
export declare enum CloudHelmRequestStateEnum {
|
|
263
|
+
Pending = "Pending",
|
|
264
|
+
Running = "Running",
|
|
265
|
+
Stopped = "Stopped",
|
|
266
|
+
Failed = "Failed",
|
|
267
|
+
Empty = "Empty"
|
|
268
|
+
}
|
|
269
|
+
export interface HelmRequestClusterSyncResult {
|
|
270
|
+
appStatus: CloudHelmRequestStateEnum;
|
|
271
|
+
endpoint: string;
|
|
272
|
+
lastUpdateAt: string;
|
|
273
|
+
name: string;
|
|
274
|
+
phase: HelmRequestPhaseEnum;
|
|
275
|
+
reason: string;
|
|
276
|
+
}
|
|
277
|
+
export declare enum HelmRequestPhaseEnum {
|
|
278
|
+
Synced = "Synced",
|
|
279
|
+
Failed = "Failed",
|
|
280
|
+
Pending = "Pending",
|
|
281
|
+
Uninstalling = "Uninstalling"
|
|
282
|
+
}
|
|
283
|
+
export interface HelmRequestSpec {
|
|
284
|
+
chart?: string;
|
|
285
|
+
values: Record<string, unknown>;
|
|
286
|
+
valuesFrom?: Array<{
|
|
287
|
+
configMapKeyRef?: ConfigMapKeyRef;
|
|
288
|
+
secretKeyRef?: SecretKeyRef;
|
|
289
|
+
}>;
|
|
290
|
+
clusterName?: string;
|
|
291
|
+
namespace?: string;
|
|
292
|
+
releaseName?: string;
|
|
293
|
+
version?: string;
|
|
294
|
+
projectName?: string;
|
|
295
|
+
source?: {
|
|
296
|
+
oci?: HelmRequestOci;
|
|
297
|
+
http?: HelmRequestHttp;
|
|
298
|
+
};
|
|
299
|
+
targetClusters?: {
|
|
300
|
+
clusterNames: {
|
|
301
|
+
names: string[];
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
export interface HelmRequestOci {
|
|
306
|
+
repo: string;
|
|
307
|
+
secretRef: string;
|
|
308
|
+
}
|
|
309
|
+
export interface HelmRequestHttp {
|
|
310
|
+
url: string;
|
|
311
|
+
secretRef: string;
|
|
312
|
+
}
|
|
313
|
+
export interface User extends KubernetesResource {
|
|
314
|
+
spec?: UserSpec;
|
|
315
|
+
}
|
|
316
|
+
export interface UserSpec {
|
|
317
|
+
connector_name?: string;
|
|
318
|
+
connector_type?: string;
|
|
319
|
+
email?: string;
|
|
320
|
+
mail?: string;
|
|
321
|
+
groups?: string[];
|
|
322
|
+
is_admin?: boolean;
|
|
323
|
+
valid?: boolean;
|
|
324
|
+
username?: string;
|
|
325
|
+
old_password?: string;
|
|
326
|
+
password?: string;
|
|
327
|
+
last_login_time?: string;
|
|
328
|
+
login_failure_times?: number;
|
|
329
|
+
state?: UserState;
|
|
330
|
+
is_disabled?: boolean;
|
|
331
|
+
expired?: {
|
|
332
|
+
begin: string;
|
|
333
|
+
end: string;
|
|
334
|
+
};
|
|
335
|
+
mobile?: string;
|
|
336
|
+
webhookType?: WebhookType;
|
|
337
|
+
webhookUrl?: string;
|
|
338
|
+
ids?: Array<{
|
|
339
|
+
type: string;
|
|
340
|
+
id: string;
|
|
341
|
+
}>;
|
|
342
|
+
}
|
|
343
|
+
export declare enum UserState {
|
|
344
|
+
ACTIVE = "active",
|
|
345
|
+
LOCKED = "locked",
|
|
346
|
+
INVALID = "invalid",
|
|
347
|
+
DELETED = "deleted"
|
|
348
|
+
}
|
|
349
|
+
export type WebhookType = 'Webhook' | 'DingTalk' | 'WeChat';
|
|
350
|
+
export interface UserList extends KubernetesResourceList<User> {
|
|
351
|
+
total: number;
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* https://confluence.alauda.cn/pages/viewpage.action?pageId=176883470
|
|
355
|
+
*/
|
|
356
|
+
export interface UserBinding extends KubernetesResource {
|
|
357
|
+
spec?: UserBindingSpec;
|
|
358
|
+
}
|
|
359
|
+
export interface UserBindingSpec {
|
|
360
|
+
subjects: Array<{
|
|
361
|
+
kind: 'User' | 'Group' | 'ServiceAccount';
|
|
362
|
+
name: string;
|
|
363
|
+
}>;
|
|
364
|
+
roleRef: string;
|
|
365
|
+
scope: string;
|
|
366
|
+
constraint: Array<{
|
|
367
|
+
project?: string;
|
|
368
|
+
cluster?: string;
|
|
369
|
+
namespace?: string;
|
|
370
|
+
}>;
|
|
371
|
+
}
|
|
372
|
+
export interface UserGroup extends KubernetesResource {
|
|
373
|
+
spec: UserGroupSpec;
|
|
374
|
+
}
|
|
375
|
+
export interface UserGroupSpec {
|
|
376
|
+
refConnector?: {
|
|
377
|
+
id: string;
|
|
378
|
+
type: string;
|
|
379
|
+
};
|
|
380
|
+
name?: string;
|
|
381
|
+
description?: string;
|
|
382
|
+
users?: Array<{
|
|
383
|
+
name: string;
|
|
384
|
+
importTime: string;
|
|
385
|
+
}>;
|
|
386
|
+
}
|
|
387
|
+
export interface RoleRule {
|
|
388
|
+
functionResourceRef: string;
|
|
389
|
+
verbs: string[];
|
|
390
|
+
}
|
|
391
|
+
export interface RoleCustomRule {
|
|
392
|
+
apiGroup: string;
|
|
393
|
+
resources: string[];
|
|
394
|
+
verbs: string[];
|
|
395
|
+
}
|
|
396
|
+
export interface RoleTemplateSpec {
|
|
397
|
+
rules?: RoleRule[];
|
|
398
|
+
customRules?: RoleCustomRule[];
|
|
399
|
+
}
|
|
400
|
+
export interface RoleTemplate extends KubernetesResource {
|
|
401
|
+
spec?: RoleTemplateSpec;
|
|
402
|
+
}
|
|
403
|
+
export interface UserRoleNamespace {
|
|
404
|
+
namespace: string;
|
|
405
|
+
cluster: string;
|
|
406
|
+
}
|
|
407
|
+
export interface UserRole extends KubernetesResource {
|
|
408
|
+
name?: string;
|
|
409
|
+
roles?: string[];
|
|
410
|
+
namespaces?: Record<string, UserRoleNamespace[]>;
|
|
411
|
+
}
|
|
412
|
+
export declare enum UserSecurityPolicyRule {
|
|
413
|
+
PasswordPolicy = "PasswordPolicy",
|
|
414
|
+
UserLock = "UserLockedPolicy",
|
|
415
|
+
UserDisable = "UserDisabledPolicy",
|
|
416
|
+
Notification = "NotificationPolicy",
|
|
417
|
+
AccessControl = "AccessControlPolicy",
|
|
418
|
+
TwoFA = "TwoFactorAuthenticationPolicy"
|
|
419
|
+
}
|
|
420
|
+
export interface UserPolicyRule {
|
|
421
|
+
name: UserSecurityPolicyRule;
|
|
422
|
+
items: Array<{
|
|
423
|
+
enable: boolean;
|
|
424
|
+
key: string;
|
|
425
|
+
value?: string;
|
|
426
|
+
}>;
|
|
427
|
+
}
|
|
428
|
+
export interface UserPolicy extends KubernetesResource {
|
|
429
|
+
rules: UserPolicyRule[];
|
|
430
|
+
}
|
|
431
|
+
export interface Idp extends KubernetesResource {
|
|
432
|
+
spec?: {
|
|
433
|
+
config?: LdapConfig | OidcConfig;
|
|
434
|
+
};
|
|
435
|
+
id: string;
|
|
436
|
+
name: string;
|
|
437
|
+
type: string;
|
|
438
|
+
namespace?: string;
|
|
439
|
+
config?: string;
|
|
440
|
+
ldapSync?: {
|
|
441
|
+
sync: boolean;
|
|
442
|
+
roles: string;
|
|
443
|
+
};
|
|
444
|
+
idpValidation?: {
|
|
445
|
+
username: string;
|
|
446
|
+
password: string;
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
export interface LdapConfig {
|
|
450
|
+
host?: string;
|
|
451
|
+
insecureNoSSL?: boolean;
|
|
452
|
+
insecureSkipVerify?: boolean;
|
|
453
|
+
startTLS?: boolean;
|
|
454
|
+
rootCA?: string;
|
|
455
|
+
rootCAData?: string;
|
|
456
|
+
bindDN?: string;
|
|
457
|
+
bindPW?: string;
|
|
458
|
+
clientSecretRef?: string;
|
|
459
|
+
ldapType?: string;
|
|
460
|
+
usernamePrompt?: string;
|
|
461
|
+
userSearch?: LdapUserSearch;
|
|
462
|
+
groupSearch?: LdapGroupSearch;
|
|
463
|
+
}
|
|
464
|
+
export interface LdapUserSearch {
|
|
465
|
+
baseDN?: string;
|
|
466
|
+
filter?: string;
|
|
467
|
+
scope?: string;
|
|
468
|
+
username?: string;
|
|
469
|
+
idAttr?: string;
|
|
470
|
+
emailAttr?: string;
|
|
471
|
+
nameAttr?: string;
|
|
472
|
+
}
|
|
473
|
+
export interface LdapGroupSearch {
|
|
474
|
+
baseDN?: string;
|
|
475
|
+
filter?: string;
|
|
476
|
+
scope?: string;
|
|
477
|
+
userAttr?: string;
|
|
478
|
+
groupAttr?: string;
|
|
479
|
+
nameAttr?: string;
|
|
480
|
+
}
|
|
481
|
+
export interface OidcConfig {
|
|
482
|
+
issuer?: string;
|
|
483
|
+
clientID?: string;
|
|
484
|
+
clientSecret?: string;
|
|
485
|
+
clientSecretRef?: string;
|
|
486
|
+
redirectURI?: string;
|
|
487
|
+
logoutURL?: string;
|
|
488
|
+
scopes?: string[];
|
|
489
|
+
}
|
|
490
|
+
export interface AccessTokenInfo extends KubernetesResource {
|
|
491
|
+
spec: {
|
|
492
|
+
timestamp: number;
|
|
493
|
+
expiration: number;
|
|
494
|
+
description: string;
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
export {};
|