Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidationError ¶
type ValidationError interface { error Reason() v1alpha1.ConnectionFailureReason }
ValidationError holds message and reason of an error that occurred during a connection validation
func ValidateGitSource ¶
func ValidateGitSource(log *log.GitSourceLogger, gitSource *v1alpha1.GitSource) ValidationError
ValidateGitSource validates if a git repository defined by the given GitSource is reachable and if it contains the defined branch (master if empty)
func ValidateGitSourceWithSecret ¶
func ValidateGitSourceWithSecret(log *log.GitSourceLogger, gitSource *v1alpha1.GitSource, secret git.Secret) ValidationError
ValidateGitSourceWithSecret detects build tools and languages using the given secret in the git repository defined by the given v1alpha1.GitSource
Click to show internal directories.
Click to hide internal directories.