githubapp

package
v0.0.0-...-7fa5070 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractTarGz

func ExtractTarGz(reader io.Reader, destination string) error

Types

type Client

type Client struct {
	AppID      string
	PrivateKey *rsa.PrivateKey
	HTTP       *http.Client
	APIBase    string
	Version    string
}

func New

func New(appID string, keyPEM []byte, version string) (*Client, error)

func (*Client) DownloadRepository

func (c *Client) DownloadRepository(ctx context.Context, token, owner, repository, commit, destination string) error

func (*Client) HeadCommit

func (c *Client) HeadCommit(ctx context.Context, token string, repository Repository) (string, error)

func (*Client) InstallationToken

func (c *Client) InstallationToken(ctx context.Context, installationID int64) (string, time.Time, error)

func (*Client) Repositories

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

type Repository

type Repository struct {
	Owner         string
	Name          string
	DefaultBranch string
}

Jump to

Keyboard shortcuts

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