(item AuthConfig, kind string)
| 235 | } |
| 236 | |
| 237 | func authAppliesTo(item AuthConfig, kind string) bool { |
| 238 | if len(item.ApplyTo) == 0 { |
| 239 | return true |
| 240 | } |
| 241 | for _, value := range item.ApplyTo { |
| 242 | if strings.EqualFold(strings.TrimSpace(value), kind) { |
| 243 | return true |
| 244 | } |
| 245 | } |
| 246 | return false |
| 247 | } |
| 248 | |
| 249 | func envValueRequired(envName string, field string) (string, error) { |
| 250 | envName = strings.TrimSpace(envName) |
no outgoing calls
no test coverage detected