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

Function JSONFileLogOptsValidate

pkg/logging/json_logger.go:56–63  ·  view source on GitHub ↗
(logOptMap map[string]string)

Source from the content-addressed store, hash-verified

54}
55
56func JSONFileLogOptsValidate(logOptMap map[string]string) error {
57 for key := range logOptMap {
58 if !strutil.InStringSlice(JSONDriverLogOpts, key) {
59 log.L.Warnf("log-opt %s is ignored for json-file log driver", key)
60 }
61 }
62 return nil
63}
64
65func (jsonLogger *JSONLogger) Init(dataStore, ns, id string) error {
66 // Initialize the log file (https://github.com/containerd/nerdctl/issues/1071)

Callers

nothing calls this directly

Calls 1

InStringSliceFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…