@k8slens/extensions 6.3.0-git.fe0c13424a.0 → 6.3.1-git.6aee907dc5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/common/app-paths/app-path-injection-token.d.ts +4 -1
- package/dist/src/common/app-paths/app-path-names.d.ts +1 -1
- package/dist/src/common/app-paths/app-paths.injectable.d.ts +1 -1
- package/dist/src/common/base-store/base-store.d.ts +67 -0
- package/dist/src/common/base-store/channel-prefix.d.ts +6 -0
- package/dist/src/common/{__tests__/base-store.test.d.ts → base-store/disable-sync.d.ts} +1 -1
- package/dist/src/common/base-store/migrations.injectable.d.ts +13 -0
- package/dist/src/common/base-store/save-to-file.d.ts +3 -0
- package/dist/src/common/catalog/index.d.ts +0 -1
- package/dist/src/common/cluster/cluster.d.ts +13 -28
- package/dist/src/common/cluster/current-cluster-channel.d.ts +7 -0
- package/dist/src/common/cluster/request-namespace-list-permissions.injectable.d.ts +18 -0
- package/dist/src/common/cluster-store/allowed-resources-injection-token.d.ts +2 -1
- package/dist/src/common/cluster-store/cluster-store.d.ts +5 -12
- package/dist/src/common/cluster-store/migration-token.d.ts +6 -0
- package/dist/src/common/fetch/download-json/impl.d.ts +11 -0
- package/dist/src/common/fetch/download-json/normal.injectable.d.ts +2 -0
- package/dist/src/common/fetch/download-json/proxy.injectable.d.ts +2 -0
- package/dist/src/common/fetch/fetch-module.injectable.d.ts +7 -0
- package/dist/src/common/fetch/fetch.injectable.d.ts +1 -3
- package/dist/src/common/fetch/proxy-fetch.injectable.d.ts +3 -0
- package/dist/src/common/fs/exec-file.global-override-for-injectable.d.ts +9 -0
- package/dist/src/common/fs/fs.injectable.d.ts +25 -1
- package/dist/src/common/fs/path-exists-sync.injectable.d.ts +2 -0
- package/dist/src/common/fs/read-directory.injectable.d.ts +4 -4
- package/dist/src/common/fs/read-file-buffer-sync.injectable.d.ts +4 -0
- package/dist/src/common/fs/read-json-sync.injectable.d.ts +2 -0
- package/dist/src/common/fs/{move.global-override-for-injectable.d.ts → remove.global-override-for-injectable.d.ts} +2 -2
- package/dist/src/common/fs/{remove-path.injectable.d.ts → remove.injectable.d.ts} +1 -1
- package/dist/src/common/fs/{stat/stat.injectable.d.ts → stat.injectable.d.ts} +0 -0
- package/dist/src/common/fs/write-file-sync.injectable.d.ts +3 -0
- package/dist/src/common/fs/write-json-file.injectable.d.ts +1 -2
- package/dist/src/common/fs/write-json-sync.injectable.d.ts +3 -0
- package/dist/src/common/{fs/path-exists.global-override-for-injectable.d.ts → get-configuration-file-model/get-configuration-file-model.global-override-for-injectable.d.ts} +2 -2
- package/dist/src/common/get-configuration-file-model/get-configuration-file-model.injectable.d.ts +3 -2
- package/dist/src/common/helm/helm-repo.d.ts +3 -3
- package/dist/src/common/hotbars/migrations-token.d.ts +6 -0
- package/dist/src/common/hotbars/store.d.ts +4 -4
- package/dist/src/common/k8s-api/api-base-configs.d.ts +6 -0
- package/dist/src/common/k8s-api/api-base.injectable.d.ts +2 -0
- package/dist/src/common/k8s-api/api-manager/resource.store.d.ts +2 -1
- package/dist/src/common/k8s-api/endpoints/helm-charts.api/request-readme.injectable.d.ts +2 -1
- package/dist/src/common/k8s-api/endpoints/helm-charts.api/request-values.injectable.d.ts +2 -1
- package/dist/src/common/k8s-api/endpoints/resource-applier.api/request-patch.injectable.d.ts +2 -1
- package/dist/src/common/k8s-api/endpoints/resource-applier.api/request-update.injectable.d.ts +2 -1
- package/dist/src/common/k8s-api/kube-api.d.ts +5 -4
- package/dist/src/common/k8s-api/kube-object.store.d.ts +8 -16
- package/dist/src/common/logger.d.ts +2 -2
- package/dist/src/common/rbac.d.ts +12 -4
- package/dist/src/common/runnable/run-many-for.d.ts +4 -2
- package/dist/src/common/user-store/current-timezone.global-override-for-injectable.d.ts +9 -0
- package/dist/src/common/user-store/current-timezone.injectable.d.ts +2 -0
- package/dist/src/common/user-store/https-proxy.injectable.d.ts +2 -0
- package/dist/src/common/user-store/lens-color-theme.injectable.d.ts +8 -0
- package/dist/src/common/user-store/migrations-token.d.ts +6 -0
- package/dist/src/common/user-store/preferences-helpers.d.ts +6 -26
- package/dist/src/common/user-store/terminal-theme.injectable.d.ts +8 -0
- package/dist/src/common/user-store/user-store.d.ts +25 -27
- package/dist/src/common/utils/collection-functions.d.ts +5 -0
- package/dist/src/common/{ipc/native-theme.d.ts → utils/computed-or.d.ts} +2 -2
- package/dist/src/{migrations/utils.d.ts → common/utils/generate-new-id-for.d.ts} +0 -0
- package/dist/src/common/utils/iter.d.ts +2 -2
- package/dist/src/common/{fs/remove-path.global-override-for-injectable.d.ts → utils/random-bytes.global-override-for-injectable.d.ts} +2 -2
- package/dist/src/common/utils/random-bytes.injectable.d.ts +4 -0
- package/dist/src/common/utils/singleton.d.ts +5 -2
- package/dist/src/common/utils/sort-function.d.ts +8 -0
- package/dist/src/common/utils/type-narrowing.d.ts +4 -0
- package/dist/src/common/utils/with-concurrency-limit.d.ts +2 -0
- package/dist/src/common/vars/static-files-directory.global-override-for-injectable.d.ts +5 -0
- package/dist/src/common/vars.d.ts +1 -23
- package/dist/src/common/weblinks-store/migration-token.d.ts +6 -0
- package/dist/src/common/{weblink-store.d.ts → weblinks-store/weblink-store.d.ts} +3 -3
- package/dist/src/common/{weblink-store.injectable.d.ts → weblinks-store/weblink-store.injectable.d.ts} +0 -0
- package/dist/src/extensions/common-api/k8s-api.d.ts +21 -1
- package/dist/src/extensions/extension-api.js +1194 -2339
- package/dist/src/extensions/extension-discovery/bundled-extension-token.d.ts +11 -0
- package/dist/src/extensions/extension-discovery/extension-discovery.d.ts +3 -12
- package/dist/src/extensions/extension-installer/extension-installer.d.ts +0 -5
- package/dist/src/{migrations/cluster-store/3.6.0-beta.1.d.ts → extensions/extension-loader/entry-point-name.d.ts} +1 -3
- package/dist/src/extensions/extension-loader/extension-loader.d.ts +12 -8
- package/dist/src/extensions/extension-loader/file-system-provisioner-store/file-system-provisioner-store.d.ts +12 -6
- package/dist/src/extensions/extension-store.d.ts +22 -2
- package/dist/src/extensions/extensions-store/extensions-store.d.ts +3 -3
- package/dist/src/extensions/renderer-api/k8s-api.d.ts +1 -1
- package/dist/src/extensions/renderer-api/theming.d.ts +3 -3
- package/dist/src/features/application-menu/main/start-application-menu.injectable.d.ts +1 -1
- package/dist/src/features/application-update/child-features/periodical-checking-of-updates/main/start-checking-for-updates.injectable.d.ts +1 -1
- package/dist/src/features/cluster/state-sync/common/channels.d.ts +13 -0
- package/dist/src/features/cluster/state-sync/main/emit-update.injectable.d.ts +5 -0
- package/dist/src/features/cluster/state-sync/main/handle-initial.injectable.d.ts +5 -0
- package/dist/src/features/cluster/state-sync/main/setup-sync.injectable.d.ts +29 -0
- package/dist/src/features/cluster/state-sync/renderer/listener.injectable.d.ts +5 -0
- package/dist/src/features/cluster/state-sync/renderer/request-initial.injectable.d.ts +5 -0
- package/dist/src/features/cluster/state-sync/renderer/setup-sync.injectable.d.ts +29 -0
- package/dist/src/features/cluster/store/main/init.injectable.d.ts +25 -0
- package/dist/src/features/cluster/store/renderer/init.injectable.d.ts +25 -0
- package/dist/src/features/extensions/navigate/common/channel.d.ts +11 -0
- package/dist/src/features/extensions/navigate/renderer/listener.injectable.d.ts +5 -0
- package/dist/src/features/file-system-provisioner/main/init-store.injectable.d.ts +5 -0
- package/dist/src/features/file-system-provisioner/renderer/init-store.injectable.d.ts +5 -0
- package/dist/src/features/helm-charts/child-features/preferences/renderer/adding-of-custom-helm-repository/custom-helm-repo.injectable.d.ts +2 -10
- package/dist/src/features/helm-charts/child-features/preferences/renderer/adding-of-custom-helm-repository/helm-file-input/get-file-paths.injectable.d.ts +7 -5
- package/dist/src/features/helm-charts/child-features/preferences/renderer/adding-of-public-helm-repository/public-helm-repositories/{call-for-public-helm-repositories.injectable.d.ts → request-public-helm-repositories.injectable.d.ts} +2 -2
- package/dist/src/features/hotbar/store/main/init.injectable.d.ts +9 -0
- package/dist/src/features/hotbar/store/renderer/init.injectable.d.ts +29 -0
- package/dist/src/features/path-picking-dialog/common/channel.d.ts +13 -0
- package/dist/src/features/path-picking-dialog/main/handle-pick-paths.injectable.d.ts +9 -0
- package/dist/src/features/path-picking-dialog/renderer/pick-paths.injectable.d.ts +4 -0
- package/dist/src/features/preferences/renderer/preference-items/kubernetes/kubeconfig-sync/discover-all-sync-kinds.injectable.d.ts +4 -0
- package/dist/src/features/preferences/renderer/preference-items/kubernetes/kubeconfig-sync/discover-sync-kind.injectable.d.ts +6 -0
- package/dist/src/features/preferences/renderer/preference-items/kubernetes/kubeconfig-sync/kubeconfig-sync.d.ts +0 -11
- package/dist/src/features/theme/system-type/common/channels.d.ts +9 -0
- package/dist/src/features/theme/system-type/main/emit-update.injectable.d.ts +5 -0
- package/dist/src/features/theme/system-type/main/handle-initial.injectable.d.ts +9 -0
- package/dist/src/features/theme/system-type/main/setup-update-emitter.injectable.d.ts +5 -0
- package/dist/src/features/theme/system-type/renderer/initialize.injectable.d.ts +25 -0
- package/dist/src/features/theme/system-type/renderer/request-initial.injectable.d.ts +5 -0
- package/dist/src/features/theme/system-type/renderer/update-listener.injectable.d.ts +5 -0
- package/dist/src/main/app-paths/get-electron-app-path/get-electron-app-path.d.ts +1 -1
- package/dist/src/main/base-store/disable-sync-in-ipc-listener.injectable.d.ts +2 -0
- package/dist/src/main/base-store/ipc-channel-prefix.injectable.d.ts +5 -0
- package/dist/src/main/base-store/persist-state-to-config.injectable.d.ts +2 -0
- package/dist/src/main/catalog-sources/weblinks.d.ts +1 -1
- package/dist/src/main/catalog-sync-to-renderer/start-catalog-sync.injectable.d.ts +1 -1
- package/dist/src/main/cluster/request-api-resources.injectable.d.ts +13 -0
- package/dist/src/main/cluster/request-api-versions.d.ts +11 -0
- package/dist/src/main/cluster/request-core-api-versions.injectable.d.ts +5 -0
- package/dist/src/main/cluster/request-kube-api-resources-for.injectable.d.ts +7 -0
- package/dist/src/main/cluster/request-non-core-api-versions.injectable.d.ts +5 -0
- package/dist/src/main/cluster/store-migrations/3.6.0-beta.1.injectable.d.ts +9 -0
- package/dist/src/main/cluster/store-migrations/5.0.0-beta.10.injectable.d.ts +5 -0
- package/dist/src/main/cluster/store-migrations/5.0.0-beta.13.injectable.d.ts +9 -0
- package/dist/src/main/cluster/store-migrations/snap.injectable.d.ts +9 -0
- package/dist/src/main/create-cluster/allowed-resources.injectable.d.ts +2 -1
- package/dist/src/main/electron-app/features/set-login-item-settings.injectable.d.ts +4 -0
- package/dist/src/main/electron-app/features/show-open-dialog.global-override-for-injectable.d.ts +9 -0
- package/dist/src/main/electron-app/features/show-open-dialog.injectable.d.ts +4 -0
- package/dist/src/main/electron-app/runnables/setup-ipc-main-handlers/setup-ipc-main-handlers.d.ts +4 -6
- package/dist/src/main/extension-loader/entry-point-name.injectable.d.ts +2 -0
- package/dist/src/main/helm/helm-chart-manager.d.ts +19 -8
- package/dist/src/main/helm/helm-service/get-helm-chart-readme.global-override-for-injectable.d.ts +8 -2
- package/dist/src/main/helm/helm-service/get-helm-chart-readme.injectable.d.ts +5 -1
- package/dist/src/main/helm/helm-service/get-helm-chart-values.injectable.d.ts +5 -1
- package/dist/src/main/hotbar-store/migrations/5.0.0-alpha.0.injectable.d.ts +9 -0
- package/dist/src/main/hotbar-store/migrations/5.0.0-alpha.2.injectable.d.ts +9 -0
- package/dist/src/main/hotbar-store/migrations/5.0.0-beta.10.injectable.d.ts +9 -0
- package/dist/src/main/hotbar-store/migrations/5.0.0-beta.5.injectable.d.ts +9 -0
- package/dist/src/main/ipc/ask-user-for-file-paths.injectable.d.ts +4 -6
- package/dist/src/main/k8s/api-base-host-header.injectable.d.ts +2 -0
- package/dist/src/main/k8s/api-base-server-address.injectable.d.ts +2 -0
- package/dist/src/main/k8s-request.injectable.d.ts +2 -2
- package/dist/src/main/kubeconfig-manager/kubeconfig-manager.d.ts +2 -2
- package/dist/src/main/resource-applier/resource-applier.d.ts +2 -2
- package/dist/src/main/routes/helm/charts/get-readme-route.injectable.d.ts +19 -1
- package/dist/src/main/routes/helm/charts/get-values-route.injectable.d.ts +19 -1
- package/dist/src/main/routes/resource-applier/create-resource-route.injectable.d.ts +5 -5
- package/dist/src/main/shell-session/node-shell-session/open.injectable.d.ts +2 -1
- package/dist/src/main/shell-session/shell-session.d.ts +1 -1
- package/dist/src/main/start-main-application/lens-window/current-cluster-frame/listener.injectable.d.ts +5 -0
- package/dist/src/main/start-main-application/start-main-application.injectable.d.ts +1 -1
- package/dist/src/main/theme/sync-theme-from-os/start-syncing-theme-from-operating-system.injectable.d.ts +1 -1
- package/dist/src/main/tray/menu-icon/start-reactivity.injectable.d.ts +1 -1
- package/dist/src/main/user-store/migrations/5.0.0-alpha.3.injectable.d.ts +9 -0
- package/dist/src/main/user-store/migrations/5.0.3-beta.1.injectable.d.ts +9 -0
- package/dist/src/main/user-store/sync-open-at-login-with-os.injectable.d.ts +5 -0
- package/dist/src/{migrations/weblinks-store/5.1.4.d.ts → main/weblinks-store/links.d.ts} +6 -3
- package/dist/src/main/weblinks-store/migrations/5.1.4.injectable.d.ts +9 -0
- package/dist/src/main/weblinks-store/migrations/5.4.5-beta.1.injectable.d.ts +9 -0
- package/dist/src/main/weblinks-store/migrations/currentVersion.injectable.d.ts +9 -0
- package/dist/src/renderer/api/catalog/entity/metrics-details-component-enabled.injectable.d.ts +3 -0
- package/dist/src/renderer/api/catalog/entity/metrics-enabled.injectable.d.ts +3 -0
- package/dist/src/renderer/base-store/disable-sync-in-ipc-listener.injectable.d.ts +2 -0
- package/dist/src/renderer/base-store/ipc-channel-prefix.injectable.d.ts +5 -0
- package/dist/src/renderer/base-store/persist-state-to-config.injectable.d.ts +3 -0
- package/dist/src/renderer/before-frame-starts/runnables/configure-immer.injectable.d.ts +5 -0
- package/dist/src/renderer/before-frame-starts/runnables/configure-mobx.injectable.d.ts +5 -0
- package/dist/src/renderer/before-frame-starts/runnables/load-monaco-themes.injectable.d.ts +5 -0
- package/dist/src/renderer/before-frame-starts/runnables/setup-auto-registration.injectable.d.ts +5 -0
- package/dist/src/renderer/before-frame-starts/runnables/setup-current-cluster-broadcast.injectable.d.ts +5 -0
- package/dist/src/renderer/before-frame-starts/runnables/setup-kubernetes-cluster-catalog-add-menu.injectable.d.ts +5 -0
- package/dist/src/renderer/before-frame-starts/runnables/setup-kubernetes-cluster-context-menu-open.injectable.d.ts +5 -0
- package/dist/src/renderer/before-frame-starts/runnables/setup-root-mac-class.injectable.d.ts +5 -0
- package/dist/src/renderer/before-frame-starts/runnables/setup-sentry.injectable.d.ts +5 -0
- package/dist/src/renderer/before-frame-starts/runnables/setup-weblink-context-menu-open.injectable.d.ts +5 -0
- package/dist/src/renderer/before-frame-starts/tokens.d.ts +7 -0
- package/dist/src/renderer/cluster/accessible-namespaces.injectable.d.ts +2 -0
- package/dist/src/renderer/{create-cluster → cluster}/create-cluster.injectable.d.ts +0 -0
- package/dist/src/renderer/cluster-frame-context/cluster-frame-context.d.ts +9 -14
- package/dist/src/renderer/cluster-frame-context/for-cluster-scoped-resources.injectable.d.ts +3 -0
- package/dist/src/renderer/cluster-frame-context/for-namespaced-resources.injectable.d.ts +3 -0
- package/dist/src/renderer/cluster-frame-context/should-show-resource.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+cluster/cluster-overview-store/cluster-overview-store.d.ts +2 -1
- package/dist/src/renderer/components/+custom-resources/crd-resource-details.d.ts +1 -1
- package/dist/src/renderer/components/+custom-resources/definition.store.d.ts +3 -3
- package/dist/src/renderer/components/+events/store.d.ts +2 -2
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog.injectable.d.ts +2 -1
- package/dist/src/renderer/components/+helm-releases/release-details/release-details-model/release-details-model.injectable.d.ts +2 -2
- package/dist/src/renderer/components/+namespaces/metrics-details-component.injectable.d.ts +9 -0
- package/dist/src/renderer/components/+namespaces/metrics.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+namespaces/store.d.ts +5 -6
- package/dist/src/renderer/components/+network-ingresses/metrics-details-component.injectable.d.ts +9 -0
- package/dist/src/renderer/components/+network-ingresses/metrics.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+nodes/metrics-details-component.injectable.d.ts +9 -0
- package/dist/src/renderer/components/+nodes/metrics.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+nodes/store.d.ts +2 -2
- package/dist/src/renderer/components/+storage-classes/store.d.ts +2 -2
- package/dist/src/renderer/components/+storage-volume-claims/metrics-details-component.injectable.d.ts +9 -0
- package/dist/src/renderer/components/+storage-volume-claims/metrics.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+workloads-cronjobs/store.d.ts +2 -2
- package/dist/src/renderer/components/+workloads-daemonsets/metrics-details-component.injectable.d.ts +9 -0
- package/dist/src/renderer/components/+workloads-daemonsets/metrics.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+workloads-daemonsets/store.d.ts +2 -2
- package/dist/src/renderer/components/+workloads-deployments/deployment-replicasets.d.ts +0 -2
- package/dist/src/renderer/components/+workloads-deployments/metrics-details-component.injectable.d.ts +9 -0
- package/dist/src/renderer/components/+workloads-deployments/metrics.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+workloads-deployments/store.d.ts +2 -2
- package/dist/src/renderer/components/+workloads-jobs/metrics-details-component.injectable.d.ts +9 -0
- package/dist/src/renderer/components/+workloads-jobs/metrics.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+workloads-jobs/store.d.ts +2 -2
- package/dist/src/renderer/components/+workloads-overview/workloads/implementations/cron-jobs-workload.injectable.d.ts +4 -1
- package/dist/src/renderer/components/+workloads-overview/workloads/implementations/daemonsets-workload.injectable.d.ts +4 -1
- package/dist/src/renderer/components/+workloads-overview/workloads/implementations/deployments-workload.injectable.d.ts +4 -1
- package/dist/src/renderer/components/+workloads-overview/workloads/implementations/jobs-workload.injectable.d.ts +4 -1
- package/dist/src/renderer/components/+workloads-overview/workloads/implementations/pods-workload.injectable.d.ts +4 -1
- package/dist/src/renderer/components/+workloads-overview/workloads/implementations/replicasets-workload.injectable.d.ts +4 -1
- package/dist/src/renderer/components/+workloads-overview/workloads/implementations/statefulsets-workload.injectable.d.ts +4 -1
- package/dist/src/renderer/components/+workloads-overview/workloads/workload-injection-token.d.ts +2 -1
- package/dist/src/renderer/components/+workloads-overview/workloads/workloads.injectable.d.ts +1 -2
- package/dist/src/renderer/components/+workloads-pods/container-metrics.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+workloads-pods/load-pods-from-all-namespaces.injectable.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/metrics-detail-container.injectable.d.ts +9 -0
- package/dist/src/renderer/components/+workloads-pods/metrics.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+workloads-pods/pod-details-list.d.ts +2 -2
- package/dist/src/renderer/components/+workloads-pods/store.d.ts +2 -2
- package/dist/src/renderer/components/+workloads-replicasets/metrics-details-component.injectable.d.ts +9 -0
- package/dist/src/renderer/components/+workloads-replicasets/metrics.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+workloads-replicasets/store.d.ts +2 -2
- package/dist/src/renderer/components/+workloads-statefulsets/metrics-details-component.injectable.d.ts +9 -0
- package/dist/src/renderer/components/+workloads-statefulsets/metrics.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+workloads-statefulsets/store.d.ts +2 -2
- package/dist/src/renderer/components/dock/terminal/terminal.d.ts +1 -3
- package/dist/src/renderer/components/input/search-input.d.ts +1 -11
- package/dist/src/renderer/components/kube-object-details/current-kube-object-in-details.injectable.d.ts +9 -1
- package/dist/src/renderer/components/kube-object-details/custom-resource-detail-item.injectable.d.ts +7 -0
- package/dist/src/renderer/components/kube-object-details/default-kube-meta-details-item.injectable.d.ts +7 -0
- package/dist/src/renderer/components/locale-date/locale-date.d.ts +1 -3
- package/dist/src/renderer/components/monaco-editor/monaco-themes/clouds-midnight.injectable.d.ts +31 -0
- package/dist/src/renderer/components/monaco-editor/monaco-themes.d.ts +3 -5
- package/dist/src/renderer/components/path-picker/path-picker.d.ts +4 -8
- package/dist/src/renderer/components/resource-metrics/index.d.ts +0 -1
- package/dist/src/renderer/components/resource-metrics/resource-metrics.d.ts +5 -4
- package/dist/src/renderer/components/test-utils/get-application-builder.d.ts +3 -2
- package/dist/src/renderer/extension-loader/entry-point-name.injectable.d.ts +2 -0
- package/dist/src/renderer/frames/cluster-frame/init-cluster-frame/init-cluster-frame.d.ts +5 -3
- package/dist/src/renderer/frames/load-extensions.injectable.d.ts +1 -4
- package/dist/src/renderer/ipc/index.d.ts +0 -5
- package/dist/src/renderer/k8s/api-base-host-header.injectable.d.ts +2 -0
- package/dist/src/renderer/k8s/api-base-server-address.injectable.d.ts +2 -0
- package/dist/src/renderer/kube-watch-api/kube-watch-api.d.ts +3 -3
- package/dist/src/renderer/monaco/add-new-theme.global-override-for-injectable.d.ts +9 -0
- package/dist/src/renderer/monaco/add-new-theme.injectable.d.ts +3 -0
- package/dist/src/renderer/navigation/events.d.ts +0 -2
- package/dist/src/renderer/navigation/setup-logging-for-navigation.injectable.d.ts +5 -0
- package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.d.ts +3 -1
- package/dist/src/renderer/themes/active-type.injectable.d.ts +1 -1
- package/dist/src/renderer/themes/active.injectable.d.ts +1 -1
- package/dist/src/renderer/themes/apply-lens-theme.injectable.d.ts +4 -0
- package/dist/src/{common/fs/delete-file.global-override-for-injectable.d.ts → renderer/themes/apply-theme.global-override-for-injectable.d.ts} +2 -2
- package/dist/src/renderer/themes/declaration.d.ts +6 -0
- package/dist/src/renderer/themes/default-theme.injectable.d.ts +2 -0
- package/dist/src/renderer/themes/lens-dark.injectable.d.ts +143 -0
- package/dist/src/renderer/themes/lens-light.injectable.d.ts +142 -0
- package/dist/src/renderer/themes/lens-theme.d.ts +19 -0
- package/dist/src/renderer/themes/setup-apply-active-theme.injectable.d.ts +48 -0
- package/dist/src/renderer/themes/system-theme.injectable.d.ts +2 -0
- package/dist/src/renderer/themes/terminal-colors.injectable.d.ts +2 -0
- package/dist/src/renderer/themes/themes.injectable.d.ts +2 -0
- package/dist/src/renderer/utils/channel/channel-listeners/start-listening-of-channels.injectable.d.ts +1 -1
- package/dist/src/renderer/utils/create-storage/create-storage.d.ts +5 -4
- package/dist/src/renderer/utils/storageHelper.d.ts +13 -7
- package/dist/src/test-utils/mock-responses.d.ts +8 -0
- package/dist/src/test-utils/override-fs-with-fakes.d.ts +1 -1
- package/package.json +1 -1
- package/__mocks__/monaco-editor.ts +0 -14
- package/dist/src/common/base-store.d.ts +0 -59
- package/dist/src/common/catalog/catalog-category-registry.d.ts +0 -8
- package/dist/src/common/cluster/authorization-namespace-review.injectable.d.ts +0 -19
- package/dist/src/common/cluster/is-allowed-resource.d.ts +0 -1
- package/dist/src/common/cluster/list-api-resources.injectable.d.ts +0 -13
- package/dist/src/common/cluster-store/cluster-store.global-override-for-injectable.d.ts +0 -6
- package/dist/src/common/configure-packages.d.ts +0 -8
- package/dist/src/common/fetch/download-json.injectable.d.ts +0 -7
- package/dist/src/common/fs/delete-file.injectable.d.ts +0 -3
- package/dist/src/common/fs/move.injectable.d.ts +0 -4
- package/dist/src/common/fs/stat/stat.global-override-for-injectable.d.ts +0 -5
- package/dist/src/common/ipc/dialog.d.ts +0 -5
- package/dist/src/common/k8s-api/api-base.d.ts +0 -6
- package/dist/src/common/k8s-api/api-manager/auto-registration.injectable.d.ts +0 -2
- package/dist/src/common/k8s-api/cluster-context.d.ts +0 -11
- package/dist/src/common/request.d.ts +0 -14
- package/dist/src/common/utils/is-allowed-resource.injectable.d.ts +0 -4
- package/dist/src/extensions/extension-installer/install-extensions/install-extensions.injectable.d.ts +0 -2
- package/dist/src/main/helm/exec.d.ts +0 -13
- package/dist/src/main/k8s/api-base.injectable.d.ts +0 -2
- package/dist/src/main/start-main-application/lens-window/current-cluster-frame/setup-listener-for-current-cluster-frame.injectable.d.ts +0 -5
- package/dist/src/main/start-main-application/runnables/setup-hotbar-store.injectable.d.ts +0 -9
- package/dist/src/main/start-main-application/runnables/setup-reactions-in-user-store.injectable.d.ts +0 -5
- package/dist/src/main/theme/broadcast-theme-change/broadcast-theme-change.injectable.d.ts +0 -2
- package/dist/src/main/theme/broadcast-theme-change/start-broadcasting-theme-change.injectable.d.ts +0 -5
- package/dist/src/main/theme/broadcast-theme-change/stop-broadcasting-theme-change.injectable.d.ts +0 -5
- package/dist/src/migrations/cluster-store/5.0.0-beta.10.d.ts +0 -7
- package/dist/src/migrations/cluster-store/5.0.0-beta.13.d.ts +0 -7
- package/dist/src/migrations/cluster-store/index.d.ts +0 -6
- package/dist/src/migrations/cluster-store/snap.d.ts +0 -7
- package/dist/src/migrations/helpers.d.ts +0 -12
- package/dist/src/migrations/hotbar-store/5.0.0-alpha.0.d.ts +0 -7
- package/dist/src/migrations/hotbar-store/5.0.0-alpha.2.d.ts +0 -7
- package/dist/src/migrations/hotbar-store/5.0.0-beta.10.d.ts +0 -7
- package/dist/src/migrations/hotbar-store/5.0.0-beta.5.d.ts +0 -7
- package/dist/src/migrations/hotbar-store/index.d.ts +0 -6
- package/dist/src/migrations/user-store/2.1.0-beta.4.d.ts +0 -7
- package/dist/src/migrations/user-store/5.0.0-alpha.3.d.ts +0 -7
- package/dist/src/migrations/user-store/5.0.3-beta.1.d.ts +0 -7
- package/dist/src/migrations/user-store/index.d.ts +0 -6
- package/dist/src/migrations/weblinks-store/5.4.5-beta.1.d.ts +0 -7
- package/dist/src/migrations/weblinks-store/currentVersion.d.ts +0 -7
- package/dist/src/migrations/weblinks-store/index.d.ts +0 -6
- package/dist/src/renderer/api/catalog/entity/legacy-globals.d.ts +0 -8
- package/dist/src/renderer/before-frame-starts/before-frame-starts-injection-token.d.ts +0 -2
- package/dist/src/renderer/cluster-frame-context/allowed-resources.injectable.d.ts +0 -2
- package/dist/src/renderer/cluster-frame-context/cluster-frame-context.injectable.d.ts +0 -3
- package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.d.ts +0 -10
- package/dist/src/renderer/components/+nodes/legacy-store.d.ts +0 -8
- package/dist/src/renderer/components/resource-metrics/resource-metrics-text.d.ts +0 -17
- package/dist/src/renderer/initializers/catalog-category-registry.d.ts +0 -12
- package/dist/src/renderer/initializers/catalog.d.ts +0 -13
- package/dist/src/renderer/initializers/index.d.ts +0 -7
- package/dist/src/renderer/initializers/ipc.d.ts +0 -6
- package/dist/src/renderer/k8s/api-base.injectable.d.ts +0 -2
- package/dist/src/renderer/themes/lens-dark.d.ts +0 -7
- package/dist/src/renderer/themes/lens-light.d.ts +0 -7
- package/dist/src/renderer/themes/store.d.ts +0 -43
- package/dist/src/renderer/themes/store.injectable.d.ts +0 -3
@@ -1,3 +1,6 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
1
5
|
import type { PathName } from "./app-path-names";
|
2
6
|
export type AppPaths = Record<PathName, string>;
|
3
|
-
export declare const appPathsInjectionToken: import("@ogre-tools/injectable").InjectionToken<AppPaths, void>;
|
@@ -3,5 +3,5 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import type { app as electronApp } from "electron";
|
6
|
-
export type PathName = Parameters<typeof electronApp["getPath"]>[0];
|
6
|
+
export type PathName = Parameters<typeof electronApp["getPath"]>[0] | "currentApp";
|
7
7
|
export declare const pathNames: PathName[];
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const appPathsInjectable: import("@ogre-tools/injectable").Injectable<import("./app-path-injection-token").AppPaths,
|
1
|
+
declare const appPathsInjectable: import("@ogre-tools/injectable").Injectable<import("./app-path-injection-token").AppPaths, unknown, void>;
|
2
2
|
export default appPathsInjectable;
|
@@ -0,0 +1,67 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { Migrations, Options as ConfOptions } from "conf/dist/source/types";
|
6
|
+
import type { IEqualsComparer } from "mobx";
|
7
|
+
import type { GetConfigurationFileModel } from "../get-configuration-file-model/get-configuration-file-model.injectable";
|
8
|
+
import type { Logger } from "../logger";
|
9
|
+
import type { PersistStateToConfig } from "./save-to-file";
|
10
|
+
import type { GetBasenameOfPath } from "../path/get-basename.injectable";
|
11
|
+
import type { EnlistMessageChannelListener } from "../utils/channel/enlist-message-channel-listener-injection-token";
|
12
|
+
export interface BaseStoreParams<T> extends Omit<ConfOptions<T>, "migrations"> {
|
13
|
+
syncOptions?: {
|
14
|
+
fireImmediately?: boolean;
|
15
|
+
equals?: IEqualsComparer<T>;
|
16
|
+
};
|
17
|
+
configName: string;
|
18
|
+
}
|
19
|
+
export interface IpcChannelPrefixes {
|
20
|
+
local: string;
|
21
|
+
remote: string;
|
22
|
+
}
|
23
|
+
export interface BaseStoreDependencies {
|
24
|
+
readonly logger: Logger;
|
25
|
+
readonly storeMigrationVersion: string;
|
26
|
+
readonly directoryForUserData: string;
|
27
|
+
readonly migrations: Migrations<Record<string, unknown>>;
|
28
|
+
readonly ipcChannelPrefixes: IpcChannelPrefixes;
|
29
|
+
readonly shouldDisableSyncInListener: boolean;
|
30
|
+
getConfigurationFileModel: GetConfigurationFileModel;
|
31
|
+
persistStateToConfig: PersistStateToConfig;
|
32
|
+
getBasenameOfPath: GetBasenameOfPath;
|
33
|
+
enlistMessageChannelListener: EnlistMessageChannelListener;
|
34
|
+
}
|
35
|
+
/**
|
36
|
+
* Note: T should only contain base JSON serializable types.
|
37
|
+
*/
|
38
|
+
export declare abstract class BaseStore<T extends object> {
|
39
|
+
protected readonly dependencies: BaseStoreDependencies;
|
40
|
+
protected readonly params: BaseStoreParams<T>;
|
41
|
+
private readonly syncDisposers;
|
42
|
+
readonly displayName: string;
|
43
|
+
protected constructor(dependencies: BaseStoreDependencies, params: BaseStoreParams<T>);
|
44
|
+
/**
|
45
|
+
* This must be called after the last child's constructor is finished (or just before it finishes)
|
46
|
+
*/
|
47
|
+
load(): void;
|
48
|
+
protected cwd(): string;
|
49
|
+
private startSyncing;
|
50
|
+
/**
|
51
|
+
* fromStore is called internally when a child class syncs with the file
|
52
|
+
* system.
|
53
|
+
*
|
54
|
+
* Note: This function **must** be synchronous.
|
55
|
+
*
|
56
|
+
* @param data the parsed information read from the stored JSON file
|
57
|
+
*/
|
58
|
+
protected abstract fromStore(data: T): void;
|
59
|
+
/**
|
60
|
+
* toJSON is called when syncing the store to the filesystem. It should
|
61
|
+
* produce a JSON serializable object representation of the current state.
|
62
|
+
*
|
63
|
+
* It is recommended that a round trip is valid. Namely, calling
|
64
|
+
* `this.fromStore(this.toJSON())` shouldn't change the state.
|
65
|
+
*/
|
66
|
+
abstract toJSON(): T;
|
67
|
+
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { IpcChannelPrefixes } from "./base-store";
|
6
|
+
export declare const baseStoreIpcChannelPrefixesInjectionToken: import("@ogre-tools/injectable").InjectionToken<IpcChannelPrefixes, void>;
|
@@ -2,4 +2,4 @@
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
|
-
export
|
5
|
+
export declare const shouldBaseStoreDisableSyncInIpcListenerInjectionToken: import("@ogre-tools/injectable").InjectionToken<boolean, void>;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { InjectionToken } from "@ogre-tools/injectable";
|
6
|
+
import type Conf from "conf/dist/source";
|
7
|
+
import type { Migrations } from "conf/dist/source/types";
|
8
|
+
export interface MigrationDeclaration {
|
9
|
+
version: string;
|
10
|
+
run(store: Conf<Partial<Record<string, unknown>>>): void;
|
11
|
+
}
|
12
|
+
declare const storeMigrationsInjectable: import("@ogre-tools/injectable").Injectable<Migrations<Record<string, unknown>>, unknown, InjectionToken<MigrationDeclaration, void>>;
|
13
|
+
export default storeMigrationsInjectable;
|
@@ -6,7 +6,7 @@ import type { ClusterContextHandler } from "../../main/context-handler/context-h
|
|
6
6
|
import type { KubeConfig } from "@kubernetes/client-node";
|
7
7
|
import type { Kubectl } from "../../main/kubectl/kubectl";
|
8
8
|
import type { KubeconfigManager } from "../../main/kubeconfig-manager/kubeconfig-manager";
|
9
|
-
import type {
|
9
|
+
import type { KubeApiResourceDescriptor } from "../rbac";
|
10
10
|
import type { VersionDetector } from "../../main/cluster-detectors/version-detector";
|
11
11
|
import type { DetectorRegistry } from "../../main/cluster-detectors/detector-registry";
|
12
12
|
import type { ClusterState, ClusterMetricsResourceType, ClusterId, ClusterMetadata, ClusterModel, ClusterPreferences, ClusterPrometheusPreferences, UpdateClusterModel, ClusterConfigData } from "../cluster-types";
|
@@ -16,8 +16,8 @@ import type { ListNamespaces } from "./list-namespaces.injectable";
|
|
16
16
|
import type { Logger } from "../logger";
|
17
17
|
import type { BroadcastMessage } from "../ipc/broadcast-message.injectable";
|
18
18
|
import type { LoadConfigfromFile } from "../kube-helpers/load-config-from-file.injectable";
|
19
|
-
import type {
|
20
|
-
import type {
|
19
|
+
import type { RequestNamespaceListPermissions, RequestNamespaceListPermissionsFor } from "./request-namespace-list-permissions.injectable";
|
20
|
+
import type { RequestApiResources } from "../../main/cluster/request-api-resources.injectable";
|
21
21
|
export interface ClusterDependencies {
|
22
22
|
readonly directoryForKubeConfigs: string;
|
23
23
|
readonly logger: Logger;
|
@@ -26,8 +26,8 @@ export interface ClusterDependencies {
|
|
26
26
|
createContextHandler: (cluster: Cluster) => ClusterContextHandler;
|
27
27
|
createKubectl: (clusterVersion: string) => Kubectl;
|
28
28
|
createAuthorizationReview: (config: KubeConfig) => CanI;
|
29
|
-
|
30
|
-
|
29
|
+
requestApiResources: RequestApiResources;
|
30
|
+
requestNamespaceListPermissionsFor: RequestNamespaceListPermissionsFor;
|
31
31
|
createListNamespaces: (config: KubeConfig) => ListNamespaces;
|
32
32
|
createVersionDetector: (cluster: Cluster) => VersionDetector;
|
33
33
|
broadcastMessage: BroadcastMessage;
|
@@ -38,7 +38,7 @@ export interface ClusterDependencies {
|
|
38
38
|
*
|
39
39
|
* @beta
|
40
40
|
*/
|
41
|
-
export declare class Cluster implements ClusterModel
|
41
|
+
export declare class Cluster implements ClusterModel {
|
42
42
|
private readonly dependencies;
|
43
43
|
/** Unique id for a cluster */
|
44
44
|
readonly id: ClusterId;
|
@@ -52,7 +52,6 @@ export declare class Cluster implements ClusterModel, ClusterState {
|
|
52
52
|
protected readonly _proxyKubeconfigManager: KubeconfigManager | undefined;
|
53
53
|
protected readonly eventsDisposer: import("../utils").ExtendableDisposer;
|
54
54
|
protected activated: boolean;
|
55
|
-
private readonly resourceAccessStatuses;
|
56
55
|
get contextHandler(): ClusterContextHandler;
|
57
56
|
protected get proxyKubeconfigManager(): KubeconfigManager;
|
58
57
|
get whenReady(): Promise<void> & {
|
@@ -140,23 +139,14 @@ export declare class Cluster implements ClusterModel, ClusterState {
|
|
140
139
|
metadata: ClusterMetadata;
|
141
140
|
/**
|
142
141
|
* List of allowed namespaces verified via K8S::SelfSubjectAccessReview api
|
143
|
-
*
|
144
|
-
* @observable
|
145
|
-
*/
|
146
|
-
allowedNamespaces: string[];
|
147
|
-
/**
|
148
|
-
* List of allowed resources
|
149
|
-
*
|
150
|
-
* @observable
|
151
|
-
* @internal
|
152
142
|
*/
|
153
|
-
|
143
|
+
readonly allowedNamespaces: import("mobx").IObservableArray<string>;
|
154
144
|
/**
|
155
145
|
* List of accessible namespaces provided by user in the Cluster Settings
|
156
|
-
*
|
157
|
-
* @observable
|
158
146
|
*/
|
159
|
-
accessibleNamespaces: string
|
147
|
+
readonly accessibleNamespaces: import("mobx").IObservableArray<string>;
|
148
|
+
private readonly knownResources;
|
149
|
+
private readonly allowedResources;
|
160
150
|
/**
|
161
151
|
* Labels for the catalog entity
|
162
152
|
*/
|
@@ -267,11 +257,6 @@ export declare class Cluster implements ClusterModel, ClusterState {
|
|
267
257
|
* @param state cluster state
|
268
258
|
*/
|
269
259
|
setState(state: ClusterState): void;
|
270
|
-
/**
|
271
|
-
* @internal
|
272
|
-
* @param state cluster state
|
273
|
-
*/
|
274
|
-
pushState(state?: ClusterState): void;
|
275
260
|
getMeta(): {
|
276
261
|
id: string;
|
277
262
|
name: string;
|
@@ -285,9 +270,9 @@ export declare class Cluster implements ClusterModel, ClusterState {
|
|
285
270
|
* @internal
|
286
271
|
*/
|
287
272
|
broadcastConnectUpdate(message: string, isError?: boolean): void;
|
288
|
-
protected
|
289
|
-
protected getAllowedResources(
|
290
|
-
|
273
|
+
protected requestAllowedNamespaces(proxyConfig: KubeConfig): Promise<string[]>;
|
274
|
+
protected getAllowedResources(requestNamespaceListPermissions: RequestNamespaceListPermissions): Promise<string[]>;
|
275
|
+
shouldShowResource(resource: KubeApiResourceDescriptor): boolean;
|
291
276
|
isMetricHidden(resource: ClusterMetricsResourceType): boolean;
|
292
277
|
get nodeShellImage(): string;
|
293
278
|
get imagePullSecret(): string | undefined;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { ClusterId } from "../cluster-types";
|
6
|
+
import type { MessageChannel } from "../utils/channel/message-channel-listener-injection-token";
|
7
|
+
export declare const currentClusterMessageChannel: MessageChannel<ClusterId>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { KubeConfig } from "@kubernetes/client-node";
|
6
|
+
import type { KubeApiResource } from "../rbac";
|
7
|
+
export type CanListResource = (resource: KubeApiResource) => boolean;
|
8
|
+
/**
|
9
|
+
* Requests the permissions for actions on the kube cluster
|
10
|
+
* @param namespace The namespace of the resources
|
11
|
+
*/
|
12
|
+
export type RequestNamespaceListPermissions = (namespace: string) => Promise<CanListResource>;
|
13
|
+
/**
|
14
|
+
* @param proxyConfig This config's `currentContext` field must be set, and will be used as the target cluster
|
15
|
+
*/
|
16
|
+
export type RequestNamespaceListPermissionsFor = (proxyConfig: KubeConfig) => RequestNamespaceListPermissions;
|
17
|
+
declare const requestNamespaceListPermissionsForInjectable: import("@ogre-tools/injectable").Injectable<RequestNamespaceListPermissionsFor, unknown, void>;
|
18
|
+
export default requestNamespaceListPermissionsForInjectable;
|
@@ -3,4 +3,5 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import type { IComputedValue } from "mobx";
|
6
|
-
|
6
|
+
import type { KubeApiResourceDescriptor } from "../rbac";
|
7
|
+
export declare const shouldShowResourceInjectionToken: import("@ogre-tools/injectable").InjectionToken<IComputedValue<boolean>, KubeApiResourceDescriptor>;
|
@@ -2,7 +2,8 @@
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
|
-
import {
|
5
|
+
import type { BaseStoreDependencies } from "../base-store/base-store";
|
6
|
+
import { BaseStore } from "../base-store/base-store";
|
6
7
|
import { Cluster } from "../cluster/cluster";
|
7
8
|
import type { ClusterModel, ClusterId } from "../cluster-types";
|
8
9
|
import type { CreateCluster } from "../cluster/create-cluster-injection-token";
|
@@ -11,23 +12,15 @@ import type { EmitAppEvent } from "../app-event-bus/emit-event.injectable";
|
|
11
12
|
export interface ClusterStoreModel {
|
12
13
|
clusters?: ClusterModel[];
|
13
14
|
}
|
14
|
-
interface Dependencies {
|
15
|
+
interface Dependencies extends BaseStoreDependencies {
|
15
16
|
createCluster: CreateCluster;
|
16
17
|
readClusterConfigSync: ReadClusterConfigSync;
|
17
18
|
emitAppEvent: EmitAppEvent;
|
18
19
|
}
|
19
20
|
export declare class ClusterStore extends BaseStore<ClusterStoreModel> {
|
20
|
-
|
21
|
-
readonly
|
22
|
-
clusters: import("mobx").ObservableMap<string, Cluster>;
|
23
|
-
protected disposer: import("../utils").ExtendableDisposer;
|
21
|
+
protected readonly dependencies: Dependencies;
|
22
|
+
readonly clusters: import("mobx").ObservableMap<string, Cluster>;
|
24
23
|
constructor(dependencies: Dependencies);
|
25
|
-
loadInitialOnRenderer(): Promise<void>;
|
26
|
-
provideInitialFromMain(): void;
|
27
|
-
protected pushStateToViewsAutomatically(): void;
|
28
|
-
registerIpcListener(): void;
|
29
|
-
unregisterIpcListener(): void;
|
30
|
-
pushState(): void;
|
31
24
|
get clustersList(): Cluster[];
|
32
25
|
get connectedClustersList(): Cluster[];
|
33
26
|
hasClusters(): boolean;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { MigrationDeclaration } from "../base-store/migrations.injectable";
|
6
|
+
export declare const clusterStoreMigrationInjectionToken: import("@ogre-tools/injectable").InjectionToken<MigrationDeclaration, void>;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { AsyncResult } from "../../utils/async-result";
|
6
|
+
import type { Fetch } from "../fetch.injectable";
|
7
|
+
export interface DownloadJsonOptions {
|
8
|
+
signal?: AbortSignal | null | undefined;
|
9
|
+
}
|
10
|
+
export type DownloadJson = (url: string, opts?: DownloadJsonOptions) => Promise<AsyncResult<unknown, string>>;
|
11
|
+
export declare const downloadJsonWith: (fetch: Fetch) => DownloadJson;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type * as FetchModule from "node-fetch";
|
2
|
+
/**
|
3
|
+
* NOTE: while using this module can cause side effects, this specific injectable is not marked as
|
4
|
+
* such since sometimes the request can be wholely within the perview of unit test
|
5
|
+
*/
|
6
|
+
declare const nodeFetchModuleInjectable: import("@ogre-tools/injectable").Injectable<typeof FetchModule, unknown, void>;
|
7
|
+
export default nodeFetchModuleInjectable;
|
@@ -1,6 +1,4 @@
|
|
1
|
-
import type
|
2
|
-
type Response = FetchModule.Response;
|
3
|
-
type RequestInit = FetchModule.RequestInit;
|
1
|
+
import type { RequestInit, Response } from "node-fetch";
|
4
2
|
export type Fetch = (url: string, init?: RequestInit) => Promise<Response>;
|
5
3
|
declare const fetchInjectable: import("@ogre-tools/injectable").Injectable<Fetch, unknown, void>;
|
6
4
|
export default fetchInjectable;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
declare const _default: {
|
6
|
+
injectable: import("@ogre-tools/injectable").Injectable<Function, any, any>;
|
7
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<Function, any>;
|
8
|
+
};
|
9
|
+
export default _default;
|
@@ -1,3 +1,27 @@
|
|
1
|
+
import type { ReadOptions } from "fs-extra";
|
1
2
|
import fse from "fs-extra";
|
2
|
-
|
3
|
+
/**
|
4
|
+
* NOTE: Add corrisponding a corrisponding override of this injecable in `src/test-utils/override-fs-with-fakes.ts`
|
5
|
+
*/
|
6
|
+
declare const fsInjectable: import("@ogre-tools/injectable").Injectable<{
|
7
|
+
readFile: typeof fse.promises.readFile;
|
8
|
+
readJson: (file: string, options?: ReadOptions | BufferEncoding) => Promise<any>;
|
9
|
+
writeFile: typeof fse.promises.writeFile;
|
10
|
+
writeJson: typeof fse.writeJson;
|
11
|
+
pathExists: typeof fse.pathExists;
|
12
|
+
readdir: typeof fse.promises.readdir;
|
13
|
+
readFileSync: typeof fse.readFileSync;
|
14
|
+
readJsonSync: typeof fse.readJsonSync;
|
15
|
+
writeFileSync: typeof fse.writeFileSync;
|
16
|
+
writeJsonSync: typeof fse.writeJsonSync;
|
17
|
+
pathExistsSync: typeof fse.pathExistsSync;
|
18
|
+
lstat: typeof fse.promises.lstat;
|
19
|
+
rm: typeof fse.promises.rm;
|
20
|
+
access: typeof fse.promises.access;
|
21
|
+
copy: (src: string, dest: string, options?: fse.CopyOptions) => Promise<void>;
|
22
|
+
ensureDir: (path: string, options?: number | fse.EnsureOptions) => Promise<void>;
|
23
|
+
ensureDirSync: typeof fse.ensureDirSync;
|
24
|
+
createReadStream: typeof fse.createReadStream;
|
25
|
+
stat: typeof fse.promises.stat;
|
26
|
+
}, unknown, void>;
|
3
27
|
export default fsInjectable;
|
@@ -7,15 +7,15 @@ export interface ReadDirectory {
|
|
7
7
|
withFileTypes?: false | undefined;
|
8
8
|
}): Promise<Buffer[]>;
|
9
9
|
(path: string, options?: {
|
10
|
-
encoding: BufferEncoding
|
10
|
+
encoding: BufferEncoding;
|
11
11
|
withFileTypes?: false | undefined;
|
12
|
-
} | BufferEncoding
|
12
|
+
} | BufferEncoding): Promise<string[]>;
|
13
13
|
(path: string, options?: {
|
14
|
-
encoding?: BufferEncoding
|
14
|
+
encoding?: BufferEncoding;
|
15
15
|
withFileTypes?: false | undefined;
|
16
16
|
}): Promise<string[] | Buffer[]>;
|
17
17
|
(path: string, options: {
|
18
|
-
encoding?: BufferEncoding
|
18
|
+
encoding?: BufferEncoding;
|
19
19
|
withFileTypes: true;
|
20
20
|
}): Promise<Dirent[]>;
|
21
21
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
declare const _default: {
|
6
|
-
injectable: import("@ogre-tools/injectable").Injectable<import("./
|
7
|
-
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./
|
6
|
+
injectable: import("@ogre-tools/injectable").Injectable<import("./remove.injectable").RemovePath, unknown, void>;
|
7
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./remove.injectable").RemovePath, void>;
|
8
8
|
};
|
9
9
|
export default _default;
|
File without changes
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
|
-
export type WriteJson = (filePath: string, contents: JsonValue) => Promise<void>;
|
1
|
+
export type WriteJson = (filePath: string, contents: unknown) => Promise<void>;
|
3
2
|
declare const writeJsonFileInjectable: import("@ogre-tools/injectable").Injectable<WriteJson, unknown, void>;
|
4
3
|
export default writeJsonFileInjectable;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
declare const _default: {
|
6
|
-
injectable: import("@ogre-tools/injectable").Injectable<import("./
|
7
|
-
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./
|
6
|
+
injectable: import("@ogre-tools/injectable").Injectable<import("./get-configuration-file-model.injectable").GetConfigurationFileModel, unknown, void>;
|
7
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./get-configuration-file-model.injectable").GetConfigurationFileModel, void>;
|
8
8
|
};
|
9
9
|
export default _default;
|
package/dist/src/common/get-configuration-file-model/get-configuration-file-model.injectable.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import Config from "conf";
|
2
|
-
import type {
|
3
|
-
|
2
|
+
import type { Options as ConfOptions } from "conf/dist/source/types";
|
3
|
+
export type GetConfigurationFileModel = <T extends object>(content: ConfOptions<T>) => Config<T>;
|
4
|
+
declare const getConfigurationFileModelInjectable: import("@ogre-tools/injectable").Injectable<GetConfigurationFileModel, unknown, void>;
|
4
5
|
export default getConfigurationFileModelInjectable;
|
@@ -2,14 +2,14 @@
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
|
-
export
|
5
|
+
export interface HelmRepo {
|
6
6
|
name: string;
|
7
7
|
url: string;
|
8
|
-
cacheFilePath
|
8
|
+
cacheFilePath: string;
|
9
9
|
caFile?: string;
|
10
10
|
certFile?: string;
|
11
11
|
insecureSkipTlsVerify?: boolean;
|
12
12
|
keyFile?: string;
|
13
13
|
username?: string;
|
14
14
|
password?: string;
|
15
|
-
}
|
15
|
+
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { MigrationDeclaration } from "../base-store/migrations.injectable";
|
6
|
+
export declare const hotbarStoreMigrationInjectionToken: import("@ogre-tools/injectable").InjectionToken<MigrationDeclaration, void>;
|
@@ -2,7 +2,8 @@
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
|
-
import {
|
5
|
+
import type { BaseStoreDependencies } from "../base-store/base-store";
|
6
|
+
import { BaseStore } from "../base-store/base-store";
|
6
7
|
import type { CatalogEntity } from "../catalog";
|
7
8
|
import type { Hotbar, CreateHotbarData, CreateHotbarOptions } from "./types";
|
8
9
|
import type { GeneralEntity } from "../catalog-entities";
|
@@ -11,13 +12,12 @@ export interface HotbarStoreModel {
|
|
11
12
|
hotbars: Hotbar[];
|
12
13
|
activeHotbarId: string;
|
13
14
|
}
|
14
|
-
interface Dependencies {
|
15
|
+
interface Dependencies extends BaseStoreDependencies {
|
15
16
|
readonly catalogCatalogEntity: GeneralEntity;
|
16
17
|
readonly logger: Logger;
|
17
18
|
}
|
18
19
|
export declare class HotbarStore extends BaseStore<HotbarStoreModel> {
|
19
|
-
|
20
|
-
readonly displayName = "HotbarStore";
|
20
|
+
protected readonly dependencies: Dependencies;
|
21
21
|
hotbars: Hotbar[];
|
22
22
|
private _activeHotbarId;
|
23
23
|
constructor(dependencies: Dependencies);
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
export declare const apiBaseServerAddressInjectionToken: import("@ogre-tools/injectable").InjectionToken<string, void>;
|
6
|
+
export declare const apiBaseHostHeaderInjectionToken: import("@ogre-tools/injectable").InjectionToken<string, void>;
|
@@ -3,8 +3,9 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import type { KubeApi } from "../kube-api";
|
6
|
+
import type { KubeObjectStoreDependencies } from "../kube-object.store";
|
6
7
|
import { KubeObjectStore } from "../kube-object.store";
|
7
8
|
import type { KubeObject } from "../kube-object";
|
8
9
|
export declare class CustomResourceStore<K extends KubeObject> extends KubeObjectStore<K, KubeApi<K>> {
|
9
|
-
constructor(api: KubeApi<K>);
|
10
|
+
constructor(deps: KubeObjectStoreDependencies, api: KubeApi<K>);
|
10
11
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
-
|
1
|
+
import type { AsyncResult } from "../../../utils/async-result";
|
2
|
+
export type RequestHelmChartReadme = (repo: string, name: string, version?: string) => Promise<AsyncResult<string>>;
|
2
3
|
declare const requestHelmChartReadmeInjectable: import("@ogre-tools/injectable").Injectable<RequestHelmChartReadme, unknown, void>;
|
3
4
|
export default requestHelmChartReadmeInjectable;
|
@@ -1,3 +1,4 @@
|
|
1
|
-
|
1
|
+
import type { AsyncResult } from "../../../utils/async-result";
|
2
|
+
export type RequestHelmChartValues = (repo: string, name: string, version: string) => Promise<AsyncResult<string>>;
|
2
3
|
declare const requestHelmChartValuesInjectable: import("@ogre-tools/injectable").Injectable<RequestHelmChartValues, unknown, void>;
|
3
4
|
export default requestHelmChartValuesInjectable;
|
package/dist/src/common/k8s-api/endpoints/resource-applier.api/request-patch.injectable.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { Patch } from "rfc6902";
|
2
|
+
import type { AsyncResult } from "../../../utils/async-result";
|
2
3
|
import type { KubeJsonApiData } from "../../kube-json-api";
|
3
|
-
export type RequestKubeObjectPatch = (name: string, kind: string, ns: string | undefined, patch: Patch) => Promise<KubeJsonApiData
|
4
|
+
export type RequestKubeObjectPatch = (name: string, kind: string, ns: string | undefined, patch: Patch) => Promise<AsyncResult<KubeJsonApiData, string>>;
|
4
5
|
declare const requestKubeObjectPatchInjectable: import("@ogre-tools/injectable").Injectable<RequestKubeObjectPatch, unknown, void>;
|
5
6
|
export default requestKubeObjectPatchInjectable;
|
package/dist/src/common/k8s-api/endpoints/resource-applier.api/request-update.injectable.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
+
import type { AsyncResult } from "../../../utils/async-result";
|
1
2
|
import type { KubeJsonApiData } from "../../kube-json-api";
|
2
|
-
export type RequestKubeObjectCreation = (resourceDescriptor: string) => Promise<KubeJsonApiData
|
3
|
+
export type RequestKubeObjectCreation = (resourceDescriptor: string) => Promise<AsyncResult<KubeJsonApiData, string>>;
|
3
4
|
declare const requestKubeObjectCreationInjectable: import("@ogre-tools/injectable").Injectable<RequestKubeObjectCreation, unknown, void>;
|
4
5
|
export default requestKubeObjectCreationInjectable;
|