Globals / "src/common/cluster-ipc"
Module: "src/common/cluster-ipc"#
Index#
Object literals#
Object literals#
clusterIpc#
▪ Const clusterIpc: object
Defined in src/common/cluster-ipc.ts:7
Properties:
| Name | Type | Value |
|---|---|---|
activate |
object | createIpcChannel({ channel: "cluster:activate", handle: (clusterId: ClusterId, force = false) => { const cluster = clusterStore.getById(clusterId); if (cluster) { return cluster.activate(force); } }, }) |
disconnect |
object | createIpcChannel({ channel: "cluster:disconnect", handle: (clusterId: ClusterId) => { appEventBus.emit({name: "cluster", action: "stop"}); return clusterStore.getById(clusterId)?.disconnect(); }, }) |
kubectlApplyAll |
object | createIpcChannel({ channel: "cluster:kubectl-apply-all", handle: (clusterId: ClusterId, resources: string[]) => { appEventBus.emit({name: "cluster", action: "kubectl-apply-all"}) const cluster = clusterStore.getById(clusterId); if (cluster) { const applier = new ResourceApplier(cluster) applier.kubectlApplyAll(resources) } else { throw `${clusterId} is not a valid cluster id`; } } }) |
refresh |
object | createIpcChannel({ channel: "cluster:refresh", handle: (clusterId: ClusterId) => { const cluster = clusterStore.getById(clusterId); if (cluster) return cluster.refresh({ refreshMetadata: true }) }, }) |
setFrameId |
object | createIpcChannel({ channel: "cluster:set-frame-id", handle: (clusterId: ClusterId, frameId?: number) => { const cluster = clusterStore.getById(clusterId); if (cluster) { if (frameId) cluster.frameId = frameId; // save cluster's webFrame.routingId to be able to send push-updates extensionLoader.broadcastExtensions(frameId) return cluster.pushState(); } }, }) |
Last update: November 10, 2020