MCPcopy Create free account
hub / github.com/containerd/nerdctl / NewSyncEncoder

Function NewSyncEncoder

pkg/logging/jsonfile/jsonfile.go:55–57  ·  view source on GitHub ↗

NewSyncEncoder returns a SyncEncoder that writes to w.

(w io.Writer)

Source from the content-addressed store, hash-verified

53
54// NewSyncEncoder returns a SyncEncoder that writes to w.
55func NewSyncEncoder(w io.Writer) *SyncEncoder {
56 return &SyncEncoder{enc: json.NewEncoder(w)}
57}
58
59// Encode writes a single log entry for the given stream.
60func (s *SyncEncoder) Encode(stream, line string) error {

Callers 1

PreProcessMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…