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

Function ValidateFluentdLoggerOpts

pkg/logging/fluentd_logger.go:199–217  ·  view source on GitHub ↗
(config map[string]string)

Source from the content-addressed store, hash-verified

197}
198
199func 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
219func parseFluentdConfig(config map[string]string) (fluent.Config, error) {
220 result := fluent.Config{}

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…