Documentation ¶
Index ¶
- type BundleUpdateInfo
- type Updater
- func (u *Updater) DetermineBundleRequirements(userBundlesFolderPath, systemBundlesFolderPath string)
- func (u *Updater) DisableTimestampVerification()
- func (u *Updater) DownloadBundle(fromURL string, bundleInfoURL string, publicKeys []*rsa.PublicKey, ...)
- func (u *Updater) EnableTimestampVerification(filePath string)
- func (u *Updater) GetDeploymentConfig() *config.DeploymentConfig
- func (u *Updater) HasChangesToSystemBundles(considerMandatoryChangesOnly bool) bool
- func (u *Updater) HasChangesToUserBundles() bool
- func (u *Updater) InstallBundleUpdates()
- func (u *Updater) IsShaIgnored(sha string) bool
- func (u *Updater) IsTimestampVerificationEnabled() bool
- func (u *Updater) Prepare(deploymentConfigURL string)
- func (u *Updater) RetrieveBundleInfo(fromURL string, publicKeys []*rsa.PublicKey) (info *config.BundleInfo, sha string)
- func (u *Updater) RetrieveBundleInfos(urls []string, publicKeys []*rsa.PublicKey) (bundleInfos map[string]*config.BundleInfo, err error)
- func (u *Updater) SetIgnoredSelfUpdateBundleInfoSHAs(ignoreShas []string)
- func (u *Updater) SetStatusCallback(statusCallback func(UpdaterStatus, uint64))
- func (u *Updater) UpdateSelf() (needsRestart bool)
- type UpdaterStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleUpdateInfo ¶
type BundleUpdateInfo struct { config.BundleConfig IsSystemBundle bool PresentState config.FileInfoMap RemoteState config.FileInfoMap WantedState config.FileInfoMap }
BundleUpdateInfo contains information on what files need updating on the user's machine for the bundle specified by the embedded BundleConfig.
func (*BundleUpdateInfo) LogChanges ¶ added in v1.4.0
func (bui *BundleUpdateInfo) LogChanges()
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
func NewUpdater ¶
func NewUpdaterWithDeploymentConfig ¶
func NewUpdaterWithDeploymentConfig(ctx context.Context, deploymentConfig *config.DeploymentConfig, dlHandler fetching.DownloadProgressHandler, publicKeys []*rsa.PublicKey) *Updater
func (*Updater) DetermineBundleRequirements ¶ added in v1.4.0
func (*Updater) DisableTimestampVerification ¶
func (u *Updater) DisableTimestampVerification()
func (*Updater) DownloadBundle ¶
func (*Updater) EnableTimestampVerification ¶
func (*Updater) GetDeploymentConfig ¶
func (u *Updater) GetDeploymentConfig() *config.DeploymentConfig
func (*Updater) HasChangesToSystemBundles ¶ added in v1.4.0
func (*Updater) HasChangesToUserBundles ¶ added in v1.4.0
func (*Updater) InstallBundleUpdates ¶
func (u *Updater) InstallBundleUpdates()
func (*Updater) IsShaIgnored ¶
func (*Updater) IsTimestampVerificationEnabled ¶
func (*Updater) RetrieveBundleInfo ¶
func (*Updater) RetrieveBundleInfos ¶
func (*Updater) SetIgnoredSelfUpdateBundleInfoSHAs ¶
func (*Updater) SetStatusCallback ¶
func (u *Updater) SetStatusCallback(statusCallback func(UpdaterStatus, uint64))
func (*Updater) UpdateSelf ¶
type UpdaterStatus ¶
type UpdaterStatus int
const ( DetermineLocalLauncherVersion UpdaterStatus = iota RetrieveRemoteLauncherVersion DownloadLauncherFiles DetermineLocalBundleVersions RetrieveRemoteBundleVersions DownloadBundleFiles )
Click to show internal directories.
Click to hide internal directories.