update

package
v0.5.1-beta-hotfix1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlreadyUpToDateError

type AlreadyUpToDateError struct {
	// contains filtered or unexported fields
}

func (*AlreadyUpToDateError) Error

func (a *AlreadyUpToDateError) Error() string

type UpdateDescriptor

type UpdateDescriptor struct {
	Versions map[string]*Version `json:"versions" validate:"required"`
}

type UpdateOutput

type UpdateOutput struct {
	NewVersion *Version
}

func UpdateCLI

func UpdateCLI(version string, force bool) (*UpdateOutput, error)

UpdateCLI func updates nebulant binary to latest version. version arg is the 1 of 1.2.4

type Version

type Version struct {
	Version  string  `json:"version" validate:"required"`
	CodeName string  `json:"codename" validate:"required"`
	Date     string  `json:"date" validate:"required"`
	URL      string  `json:"url" validate:"required"`
	CheckSum string  `json:"checksum" validate:"required"`
	MSG      *string `json:"msg"`
}

Jump to

Keyboard shortcuts

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