mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
* [server] Publish events during workspace starter * retest * fix * fix * retest * retest * retest * retest * retest * retest * retest * [server] Broadcast prebuild updates from redis * [server] Broadcast headless updates to subscribers * Fix * Fix * Fix * fix * fix * retest
31 lines
879 B
TypeScript
31 lines
879 B
TypeScript
/**
|
|
* Copyright (c) 2023 Gitpod GmbH. All rights reserved.
|
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
* See License.AGPL.txt in the project root for license information.
|
|
*/
|
|
|
|
import { HeadlessWorkspaceEventType } from "./headless-workspace-log";
|
|
import { PrebuiltWorkspaceState } from "./protocol";
|
|
|
|
export const WorkspaceInstanceUpdatesChannel = "chan:workspace-instances";
|
|
export const PrebuildUpdatesChannel = "chan:prebuilds";
|
|
export const HeadlessUpdatesChannel = "chan:headless";
|
|
|
|
export type RedisWorkspaceInstanceUpdate = {
|
|
ownerID: string;
|
|
instanceID: string;
|
|
workspaceID: string;
|
|
};
|
|
|
|
export type RedisPrebuildUpdate = {
|
|
status: PrebuiltWorkspaceState;
|
|
prebuildID: string;
|
|
workspaceID: string;
|
|
projectID: string;
|
|
};
|
|
|
|
export type RedisHeadlessUpdate = {
|
|
workspaceID: string;
|
|
type: HeadlessWorkspaceEventType;
|
|
};
|