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

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