MCPcopy
hub / github.com/cilium/cilium / NewWriter

Method NewWriter

hubble/pkg/printer/terminal.go:27–29  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

25}
26
27func (teb *terminalEscaperBuilder) NewWriter(w io.Writer) *terminalEscaperWriter {
28 return &terminalEscaperWriter{w: w, replacer: teb.replacer}
29}
30
31// terminalEscaperWriter replaces ANSI escape sequences and other terminal special
32// characters to avoid terminal escape character attacks. It stops on the first error

Callers 15

rootCmdRunFunction · 0.80
fromGotestFunction · 0.80
mainFunction · 0.80
writeTableFunction · 0.80
NewFunction · 0.80
createStdoutWriterMethod · 0.80
createStderrWriterMethod · 0.80
createTabWriterMethod · 0.80
nodeTableOutputFunction · 0.80
namespaceTableOutputFunction · 0.80
newFlowsCmdHelperFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestDissectFunction · 0.64
TestBPFFunction · 0.64