Documentation
¶
Overview ¶
Package giturl parses different git url syntax
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsHTTPSURL ¶
IsHTTPSURL returns true if supplied URL is HTTPS URL
func IsLocalURL ¶
IsLocalURL returns true if supplied URL is HTTPS URL
func SameRawURL ¶
SameRawURL returns whether or not the two remote URL strings are equivalent
Types ¶
type URL ¶
type URL struct { Scheme string // value will be either 'scp', 'ssh', 'https' or 'local' User string // might be empty for http and local urls Host string // host or host:port Path string // path to the repo Repo string // repository name from the path includes .git }
URL represents parsed git url
func Parse ¶
Parse parses a raw url into a GitURL structure. valid git urls are...
- user@host.xz:path/to/repo.git
- ssh://user@host.xz[:port]/path/to/repo.git
- https://host.xz[:port]/path/to/repo.git
Click to show internal directories.
Click to hide internal directories.