(settings healthsdk.HealthSettings)
| 280 | } |
| 281 | |
| 282 | func validateHealthSettings(settings healthsdk.HealthSettings) error { |
| 283 | for _, dismissed := range settings.DismissedHealthchecks { |
| 284 | ok := slices.Contains(healthsdk.HealthSections, dismissed) |
| 285 | if !ok { |
| 286 | return xerrors.Errorf("unknown healthcheck section: %s", dismissed) |
| 287 | } |
| 288 | } |
| 289 | return nil |
| 290 | } |
| 291 | |
| 292 | // For some reason the swagger docs need to be attached to a function. |
| 293 |
no test coverage detected