Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/crowdsecurity/crowdsec
/ Write
Method
Write
cmd/notification-file/main.go:33–39 ·
view source on GitHub ↗
(p []byte)
Source
from the content-addressed store, hash-verified
31
}
32
33
func
(w *FileWriteCtx) Write(p []byte) (n int, err error) {
34
if
err := w.Ctx.Err(); err != nil {
35
return
0, err
36
}
37
38
return
w.Writer.Write(p)
39
}
40
41
type
PluginConfig
struct
{
42
Name string `yaml:
"name"
`
Callers
15
main
Function · 0.80
GenSubObject
Function · 0.80
RunServer
Method · 0.80
TestStreamingAcquisitionGzipData
Function · 0.80
ServiceLogs
Method · 0.80
ContainerLogs
Method · 0.80
appsecHandler
Method · 0.80
testAppSecEngine
Function · 0.80
TestNewRequestInvalid
Function · 0.80
TestApiAuth
Function · 0.80
PrepareRequest
Method · 0.80
TestNewClientOk
Function · 0.80
Calls
1
Err
Method · 0.80
Tested by
15
GenSubObject
Function · 0.64
TestStreamingAcquisitionGzipData
Function · 0.64
ServiceLogs
Method · 0.64
ContainerLogs
Method · 0.64
testAppSecEngine
Function · 0.64
TestNewRequestInvalid
Function · 0.64
TestApiAuth
Function · 0.64
TestNewClientOk
Function · 0.64
TestNewClientOk_UnixSocket
Function · 0.64
TestNewClientKo
Function · 0.64
TestNewDefaultClient
Function · 0.64
TestNewDefaultClient_UnixSocket
Function · 0.64