mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
* add error status * update types * ṗ̶̰̙̓͒̈́ͅü̵̢̙̫̣ŗ̷̪̺̺͛g̴̲͉͎̬̒̇e̵̪̎̅͌ ̶̡̜̘͐͛t̶͎͍̣̿̍̐h̴͕̩͗̈́̎̑e̵͚͒̂͝ ̸̛͙̦͈͝v̶̱͙̬̽̔ọ̶̧̡̒̓i̸̬̲͍̋̈́d̴͉̀ * fix some extra voids * add `package.rebuild` * introduce error status and pkg rebuild and fix mocks * minor fixes * fix build --------- Co-authored-by: Matt Hill <mattnine@protonmail.com>
27 lines
780 B
TypeScript
27 lines
780 B
TypeScript
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
import type { HealthCheckId } from "./HealthCheckId"
|
|
import type { NamedHealthCheckResult } from "./NamedHealthCheckResult"
|
|
import type { StartStop } from "./StartStop"
|
|
|
|
export type MainStatus =
|
|
| {
|
|
main: "error"
|
|
onRebuild: StartStop
|
|
message: string
|
|
debug: string | null
|
|
}
|
|
| { main: "stopped" }
|
|
| { main: "restarting" }
|
|
| { main: "restoring" }
|
|
| { main: "stopping" }
|
|
| {
|
|
main: "starting"
|
|
health: { [key: HealthCheckId]: NamedHealthCheckResult }
|
|
}
|
|
| {
|
|
main: "running"
|
|
started: string
|
|
health: { [key: HealthCheckId]: NamedHealthCheckResult }
|
|
}
|
|
| { main: "backingUp"; onComplete: StartStop }
|