mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-05 16:44:22 +00:00
Implement shutting down status
This commit is contained in:
@@ -14,20 +14,23 @@ const (
|
|||||||
Running
|
Running
|
||||||
Failed
|
Failed
|
||||||
Restarting
|
Restarting
|
||||||
|
ShuttingDown
|
||||||
)
|
)
|
||||||
|
|
||||||
var nameToStatus = map[string]Status{
|
var nameToStatus = map[string]Status{
|
||||||
"stopped": Stopped,
|
"stopped": Stopped,
|
||||||
"running": Running,
|
"running": Running,
|
||||||
"failed": Failed,
|
"failed": Failed,
|
||||||
"restarting": Restarting,
|
"restarting": Restarting,
|
||||||
|
"shutting_down": ShuttingDown,
|
||||||
}
|
}
|
||||||
|
|
||||||
var statusToName = map[Status]string{
|
var statusToName = map[Status]string{
|
||||||
Stopped: "stopped",
|
Stopped: "stopped",
|
||||||
Running: "running",
|
Running: "running",
|
||||||
Failed: "failed",
|
Failed: "failed",
|
||||||
Restarting: "restarting",
|
Restarting: "restarting",
|
||||||
|
ShuttingDown: "shutting_down",
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status enum JSON marshaling methods
|
// Status enum JSON marshaling methods
|
||||||
|
|||||||
Reference in New Issue
Block a user