MCPcopy Create free account
hub / github.com/astercloud/aster / containsString

Function containsString

pkg/security/audit.go:908–915  ·  view source on GitHub ↗
(slice []string, item string)

Source from the content-addressed store, hash-verified

906}
907
908func containsString(slice []string, item string) bool {
909 for _, s := range slice {
910 if s == item {
911 return true
912 }
913 }
914 return false
915}
916
917func containsSearchText(event *AuditEvent, searchText string) bool {
918 searchLower := strings.ToLower(searchText)

Callers 2

matchesQueryMethod · 0.70
GetStatisticsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected