Documentation
¶
Index ¶
- func ExtractTarGz(reader io.Reader, destination string) error
- type Client
- func (c *Client) DownloadRepository(ctx context.Context, token, owner, repository, commit, destination string) error
- func (c *Client) HeadCommit(ctx context.Context, token string, repository Repository) (string, error)
- func (c *Client) InstallationToken(ctx context.Context, installationID int64) (string, time.Time, error)
- func (c *Client) Repositories(ctx context.Context, token string) ([]Repository, error)
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
AppID string
PrivateKey *rsa.PrivateKey
HTTP *http.Client
APIBase string
Version string
}
func (*Client) DownloadRepository ¶
func (*Client) HeadCommit ¶
func (*Client) InstallationToken ¶
func (*Client) Repositories ¶
type Repository ¶
Click to show internal directories.
Click to hide internal directories.