gg_vfs_updater

package
v0.3.40 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnAfterUpdateHandler

type OnAfterUpdateHandler func(from, to string, files []string)

type OnBeforeUpdateHandler

type OnBeforeUpdateHandler func(from, to, filename string) bool // return true if can continue to update

type OnErrorHandler

type OnErrorHandler func(err error)

type OnReadyHandler

type OnReadyHandler func()

type OnUpdatingHandler

type OnUpdatingHandler func(from, to, filename string, err error)

type VFSUpdater

type VFSUpdater struct {
	// contains filtered or unexported fields
}

func NewVfsUpdater

func NewVfsUpdater(args ...interface{}) (instance *VFSUpdater, err error)

func (*VFSUpdater) CheckForUpdates

func (instance *VFSUpdater) CheckForUpdates() (updated bool, fromVersion string, toVersion string, files []string, err error)

func (*VFSUpdater) CurrVersion

func (instance *VFSUpdater) CurrVersion() string

func (*VFSUpdater) GetKeepConnected

func (instance *VFSUpdater) GetKeepConnected() bool

func (*VFSUpdater) GetRoot

func (instance *VFSUpdater) GetRoot() string

func (*VFSUpdater) GetUid

func (instance *VFSUpdater) GetUid() string

func (*VFSUpdater) HasRemoteVersion

func (instance *VFSUpdater) HasRemoteVersion() bool

func (*VFSUpdater) HasUpdates

func (instance *VFSUpdater) HasUpdates() bool

func (*VFSUpdater) IsUpgradable

func (instance *VFSUpdater) IsUpgradable(currentVersion, remoteVersion string) bool

func (*VFSUpdater) Join

func (instance *VFSUpdater) Join()

func (*VFSUpdater) Map

func (instance *VFSUpdater) Map() map[string]interface{}

func (*VFSUpdater) OnAfterUpdate

func (instance *VFSUpdater) OnAfterUpdate(handler OnAfterUpdateHandler)

func (*VFSUpdater) OnBeforeUpdate

func (instance *VFSUpdater) OnBeforeUpdate(handler OnBeforeUpdateHandler)

func (*VFSUpdater) OnError

func (instance *VFSUpdater) OnError(handler OnErrorHandler)

func (*VFSUpdater) OnReady

func (instance *VFSUpdater) OnReady(handler OnReadyHandler)

func (*VFSUpdater) OnUpdate

func (instance *VFSUpdater) OnUpdate(handler OnUpdatingHandler)

func (*VFSUpdater) PackageFiles

func (instance *VFSUpdater) PackageFiles() []*vfs_updater_commons.PackageFile

func (*VFSUpdater) ReloadPackages

func (instance *VFSUpdater) ReloadPackages() (err error)

func (*VFSUpdater) ReloadPackagesFromRemote

func (instance *VFSUpdater) ReloadPackagesFromRemote() (err error)

func (*VFSUpdater) RemoteVersion

func (instance *VFSUpdater) RemoteVersion() string

func (*VFSUpdater) SetKeepConnected

func (instance *VFSUpdater) SetKeepConnected(value bool) *VFSUpdater

func (*VFSUpdater) SetLogger

func (instance *VFSUpdater) SetLogger(value gg_.ILogger) *VFSUpdater

func (*VFSUpdater) SetRoot

func (instance *VFSUpdater) SetRoot(value string) *VFSUpdater

func (*VFSUpdater) SetUid

func (instance *VFSUpdater) SetUid(value string) *VFSUpdater

func (*VFSUpdater) Start

func (instance *VFSUpdater) Start()

func (*VFSUpdater) Stop

func (instance *VFSUpdater) Stop()

func (*VFSUpdater) String

func (instance *VFSUpdater) String() string

func (*VFSUpdater) Text

func (instance *VFSUpdater) Text() string

func (*VFSUpdater) VersionFile

func (instance *VFSUpdater) VersionFile() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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