github

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRateLimitError

func IsRateLimitError(err error) bool

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(token string) *Client

func (*Client) CheckRateLimit

func (c *Client) CheckRateLimit() (*RateLimitStatus, error)

func (*Client) GetClient

func (c *Client) GetClient() *github.Client

func (*Client) GetContext

func (c *Client) GetContext() context.Context

func (*Client) ResolveAction

func (c *Client) ResolveAction(owner, repo, ref string) ResolvedAction

func (*Client) SetToken

func (c *Client) SetToken(token string)

type RateLimitError

type RateLimitError struct {
	Remaining int
	Limit     int
}

func (RateLimitError) Error

func (e RateLimitError) Error() string

type RateLimitStatus

type RateLimitStatus struct {
	Limit     int
	Remaining int
	Reset     interface{}
}

type ResolvedAction

type ResolvedAction struct {
	SHA     string
	Version string
	Error   error
}

Jump to

Keyboard shortcuts

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