updates

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2025 License: GPL-3.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = cobra.Command{
	Use:   "update",
	Short: "Update sysmig to the latest version",
	Run: func(cmd *cobra.Command, args []string) {
		performUpdate()
	},
}

Functions

func ContinueInstall

func ContinueInstall(executable string)

func GetExecutablePath

func GetExecutablePath() string

Types

type GithubAsset

type GithubAsset struct {
	Name               string `json:"name"`
	BrowserDownloadUrl string `json:"browser_download_url"`
}

func (*GithubAsset) Download

func (asset *GithubAsset) Download() *[]byte

type GithubRelease

type GithubRelease struct {
	TagName   string         `json:"tag_name"`
	CreatedAt string         `json:"created_at"`
	Assets    []*GithubAsset `json:"assets"`
}

func (*GithubRelease) GetAsset

func (release *GithubRelease) GetAsset(name string) *GithubAsset

func (*GithubRelease) GetCreatedAt

func (release *GithubRelease) GetCreatedAt() *time.Time

type GithubReleases

type GithubReleases []*GithubRelease

func GetReleases

func GetReleases() *GithubReleases

func (*GithubReleases) GetLatestRelease

func (releases *GithubReleases) GetLatestRelease() *GithubRelease

Jump to

Keyboard shortcuts

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