Documentation
¶
Index ¶
- func Default() string
- func GistHost(hostname string) string
- func GistPrefix(hostname string) string
- func GraphQLEndpoint(hostname string) string
- func HostPrefix(hostname string) string
- func HostnameValidator(hostname string) error
- func IsEnterprise(h string) bool
- func IsTenancy(h string) bool
- func NormalizeHostname(h string) string
- func RESTPrefix(hostname string) string
- func TenantName(h string) (string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GistPrefix ¶
func GraphQLEndpoint ¶
func HostPrefix ¶ added in v2.2.0
func HostnameValidator ¶
func IsEnterprise ¶
IsEnterprise reports whether a non-normalized host name looks like a GHE instance.
func IsTenancy ¶ added in v2.32.0
IsTenancy reports whether a non-normalized host name looks like a tenancy instance.
func NormalizeHostname ¶
NormalizeHostname returns the canonical host name of a GitHub instance.
func RESTPrefix ¶
func TenantName ¶ added in v2.32.0
TenantName extracts the tenant name from tenancy host name and reports whether it found the tenant name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.