validateRemoteMap checks if the checkout remote is present in the project remote map
(remotes map[string]string, checkoutRemote, objectType, objectName string)
| 84 | |
| 85 | // validateRemoteMap checks if the checkout remote is present in the project remote map |
| 86 | func validateRemoteMap(remotes map[string]string, checkoutRemote, objectType, objectName string) error { |
| 87 | |
| 88 | if _, ok := remotes[checkoutRemote]; !ok { |
| 89 | |
| 90 | return &InvalidProjectCheckoutRemoteError{objectName: objectName, objectType: objectType, checkoutRemote: checkoutRemote} |
| 91 | } |
| 92 | |
| 93 | return nil |
| 94 | } |
| 95 | |
| 96 | // validateSingleRemoteGitSrc validates a git src for a single remote only |
| 97 | func validateSingleRemoteGitSrc(objectType, objectName string, gitSource v1alpha2.GitLikeProjectSource) (err error) { |
no outgoing calls
no test coverage detected