Documentation
¶
Overview ¶
Package release provides small GitHub API helpers for panel distribution discovery.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiveURL ¶
ArchiveURL returns the GitHub archive download URL for a ref (tag, branch, or SHA).
Types ¶
type Asset ¶
type Asset struct {
Name string `json:"name"`
URL string `json:"browser_download_url"`
Size int64 `json:"size"`
}
Asset is a GitHub release asset.
type Branch ¶
type Branch struct {
Name string `json:"name"`
Commit struct {
SHA string `json:"sha"`
} `json:"commit"`
}
Branch is a GitHub branch tip document.
type Client ¶
type Client struct {
HTTPClient *http.Client
APIBase string
// Reporter borrows an existing file diagnostic outlet for resource warnings.
Reporter diagnostics.Reporter
}
Client fetches release and branch metadata with bounded responses.