# Functions
ExtractHostnamePort extracts the hostname and port of the provided Git URL.
NewErrorResultFromMessage parses a message, derives an error result and returns an instance of ErrorResult.
ValidateGitURLExists validate if a source URL exists or not Note: We have an upcoming PR for the Build Status, where we intend to define a single Status.Reason in the form of 'remoteRepositoryUnreachable', where the Status.Message will contain the longer text, like 'invalid source url.
# Constants
AuthBasicIncomplete expresses that either username or password is missing in basic auth credentials.
AuthExpectedSSH expresses that the ssh protocol is used for git operations but basic auth was provided.
AuthInvalidKey expresses that ssh authentication is not possible.
AuthInvalidUserOrPass expresses that basic authentication is not possible.
AuthPrompted is caused when a repo is not found, is private and authentication is insufficient.
AuthUnexpectedHTTP expresses that basic auth username and password are used in combination with a HTTP endpoint.
AuthUnexpectedSSH expresses that the https protocol is used for git operations but a ssh key was provided.
RepositoryNotFound expresses that the remote target for the git operation does not exist.
RevisionNotFound expresses that a remote branch does not exist.
Unknown is the class of choice if no other class fits.
# Structs
ErrorResult is a representation of a runtime error of a git operation that presents a reason and a message.