Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/gitpod-protocol/src/redis.ts
2498 views
1
/**
2
* Copyright (c) 2023 Gitpod GmbH. All rights reserved.
3
* Licensed under the GNU Affero General Public License (AGPL).
4
* See License.AGPL.txt in the project root for license information.
5
*/
6
7
import { HeadlessWorkspaceEventType } from "./headless-workspace-log";
8
import { PrebuiltWorkspaceState } from "./protocol";
9
10
export const WorkspaceInstanceUpdatesChannel = "chan:workspace-instances";
11
export const PrebuildUpdatesChannel = "chan:prebuilds";
12
export const HeadlessUpdatesChannel = "chan:headless";
13
14
export type RedisWorkspaceInstanceUpdate = {
15
ownerID: string;
16
instanceID: string;
17
workspaceID: string;
18
};
19
20
export type RedisPrebuildUpdate = {
21
status: PrebuiltWorkspaceState;
22
prebuildID: string;
23
workspaceID: string;
24
projectID: string;
25
organizationID?: string;
26
};
27
28
export type RedisHeadlessUpdate = {
29
workspaceID: string;
30
type: HeadlessWorkspaceEventType;
31
};
32
33