2017-12-26 09:45:52 +00:00
|
|
|
package selfupdate
|
|
|
|
|
|
|
|
import (
|
2017-12-31 08:30:54 +00:00
|
|
|
"time"
|
2018-02-02 09:07:47 +00:00
|
|
|
|
|
|
|
"github.com/blang/semver"
|
2017-12-26 09:45:52 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Release represents a release asset for current OS and arch.
|
|
|
|
type Release struct {
|
2017-12-28 08:39:13 +00:00
|
|
|
// Version is the version of the release
|
|
|
|
Version semver.Version
|
|
|
|
// AssetURL is a URL to the uploaded file for the release
|
|
|
|
AssetURL string
|
2017-12-31 08:30:54 +00:00
|
|
|
// AssetSize represents the size of asset in bytes
|
|
|
|
AssetByteSize int
|
2018-01-19 03:05:41 +00:00
|
|
|
// AssetID is the ID of the asset on GitHub
|
2018-02-02 09:07:47 +00:00
|
|
|
AssetID int64
|
2018-11-06 15:28:06 +00:00
|
|
|
// ValidationAssetID is the ID of additional validaton asset on GitHub
|
|
|
|
ValidationAssetID int64
|
2017-12-28 08:39:13 +00:00
|
|
|
// URL is a URL to release page for browsing
|
|
|
|
URL string
|
|
|
|
// ReleaseNotes is a release notes of the release
|
|
|
|
ReleaseNotes string
|
2017-12-31 08:30:54 +00:00
|
|
|
// Name represents a name of the release
|
|
|
|
Name string
|
|
|
|
// PublishedAt is the time when the release was published
|
|
|
|
PublishedAt *time.Time
|
2018-01-19 03:05:41 +00:00
|
|
|
// RepoOwner is the owner of the repository of the release
|
|
|
|
RepoOwner string
|
|
|
|
// RepoName is the name of the repository of the release
|
|
|
|
RepoName string
|
2017-12-26 09:45:52 +00:00
|
|
|
}
|