(logDriver string, logOpts map[string]string)
| 88 | var driversLogOptsValidateFunctions = make(map[string]LogOptsValidateFunc) |
| 89 | |
| 90 | func 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 | |
| 97 | func RegisterDriver(name string, f DriverFactory, validateFunc LogOptsValidateFunc) { |
| 98 | drivers[name] = f |
no outgoing calls
no test coverage detected
searching dependent graphs…