mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 00:54:23 +00:00
Add Restarting state
This commit is contained in:
@@ -13,18 +13,21 @@ const (
|
||||
Stopped Status = iota
|
||||
Running
|
||||
Failed
|
||||
Restarting
|
||||
)
|
||||
|
||||
var nameToStatus = map[string]Status{
|
||||
"stopped": Stopped,
|
||||
"running": Running,
|
||||
"failed": Failed,
|
||||
"stopped": Stopped,
|
||||
"running": Running,
|
||||
"failed": Failed,
|
||||
"restarting": Restarting,
|
||||
}
|
||||
|
||||
var statusToName = map[Status]string{
|
||||
Stopped: "stopped",
|
||||
Running: "running",
|
||||
Failed: "failed",
|
||||
Stopped: "stopped",
|
||||
Running: "running",
|
||||
Failed: "failed",
|
||||
Restarting: "restarting",
|
||||
}
|
||||
|
||||
// Status enum JSON marshaling methods
|
||||
|
||||
Reference in New Issue
Block a user