github

package
v0.0.0-...-2469478 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Wrapper around a github client that exposes the requests and responses using our defined types. It also implements http caching by default.

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 NewClient

func NewClient(ctx context.Context, accessToken string) *Client

func (*Client) GetRelease

func (c *Client) GetRelease(ctx context.Context, ref types.PkgRef) (types.ReleaseMetadata, error)

func (*Client) ListReleases

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

Jump to

Keyboard shortcuts

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