MCPcopy Create free account
hub / github.com/quay/clair / GetEncoder

Function GetEncoder

internal/codec/codec.go:42–46  ·  view source on GitHub ↗

GetEncoder returns an encoder configured to write to w.

(w io.Writer)

Source from the content-addressed store, hash-verified

40
41// GetEncoder returns an encoder configured to write to w.
42func GetEncoder(w io.Writer) *Encoder {
43 e := encPool.Get().(*Encoder)
44 e.Reset(w)
45 return e
46}
47
48// PutEncoder returns an encoder to the pool.
49func PutEncoder(e *Encoder) {

Callers 13

getMethod · 0.92
indexReportMethod · 0.92
indexReportOneMethod · 0.92
indexStateMethod · 0.92
affectedManifestsMethod · 0.92
vulnerabilityReportMethod · 0.92
updateDiffHandlerMethod · 0.92
manifestActionFunction · 0.92
FormatterMethod · 0.92
JSONReaderFunction · 0.85
ExampleFunction · 0.85

Calls 1

ResetMethod · 0.80

Tested by 2

ExampleFunction · 0.68
TestTimeNotNullFunction · 0.68