Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient( repoURL string, opts *ClientOptions, ) (*github.Client, error)
NewClient creates a GitHub API client configured for the given repository URL. For github.com, a standard client is returned. For GitHub Enterprise hosts, the client is configured with the appropriate enterprise base URLs.
Types ¶
type ClientOptions ¶
type ClientOptions struct {
// Token is an authentication token for the GitHub API. If empty, the
// client will be unauthenticated.
Token string
// InsecureSkipTLSVerify controls whether the client skips TLS certificate
// verification. Intended for GitHub Enterprise instances with self-signed
// certificates.
InsecureSkipTLSVerify bool
}
ClientOptions holds the configuration for creating a GitHub API client.
Click to show internal directories.
Click to hide internal directories.