update

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PerformSelfUpdate

func PerformSelfUpdate(ctx context.Context, version string) error

PerformSelfUpdate downloads fing binary

func ShouldCheckUpdate

func ShouldCheckUpdate() bool

func UpdateCommand

func UpdateCommand() string

Types

type Release

type Release struct {
	Version     string `json:"version"`
	DownloadURL string `json:"download"`
}

func CheckForUpdate

func CheckForUpdate(ctx context.Context, version string) (*Release, error)

Jump to

Keyboard shortcuts

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