Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPathDirs ¶
getPathDirs splits the URL path into non-empty segments.
Types ¶
type VCSType ¶ added in v0.3.0
type VCSType int
const ( UnknownVCS VCSType = iota // UnknownVCS means that the type of VCS is unknown and not specified and should be determined from the URL GenericVCS // Generic means that we should use generic handler and dynamic ignore vcs determination Github // Github means that the VCS is Github Gitlab // Gitlab means that the VCS is Gitlab Bitbucket // Bitbucket means that the VCS is Bitbucket )
func StringToVCSType ¶ added in v0.3.0
StringToVCSType converts a string to a VCSType
type VCSURL ¶ added in v0.3.0
type VCSURL struct { VCSType VCSType Namespace string Repository string Branch string PullRequestId string HTTPRepoLink string SSHRepoLink string ParsedURL *url.URL Raw string }
VCSURL represents a parsed VCS URL
func Parse ¶ added in v0.3.0
Parse parses a VCS URL and returns a VCSURL struct for unknown VCS Type
func ParseForVCSType ¶ added in v0.3.0
ParseForVCSType parses a VCS URL and returns a VCSURL struct for a specific VCS Type
Click to show internal directories.
Click to hide internal directories.