ghinstance

package
v2.45.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() string

Default returns the host name of the default GitHub instance

func GistHost

func GistHost(hostname string) string

func GistPrefix

func GistPrefix(hostname string) string

func GraphQLEndpoint

func GraphQLEndpoint(hostname string) string

func HostPrefix

func HostPrefix(hostname string) string

func HostnameValidator

func HostnameValidator(hostname string) error

func IsEnterprise

func IsEnterprise(h string) bool

IsEnterprise reports whether a non-normalized host name looks like a GHE instance

func NormalizeHostname

func NormalizeHostname(h string) string

NormalizeHostname returns the canonical host name of a GitHub instance

func RESTPrefix

func RESTPrefix(hostname string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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