Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultHostname = "gitlab.com" DefaultProtocol = "https" DefaultClientID = "41d48f9422ebd655dd9cf2947d6979681dfaddc6d0c56f7628f6ada59559af1e" )
Variables ¶
This section is empty.
Functions ¶
func APIEndpoint ¶
APIEndpoint returns the REST API endpoint prefix for a GitLab instance :)
func GraphQLEndpoint ¶
GraphQLEndpoint returns the GraphQL API endpoint prefix for a GitLab instance :)
func HostnameValidator ¶
func IsSelfHosted ¶
IsSelfHosted reports whether a non-normalized host name looks like a GitLab Self-Managed instance staging.gitlab.com is considered self-managed
func NormalizeHostname ¶
NormalizeHostname returns the canonical host name of a GitLab instance Note: GitLab does not allow subdomains on gitlab.com https://gitlab.com/gitlab-org/gitlab/-/issues/26703
func StripHostProtocol ¶
StripHostProtocol strips the url protocol and returns the hostname and the protocol
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.