/
events.go
26 lines (21 loc) · 1012 Bytes
/
events.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package v1alpha1
type Events struct {
WorkspaceEvents `json:",inline"`
}
type WorkspaceEvents struct {
// Names of commands that should be executed before the workspace start.
// Kubernetes-wise, these commands would typically be executed in init containers of the workspace POD.
// +optional
PreStart []string `json:"preStart,omitempty"`
// Names of commands that should be executed after the workspace is completely started.
// In the case of Che-Theia, these commands should be executed after all plugins and extensions have started, including project cloning.
// This means that those commands are not triggered until the user opens the IDE in his browser.
// +optional
PostStart []string `json:"postStart,omitempty"`
// +optional
// Names of commands that should be executed before stopping the workspace.
PreStop []string `json:"preStop,omitempty"`
// +optional
// Names of commands that should be executed after stopping the workspace.
PostStop []string `json:"postStop,omitempty"`
}