2017-12-26 09:45:52 +00:00
|
|
|
package selfupdate
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/blang/semver"
|
2017-12-31 08:30:54 +00:00
|
|
|
"time"
|
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
|
|
|
|
AssetID int
|
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
|
|
|
}
|