update

package
v0.0.410 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check added in v0.0.251

func Check() bool

Check reports whether update checks should take place.

func UpgradeInPlace added in v0.0.251

func UpgradeInPlace(ctx context.Context, io *iostreams.IOStreams, prelease bool) error

Types

type Release

type Release struct {
	Version     string    `yaml:"version"`
	Prerelease  bool      `yaml:"prerelease"`
	DownloadURL string    `yaml:"download_url" json:"download_url"`
	Timestamp   time.Time `yaml:"timestamp"`
}

func LatestRelease added in v0.0.251

func LatestRelease(ctx context.Context, channel string) (*Release, error)

LatestRelease reports the latest release for the given channel.

Jump to

Keyboard shortcuts

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