Watch
1
0
Fork
You've already forked RedFlag
0
RedFlag/agent/internal/system/services.go
Fimeg f487de554a desktop: become the machine console
Qt/QML now carries 11 local views while the Agent owns observation and intent. Tauri, WebKit, and the second React desktop build leave together. Linux ships first; Windows waits for a native Qt runner.
2026-09-01 08:29:58 -04:00

22 lines
644 B
Go

package system
import "time"
type ServiceSnapshot struct {
Manager string `json:"manager"`
Services []Service `json:"services"`
Count int `json:"count"`
Running int `json:"running"`
Failed int `json:"failed"`
CollectedAt time.Time `json:"collected_at"`
}
type Service struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
LoadState string `json:"load_state,omitempty"`
ActiveState string `json:"active_state"`
SubState string `json:"sub_state,omitempty"`
}
func GetServicesSnapshot() (*ServiceSnapshot, error) { return getServicesSnapshot() }