MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / isSSHLogWithinTimeRange

Function isSSHLogWithinTimeRange

agent/app/service/ssh.go:1269–1274  ·  view source on GitHub ↗
(itemTime, startTime, endTime time.Time)

Source from the content-addressed store, hash-verified

1267}
1268
1269func isSSHLogWithinTimeRange(itemTime, startTime, endTime time.Time) bool {
1270 if startTime.IsZero() || endTime.IsZero() {
1271 return true
1272 }
1273 return itemTime.After(startTime) && itemTime.Before(endTime)
1274}
1275
1276func collectSSHLogItems(lines []string, filter, status string) []sshParsedLog {
1277 var items []sshParsedLog

Callers 1

loadSSHDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected