package logs rpc endpoint (#427)

* wip: package logs

* fixes from code review

* fix reverse flag behavior

* only embassyd uses -u, packages use CONTAINER_NAME

* make id param an enum, clean up code

* changes from rebase

* change package IDs to be of type PackageId

Co-authored-by: Aiden McClelland <me@drbonez.dev>
This commit is contained in:
Chris Guida
2021-09-03 13:04:41 -05:00
committed by Aiden McClelland
parent 4be36f5968
commit ee381ebce7
5 changed files with 298 additions and 55 deletions

View File

@@ -52,6 +52,7 @@ pub enum ErrorKind {
ParseTimestamp = 44,
ParseSysInfo = 45,
WifiError = 46,
Journald = 47,
}
impl ErrorKind {
pub fn as_str(&self) -> &'static str {
@@ -103,6 +104,7 @@ impl ErrorKind {
ParseTimestamp => "Timestamp Parsing Error",
ParseSysInfo => "System Info Parsing Error",
WifiError => "Wifi Internal Error",
Journald => "Journald Error",
}
}
}