localVm.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. export type LocalVmMode = 'shared' | 'per-bot'
  2. export type LocalVmAction = 'create' | 'start' | 'stop' | 'recreate' | 'remove'
  3. export interface LocalVmStatus {
  4. fixedCapacity?:boolean
  5. desktops?:Array<{id:string;name:string;online:boolean;ready:boolean;available?:boolean}>
  6. executionHost?: 'server' | 'runner'
  7. runnerName?: string
  8. setupRequired?: 'runner' | 'worker'
  9. configured: boolean
  10. runtime?: 'docker' | 'podman'
  11. daemonUp: boolean
  12. image: boolean
  13. imageId?: string
  14. mode: LocalVmMode
  15. maxInstances: number
  16. busy: boolean
  17. problem?: string
  18. job?: { id: string; state: 'running' | 'complete' | 'failed'; message: string }
  19. instances?: Array<{id:string;status:string;name?:string;orphaned?:boolean}>
  20. }
  21. export interface LocalVmInstance {
  22. desktopId?:string
  23. fixedCapacity?:boolean
  24. desktops?:Array<{id:string;name:string;online:boolean;ready:boolean;available?:boolean}>
  25. container: 'missing' | 'stopped' | 'running'
  26. ready: boolean
  27. inUse: boolean
  28. mode: LocalVmMode
  29. maxInstances: number
  30. image: boolean
  31. problem?: string
  32. }