Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InvalidGitHubProjectURLError InvalidGitHubProjectURL = errors.New("Invalid GitHub project URL") InvalidGitHubProjectReferenceError InvalidGitHubProjectReference = errors.New("Invalid GitHub project reference") )
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type InvalidGitHubProjectReference ¶
type InvalidGitHubProjectReference = error
func NewInvalidGitHubProjectReferenceError ¶
func NewInvalidGitHubProjectReferenceError(reference string) InvalidGitHubProjectReference
type InvalidGitHubProjectURL ¶
type InvalidGitHubProjectURL = error
func NewInvalidGitHubProjectURLError ¶
func NewInvalidGitHubProjectURLError(URL string) InvalidGitHubProjectURL
type RateLimit ¶
func FetchRateLimit ¶
func FetchRateLimit(client download.ClientContract) (*RateLimit, error)
type RateLimitJSON ¶
type Release ¶
type Release struct {
Assets []ReleaseAsset `json:"assets"`
Prerelease bool `json:"prerelease"`
Tag string `json:"tag_name"`
CreatedAt time.Time `json:"created_at"`
PublishedAt time.Time `json:"published_at"`
}
A Release matches the Assets portion of Github's release API json.
func (*Release) ProcessReleaseAssets ¶
func (r *Release) ProcessReleaseAssets()
type ReleaseAsset ¶
type ReleaseAsset struct {
Release *Release
Name string `json:"name"`
URL string `json:"url"`
DownloadURL string `json:"browser_download_url"`
Size int64 `json:"size"`
DownloadCount int64 `json:"download_count"`
ContentType string `json:"content_type"`
}
func (*ReleaseAsset) CopyToNewAsset ¶
func (ra *ReleaseAsset) CopyToNewAsset() assets.Asset
Click to show internal directories.
Click to hide internal directories.