upgradecmd

package
v0.0.0-...-95f6ed8 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUpgradeCliCmd

func NewUpgradeCliCmd() *cobra.Command

NewUpgradeCliCmd defines new upgrade cmd.

func NewUpgradeCmd

func NewUpgradeCmd() *cobra.Command

NewUpgradeCmd defines a new cmd.

func UnTarFile

func UnTarFile(header *tar.Header, target string, tarReader io.Reader) error

UnTarFile extracts one file from the tar, or creates a directory.

func UnTargz

func UnTargz(tarball, target string, onlyFiles []string) error

UnTargz a tarball to a target, from. http://blog.ralch.com/tutorial/golang-working-with-tar-and-gzipf

Types

type Release

type Release struct {
	Name    string         `json:"name"`
	TagName string         `json:"tag_name"`
	Assets  []ReleaseAsset `json:"assets"`
}

type ReleaseAsset

type ReleaseAsset struct {
	URL                string `json:"url"`
	Name               string `json:"name"`
	BrowserDownloadURL string `json:"browser_download_url"`
}

type UpgradeCliCmd

type UpgradeCliCmd struct {
	Force bool
	Cmd   *cobra.Command
	Args  []string
}

func (*UpgradeCliCmd) Run

func (c *UpgradeCliCmd) Run() error

Run the cmd.

type UpgradeCmd

type UpgradeCmd struct {
	Cmd  *cobra.Command
	Args []string
}

UpgradeCmd defines the cmd.

func (*UpgradeCmd) Run

func (c *UpgradeCmd) Run() error

Run upgrade help.

Jump to

Keyboard shortcuts

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