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

Function ValidateLogOpts

pkg/logging/logging.go:90–95  ·  view source on GitHub ↗
(logDriver string, logOpts map[string]string)

Source from the content-addressed store, hash-verified

88var driversLogOptsValidateFunctions = make(map[string]LogOptsValidateFunc)
89
90func ValidateLogOpts(logDriver string, logOpts map[string]string) error {
91 if value, ok := driversLogOptsValidateFunctions[logDriver]; ok && value != nil {
92 return value(logOpts)
93 }
94 return nil
95}
96
97func RegisterDriver(name string, f DriverFactory, validateFunc LogOptsValidateFunc) {
98 drivers[name] = f

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…