bundle

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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 NewUpdater(ctx context.Context, dlHandler fetching.DownloadProgressHandler, publicKeys []*rsa.PublicKey) *Updater

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 (u *Updater) DetermineBundleRequirements(userBundlesFolderPath, systemBundlesFolderPath string)

func (*Updater) DisableTimestampVerification

func (u *Updater) DisableTimestampVerification()

func (*Updater) DownloadBundle

func (u *Updater) DownloadBundle(fromURL string, bundleInfoURL string, publicKeys []*rsa.PublicKey, toFolder string)

func (*Updater) EnableTimestampVerification

func (u *Updater) EnableTimestampVerification(filePath string)

func (*Updater) GetDeploymentConfig

func (u *Updater) GetDeploymentConfig() *config.DeploymentConfig

func (*Updater) HasChangesToSystemBundles added in v1.4.0

func (u *Updater) HasChangesToSystemBundles(considerMandatoryChangesOnly bool) bool

func (*Updater) HasChangesToUserBundles added in v1.4.0

func (u *Updater) HasChangesToUserBundles() bool

func (*Updater) InstallBundleUpdates

func (u *Updater) InstallBundleUpdates()

func (*Updater) IsShaIgnored

func (u *Updater) IsShaIgnored(sha string) bool

func (*Updater) Prepare added in v1.4.0

func (u *Updater) Prepare(deploymentConfigURL string)

func (*Updater) RetrieveBundleInfo

func (u *Updater) RetrieveBundleInfo(fromURL string, publicKeys []*rsa.PublicKey) (info *config.BundleInfo, sha string)

func (*Updater) RetrieveBundleInfos

func (u *Updater) RetrieveBundleInfos(urls []string, publicKeys []*rsa.PublicKey) (bundleInfos map[string]*config.BundleInfo, err error)

func (*Updater) SetIgnoredLauncherUpdateBundleInfoSHAs added in v1.4.1

func (u *Updater) SetIgnoredLauncherUpdateBundleInfoSHAs(ignoreShas []string)

func (*Updater) SetStatusCallback

func (u *Updater) SetStatusCallback(statusCallback func(UpdaterStatus, uint64))

func (*Updater) UpdateLauncherToLatestVersion added in v1.4.1

func (u *Updater) UpdateLauncherToLatestVersion() (madeChanges bool)

type UpdaterStatus

type UpdaterStatus int
const (
	DetermineLocalLauncherVersion UpdaterStatus = iota
	RetrieveRemoteLauncherVersion
	DownloadLauncherFiles
	DetermineLocalBundleVersions
	RetrieveRemoteBundleVersions
	DownloadBundleFiles
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL