MCPcopy
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
33func (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
41type PluginConfig struct {
42 Name string `yaml:"name"`

Callers 15

mainFunction · 0.80
GenSubObjectFunction · 0.80
RunServerMethod · 0.80
ServiceLogsMethod · 0.80
ContainerLogsMethod · 0.80
appsecHandlerMethod · 0.80
testAppSecEngineFunction · 0.80
TestNewRequestInvalidFunction · 0.80
TestApiAuthFunction · 0.80
PrepareRequestMethod · 0.80
TestNewClientOkFunction · 0.80

Calls 1

ErrMethod · 0.80

Tested by 15

GenSubObjectFunction · 0.64
ServiceLogsMethod · 0.64
ContainerLogsMethod · 0.64
testAppSecEngineFunction · 0.64
TestNewRequestInvalidFunction · 0.64
TestApiAuthFunction · 0.64
TestNewClientOkFunction · 0.64
TestNewClientKoFunction · 0.64
TestNewDefaultClientFunction · 0.64