Versions in this module Expand all Collapse all v0 v0.1.0 Oct 20, 2022 Changes in this version + const ReplacementFileDefaultMode + const ReplacementFileInfoUseDefaultOrExistedFilePerm + const SourceLabelGitRepo + const SourceLabelServer + const ZipArchiveExtension + var ErrorFailUpdateRollback = errors.New("error. update rollback failed") + var ErrorResponseCodeIsNotOK = errors.New("error. response code is not OK") + var TarGzArchiveExtensions = []string + func ParseVersion(version string) (semver.Version, error) + func UnsafeDeletePreviousVersionFiles(dirPath string) error + type ApplicationConfig struct + ShowPrepareVersionErr bool + ValidateFilesNamesRegexes []*regexp.Regexp + func NewApplicationConfig(version string, channels []Channel, validateFilesNamesRegex []*regexp.Regexp) (ApplicationConfig, error) + type Channel struct + func NewChannel(name string, useForUpdate bool) Channel + func NewReleaseChannel(useForUpdate bool) Channel + type CheckStatus int + const CheckFailure + const CheckHasErrors + const CheckSuccess + type DeleteMode int + const DeleteModKillProcess + const DeleteModPureDelete + const DeleteModRerunExec + type ReplacementFile struct + FileName string + Mode fs.FileMode + PreventFileLoading bool + type RollbackResults UpdateResult + func UnsafeRollbackUpdate(dirPath string) (*RollbackResults, error) + func (rbRes *RollbackResults) DeleteLoadedVersionFiles(mod DeleteMode, params ...interface{}) error + type ServData struct + Assets []struct{ ... } + Description string + Name string + Version string + VersionFolderUrl string + type SourceCheckStatus struct + SourcesStatuses []SourceStatus + Status CheckStatus + type SourceStatus struct + Errors []error + Source UpdateSource + Status CheckStatus + type UpdateConfig struct + ApplicationConfig ApplicationConfig + Sources []UpdateSource + func (uc *UpdateConfig) CheckAllSourcesForUpdates() (Version, SourceCheckStatus) + func (uc *UpdateConfig) CheckForUpdates() (Version, SourceCheckStatus) + func (uc *UpdateConfig) DoUpdate(ver Version, curAppDir string, ...) (_ UpdateResult, err error) + func (uc *UpdateConfig) LoadFilesToDir(ver Version, dirPath string) error + type UpdateResult struct + func (uR *UpdateResult) DeletePreviousVersionFiles(mode DeleteMode, params ...interface{}) error + func (uR *UpdateResult) RerunExe(exeArgs []string) error + func (uR *UpdateResult) RollbackChanges() error + type UpdateSource interface + SourceLabel func() string + type UpdateSourceGitRepo struct + PersonalAccessToken string + RepoName string + UseDraftVersions bool + UserName string + func (sGit *UpdateSourceGitRepo) SourceLabel() string + type UpdateSourceServer struct + UpdatesMapURL string + func (sServ *UpdateSourceServer) SourceLabel() string + type Version interface + VersionDescription func() string + VersionName func() string + VersionTag func() string