(cfg *aghconfig.Config)
| 923 | } |
| 924 | |
| 925 | func redactedConfigMap(cfg *aghconfig.Config) map[string]any { |
| 926 | node, ok := configNodeFromValue(reflect.ValueOf(cfg), "") |
| 927 | if !ok { |
| 928 | return map[string]any{} |
| 929 | } |
| 930 | values, ok := node.(map[string]any) |
| 931 | if !ok { |
| 932 | return map[string]any{} |
| 933 | } |
| 934 | return values |
| 935 | } |
| 936 | |
| 937 | func configNodeFromValue(value reflect.Value, fieldName string) (any, bool) { |
| 938 | value, ok := indirectConfigValue(value) |
no test coverage detected