github

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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) 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