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

Function FluentdLogOptsValidate

pkg/logging/fluentd_logger.go:81–91  ·  view source on GitHub ↗
(logOptMap map[string]string)

Source from the content-addressed store, hash-verified

79)
80
81func FluentdLogOptsValidate(logOptMap map[string]string) error {
82 for key := range logOptMap {
83 if !strutil.InStringSlice(FluentdLogOpts, key) {
84 log.L.Warnf("log-opt %s is ignored for fluentd log driver", key)
85 }
86 }
87 if _, ok := logOptMap[fluentAddress]; !ok {
88 log.L.Warnf("%s is missing for fluentd log driver, the default value %s:%d will be used", fluentAddress, defaultHost, defaultPort)
89 }
90 return nil
91}
92
93type fluentdLocation struct {
94 protocol string

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…