url

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

func FullIPv6URL(rawURL string) (string, error)

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 IsIPv6 added in v0.9.0

func IsIPv6(ipaddress string) bool

IsIPv6 if the input is an IPv6 address, return true.

func MatchGitURLPrefix

func MatchGitURLPrefix(gitURL, target *apis.URL) bool

MatchGitURLPrefix determine if the git URL is a subset of the target URL This matches: gitURL: https://github.com/katanomi/pkg.git target:

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

func UrlToProjectID(gitURL string) (string, error)

UrlToProjectID converts url to project id

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL