update

package
v0.0.0-...-fb24274 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchRenameOp

func BatchRenameOp(args []string) error

func CopyOp

func CopyOp(args []string) error

func ExecOp

func ExecOp(args []string) (err error)

func ExtractZip

func ExtractZip(zipfile, dest string) error

ExtractZip extracts a zip from zipfile to destination specified dby dest

func MoveOp

func MoveOp(args []string) error

func ReadCurrentVersion

func ReadCurrentVersion(versionFile string) string

ReadCurrentVersion returns current version as read from versionFile.

func RemoveOp

func RemoveOp(args []string) error

func RunUpgradeOps

func RunUpgradeOps(upgradeInfo *UpgradeInfo) error

func SetProfileChannel

func SetProfileChannel(channel string) int

func SetProfileID

func SetProfileID(id string) int

func SetRandomProfileID

func SetRandomProfileID() int

func ValidateCheckSum

func ValidateCheckSum(upgradeInfo *UpgradeInfo, zipfile string) error

Types

type Operation

type Operation struct {
	Action string
	Args   []string
}

type Profile

type Profile struct {
	Id      string `json:"id"`
	Channel string `json:"channel"`
}

type UpgradeInfo

type UpgradeInfo struct {
	URL        string
	Version    string
	Sha1       string
	Sha256     string
	Operations []Operation
}

func Check

func Check(updateURL string, currentVer string) (*UpgradeInfo, error)

Jump to

Keyboard shortcuts

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