github

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 15 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

This section is empty.

Types

type Client

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

func New

func New(token string) *Client

func (*Client) GetContentFile

func (c *Client) GetContentFile(ctx context.Context, owner, repo, path string) (string, error)

func (*Client) GetReadme

func (c *Client) GetReadme(ctx context.Context, owner, repo string) (string, error)

func (*Client) GetRepository

func (c *Client) GetRepository(ctx context.Context, owner, repo string) (*Repository, error)

func (*Client) ListReadmeVariants

func (c *Client) ListReadmeVariants(ctx context.Context, owner, repo string) ([]string, error)

func (*Client) ListReleases

func (c *Client) ListReleases(ctx context.Context, owner, repo string) ([]*Release, error)

func (*Client) ListReleasesIncremental added in v0.0.6

func (c *Client) ListReleasesIncremental(ctx context.Context, owner, repo string, watermark *time.Time) ([]*Release, error)

func (*Client) ListStarred

func (c *Client) ListStarred(ctx context.Context, username string) ([]*Repository, error)

func (*Client) RateLimit

func (c *Client) RateLimit(ctx context.Context) (*Rate, error)

func (*Client) SearchRepositories

func (c *Client) SearchRepositories(ctx context.Context, query string) ([]*Repository, error)

func (*Client) SetClient

func (c *Client) SetClient(ghc *gh.Client)

func (*Client) Star

func (c *Client) Star(ctx context.Context, owner, repo string) error

func (*Client) Unstar

func (c *Client) Unstar(ctx context.Context, owner, repo string) error

func (*Client) UpdateReadmeFile

func (c *Client) UpdateReadmeFile(ctx context.Context, owner, repo, content, message string) error

type Rate

type Rate struct {
	Remaining int
	Reset     time.Time
	Limit     int
}

type Release

type Release = store.Release

type ReleaseAsset

type ReleaseAsset = store.ReleaseAsset

type Repository

type Repository = store.Repository

Jump to

Keyboard shortcuts

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