Versions in this module Expand all Collapse all v1 v1.2.3 Jul 2, 2020 Changes in this version + func DisableLog() + func EnableLog() + func GetOSArch() (string, string) + func SetArch(arch string) + func UncompressCommand(src io.Reader, url, cmd string) (io.Reader, error) + func UpdateTo(assetURL, cmdPath string) error + type Config struct + APIToken string + EnterpriseBaseURL string + EnterpriseUploadURL string + Filters []string + Validator Validator + type ECDSAValidator struct + PublicKey *ecdsa.PublicKey + func (v *ECDSAValidator) Suffix() string + func (v *ECDSAValidator) Validate(input, signature []byte) error + type Release struct + AssetByteSize int + AssetID int64 + AssetURL string + Name string + PublishedAt *time.Time + ReleaseNotes string + RepoName string + RepoOwner string + URL string + ValidationAssetID int64 + Version semver.Version + func DetectLatest(slug string) (*Release, bool, error) + func DetectVersion(slug string, version string) (*Release, bool, error) + func UpdateCommand(cmdPath string, current semver.Version, slug string) (*Release, error) + func UpdateSelf(current semver.Version, slug string) (*Release, error) + type SHA2Validator struct + func (v *SHA2Validator) Suffix() string + func (v *SHA2Validator) Validate(release, asset []byte) error + type Updater struct + func DefaultUpdater() *Updater + func NewUpdater(config Config) (*Updater, error) + func (up *Updater) DetectLatest(slug string) (release *Release, found bool, err error) + func (up *Updater) DetectVersion(slug string, version string) (release *Release, found bool, err error) + func (up *Updater) UpdateCommand(cmdPath string, current semver.Version, slug string) (*Release, error) + func (up *Updater) UpdateSelf(current semver.Version, slug string) (*Release, error) + func (up *Updater) UpdateTo(rel *Release, cmdPath string) error + type Validator interface + Suffix func() string + Validate func(release, asset []byte) error