mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Move activating cluster into injectable IPC Signed-off-by: Sebastian Malton <sebastian@malton.name> * Move deactivating a cluster into injectable IPC Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix type error Signed-off-by: Sebastian Malton <sebastian@malton.name> --------- Signed-off-by: Sebastian Malton <sebastian@malton.name>
19 lines
500 B
TypeScript
19 lines
500 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import { getInjectable } from "@ogre-tools/injectable";
|
|
import { observable } from "mobx";
|
|
|
|
export interface ClusterFrameInfo {
|
|
frameId: number;
|
|
processId: number;
|
|
}
|
|
|
|
const clusterFramesInjectable = getInjectable({
|
|
id: "cluster-frames",
|
|
instantiate: () => observable.map<string, ClusterFrameInfo>(),
|
|
});
|
|
|
|
export default clusterFramesInjectable;
|