ghclient

package module
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2025 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetToken

func GetToken() string

GetToken retrieves a GitHub token from environment variables or gh CLI.

func NewClient

func NewClient(ctx context.Context) *github.Client

NewClient constructs a go-github client configured with our shared HTTP settings.

func NewEnterpriseClient

func NewEnterpriseClient(ctx context.Context, baseURL, uploadURL string) (*github.Client, error)

NewEnterpriseClient builds a client for GitHub Enterprise deployments using custom URLs.

func NewHTTPClient

func NewHTTPClient(ctx context.Context) *http.Client

NewHTTPClient returns an HTTP client configured with authentication headers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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