github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/release/github/assets.go (about) 1 // Modified from https://github.com/aktau/github-release/blob/master/assets.go 2 3 package github 4 5 import ( 6 "time" 7 ) 8 9 const ( 10 assetDownloadURI = "/repos/%s/%s/releases/assets/%d" 11 ) 12 13 // Asset is a Github API Asset 14 type Asset struct { 15 URL string `json:"url"` 16 ID int `json:"id"` 17 Name string `json:"name"` 18 ContentType string `json:"content_type"` 19 State string `json:"state"` 20 Size uint64 `json:"size"` 21 Downloads uint64 `json:"download_count"` 22 Created time.Time `json:"created_at"` 23 Published time.Time `json:"published_at"` 24 BrowserDownloadURL string `json:"browser_download_url"` 25 }