Documentation ¶
Overview ¶
Package url contains general processing functions for some urls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FullIPv6URL ¶ added in v0.9.0
FullIPv6URL if the url contains an IPv6 address, convert compressed IPv6 to full format.
func GetGitRepoInfo ¶ added in v0.11.0
func GetGitRepoInfo(gitAddress string) (host string, gitRepo metav1alpha1.GitRepo, err error)
GetGitRepoInfo try to get the project and repository from the git address.
func MatchGitURLPrefix ¶
MatchGitURLPrefix determine if the git URL is a subset of the target URL This matches: gitURL: https://github.com/katanomi/pkg.git target:
- https://github.com/katanomi/pkg.git
- https://github.com/katanomi/pkg
- https://github.com/katanomi/
- https://github.com
This mismatch: gitURL: https://github.com/katanomi/pkg.git target:
This mismatch: gitURL: https://github.com/katanomi/pkg target:
func UrlToProjectID ¶ added in v0.9.0
UrlToProjectID converts url to project id
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.