(config map[string]string)
| 197 | } |
| 198 | |
| 199 | func ValidateFluentdLoggerOpts(config map[string]string) error { |
| 200 | for key := range config { |
| 201 | switch key { |
| 202 | case Tag: |
| 203 | case fluentdBufferLimit: |
| 204 | case fluentdMaxRetries: |
| 205 | case fluentdRetryWait: |
| 206 | case fluentdSubSecondPrecision: |
| 207 | case fluentdAsync: |
| 208 | case fluentAddress: |
| 209 | case fluentdAsyncReconnectInterval: |
| 210 | case fluentRequestAck: |
| 211 | // Accepted logger opts |
| 212 | default: |
| 213 | return fmt.Errorf("unknown log opt '%s' for fluentd log driver", key) |
| 214 | } |
| 215 | } |
| 216 | return nil |
| 217 | } |
| 218 | |
| 219 | func parseFluentdConfig(config map[string]string) (fluent.Config, error) { |
| 220 | result := fluent.Config{} |
no outgoing calls
searching dependent graphs…