Documentation
¶
Overview ¶
Package giturl provides shared helpers for classifying Git repository URLs and redacting them inside error messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSCPStyle ¶
IsSCPStyle reports whether repoURL is an SCP-style Git URL (user@host:path).
func IsSSHURL ¶
IsSSHURL reports whether repoURL uses SSH transport, either via an explicit ssh:// scheme or SCP-style syntax.
func RedactInMessage ¶
RedactInMessage replaces every recognizable form of repoURL inside message with the caller-supplied redacted placeholder: the raw URL, its .git-less variant, fragment/query/userinfo-stripped variants, and any embedded userinfo, query, or fragment components.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.