Documentation
¶
Overview ¶
Package github implements the GitHub Releases registry adapter.
Index ¶
- type Client
- func (c *Client) Capabilities() registry.SourceCaps
- func (c *Client) Close() error
- func (c *Client) Download(ctx context.Context, slug string, opts registry.DownloadOpts) (*registry.DownloadResult, error)
- func (c *Client) Info(ctx context.Context, slug string) (*registry.Detail, error)
- func (c *Client) Name() string
- func (c *Client) Search(context.Context, string, registry.SearchOpts) ([]registry.Listing, error)
- type Option
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
}
Client implements the GitHub Releases registry source.
func (*Client) Capabilities ¶
func (c *Client) Capabilities() registry.SourceCaps
Capabilities reports which registry operations GitHub supports.
func (*Client) Download ¶
func (c *Client) Download( ctx context.Context, slug string, opts registry.DownloadOpts, ) (*registry.DownloadResult, error)
Download fetches the selected release archive stream.
type Option ¶
type Option func(*Client)
Option customizes a GitHub client.
func WithHTTPClient ¶
WithHTTPClient overrides the underlying HTTP client.
func WithLogger ¶
WithLogger overrides the logger used for rate-limit warnings.
func WithRetryPolicy ¶
WithRetryPolicy overrides the retry policy used for retryable responses.
Click to show internal directories.
Click to hide internal directories.