(auth []AuthConfig, requestURL string, kind string)
| 184 | } |
| 185 | |
| 186 | func allowInsecurePluginStoreURL(auth []AuthConfig, requestURL string, kind string) bool { |
| 187 | item, ok := matchingAuthConfig(auth, requestURL, kind) |
| 188 | return ok && item.AllowInsecure |
| 189 | } |
| 190 | |
| 191 | func matchingAuthConfig(auth []AuthConfig, requestURL string, kind string) (AuthConfig, bool) { |
| 192 | requestURL = strings.TrimSpace(requestURL) |
no test coverage detected