MCPcopy Index your code
hub / github.com/containerd/nerdctl / SyncMockDriver

Struct SyncMockDriver

pkg/logging/logging_test.go:64–68  ·  view source on GitHub ↗

SyncMockDriver implements SyncDriver, recording the entries written to it.

Source from the content-addressed store, hash-verified

62
63// SyncMockDriver implements SyncDriver, recording the entries written to it.
64type SyncMockDriver struct {
65 mu sync.Mutex
66 receivedStdout []string
67 receivedStderr []string
68}
69
70func (m *SyncMockDriver) Init(dataStore, ns, id string) error { return nil }
71func (m *SyncMockDriver) PreProcess(ctx context.Context, dataStore string, config *logging.Config) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected