24 lines
817 B
Go
24 lines
817 B
Go
package upscayl
|
|
|
|
// edited from https://github.com/google/go-github/blob/master/github/repos_releases.go
|
|
|
|
// Rrelease represents a GitHub release in a repository.
|
|
type release struct {
|
|
ID int64 `json:"id,omitempty"`
|
|
Name string `json:"name,omitempty"`
|
|
TagName string `json:"tag_name,omitempty"`
|
|
|
|
Assets []asset `json:"assets,omitempty"`
|
|
}
|
|
|
|
// asset represents a GitHub release asset in a repository.
|
|
type asset struct {
|
|
ID int64 `json:"id,omitempty"`
|
|
Name string `json:"name,omitempty"`
|
|
State string `json:"state,omitempty"`
|
|
ContentType string `json:"content_type,omitempty"`
|
|
Size int `json:"size,omitempty"`
|
|
BrowserDownloadURL string `json:"browser_download_url,omitempty"`
|
|
Digest string `json:"digest,omitempty"`
|
|
}
|